MeshVertexReference

A reference to a mesh vertex.

Example

local application = cf.Application.getInstance()
local project = application:NewProject()

advancedMeshSettings = project.Mesher.Settings.Advanced
advancedMeshSettings.CurvilinearSegments = cf.Enums.MeshCurvilinearOptionsEnum.Disabled

project.Contents.SolutionConfigurations.GlobalFrequency.Start = "100e5"

    -- Construct a port and add it to the collection

line = project.Contents.Geometry:AddLine(cf.Point(0, 0, 0), cf.Point(1, 1, 1))
project.Mesher.Settings.WireRadius = "0.01"
project.Mesher:Mesh()
mesh = line:UnlinkMesh()

    -- Add a WireMeshPort

properties = cf.WireMeshPort.GetDefaultProperties()
properties.DefinitionMethod = cf.Enums.WirePortDefinitionMethodEnum.UsingVertex
properties.Vertex = mesh.Vertices[1]
port = project.Contents.Ports:AddWireMeshPort(properties)

Inheritance

The MeshVertexReference object is derived from the object.

Usage locations

The MeshVertexReference object can be accessed from the following locations:

Property List

Index
Returns the index of this element in the element collection. (Read only number)
Value
Returns the MeshVertexReference associated with this element. (Read only MeshVertexReference)

Property Details

Index
Returns the index of this element in the element collection.
Type
number
Access
Read only
Value
Returns the MeshVertexReference associated with this element.
Type
MeshVertexReference
Access
Read only