MeshSettings
The model mesher.
Example
app = cf.GetApplication() project = app:NewProject() -- Set the frequency project.SolutionConfigurations[1].Frequency.Start = "1e08" -- Create geometry project.Geometry:AddHelix(cf.Point(0,0,0), 0.1, 0.1, 1.0, 5.0, false) -- Set the wire radius on the 'MeshSettings' project.Mesher.Settings.WireRadius = "0.01" -- Mesh project.Mesher:Mesh()
Usage locations (object properties)
The following objects have properties using the MeshSettings object:
Property List
- Advanced
- Advanced meshing settings. (Read only MeshAdvancedSettings)
- MeshSizeOption
- Mesh size option. (Read/Write MeshSizeOptionEnum)
- TetrahedronEdgeLength
- Mesh tetrahedron edge length. Only applied if MeshSizeOption is Custom and there is at least one volume in the model. (Read/Write Expression)
- TriangleEdgeLength
- Mesh triangle edge length. Only applied if MeshSizeOption is Custom and there is at least one surface in the model. (Read/Write Expression)
- Type
- The object type string. (Read only string)
- WireRadius
- Mesh wire segment radius. Only applied if there is at least one wire in the model. (Read/Write Expression)
- WireSegmentLength
- Mesh wire segment length. Only applied if MeshSizeOption is Custom and there is at least one wire in the model. (Read/Write Expression)
Method List
- GetProperties ()
- Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step. (Returns a table object.)
- SetProperties (properties table)
- Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.
Property Details
- Advanced
- Advanced meshing settings.
- Type
- MeshAdvancedSettings
- Access
- Read only
- MeshSizeOption
- Mesh size option.
- Type
- MeshSizeOptionEnum
- Access
- Read/Write
- TetrahedronEdgeLength
- Mesh tetrahedron edge length. Only applied if MeshSizeOption is Custom and there is at least one volume in the model.
- Type
- Expression
- Access
- Read/Write
- TriangleEdgeLength
- Mesh triangle edge length. Only applied if MeshSizeOption is Custom and there is at least one surface in the model.
- Type
- Expression
- Access
- Read/Write
- Type
- The object type string.
- Type
- string
- Access
- Read only
- WireRadius
- Mesh wire segment radius. Only applied if there is at least one wire in the model.
- Type
- Expression
- Access
- Read/Write
- WireSegmentLength
- Mesh wire segment length. Only applied if MeshSizeOption is Custom and there is at least one wire in the model.
- Type
- Expression
- Access
- Read/Write
Method Details
- GetProperties ()
- Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step.
- Return
- table
- A properties table.
- SetProperties (properties table)
- Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.
- Input Parameters
- properties(table)
- A table of properties defining the new state of the object.