MeshVertex

A vertex in 3D space. Exists as part of a mesh.

Example

app = cf.GetApplication()
project = app:NewProject()

    -- Settings for normal meshing

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

project.SolutionConfigurations[1].Frequency.Start = "1e08"

    -- Create geometry and mesh

project.Geometry:AddHelix(cf.Point(0,0,0), 0.1, 0.1, 1.0, 5.0, false)
project.Mesher:Mesh()
project.Geometry["Helix1"]:UnlinkMesh()

meshSegmentWires = project.Meshes["Helix1_1"].SegmentWires

for wIndex in ipairs(meshSegmentWires) do  
    segmentWires = meshSegmentWires[wIndex]    
    segments = segmentWires.Segments
    for sIndex = 1, segments.Count do    
        segmentVertices = segments[sIndex].Vertices
        for vIndex in ipairs(segmentVertices) do
        
            -- Obtain a handle to the 'MeshVertex'
            
            meshVertex = segmentVertices[vIndex]
            
            -- Print its coordinate in 3D space
            
            print(meshVertex.Position)
        end
    end
end

Usage locations (object properties)

The following objects have properties using the MeshVertex object:

Property List

Index
The mesh vertex index. (Read only number)
Position
The mesh vertex position in 3D space. (Read/Write Point)
Type
The object type string. (Read only string)

Property Details

Index
The mesh vertex index.
Type
number
Access
Read only
Position
The mesh vertex position in 3D space.
Type
Point
Access
Read/Write
Type
The object type string.
Type
string
Access
Read only