MeshSegment

A segment 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 i in ipairs(meshSegmentWires) do  
    segmentWires = meshSegmentWires[i]    
    segments = segmentWires.Segments   
        
    for j = 1,segments.Count do
    
        -- Obtain handle to the 'MeshSegment' and change the radius
        
        meshSegment = segments[j]
        meshSegment.Radius = 0.1
    end
end

Inheritance

The MeshSegment object is derived from the MeshElement object.

Property List

Radius
The segment radius. (Read/Write number)
Type
The object type string. (Read only string)
Vertices
Returns a list of the segment's vertices. (Read only List of MeshVertex)

Method List

Delete ()
Deletes the mesh element.

Property Details

Radius
The segment radius.
Type
number
Access
Read/Write
Type
The object type string.
Type
string
Access
Read only
Vertices
Returns a list of the segment's vertices.
Access
Read only

Method Details

Delete ()
Deletes the mesh element.