MeshSegmentReference

A reference to a mesh segment.

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

port = project.Contents.Ports:AddWireMeshPort(mesh.Wires[1].SegmentElements[1])

Inheritance

The MeshSegmentReference object is derived from the object.

Usage locations

The MeshSegmentReference 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 MeshSegmentReference associated with this element. (Read only MeshSegmentReference)

Property Details

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