MeshCylinders

The list of mesh cylinders.

Example

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

    -- Settings for normal meshing

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

    -- Create geometry, set solution method and mesh
    
cylinder = project.Geometry:AddCylinder(cf.Point(-0.25,-0.25,0), 0.5, 1.0)
cylinder.Regions["Region1"].SolutionMethod = cf.Enums.RegionSolutionMethodEnum.UTD
project.Mesher:Mesh()
project.Geometry["Cylinder1"]:UnlinkMesh()

unmeshedCylinderRegions = project.Meshes["Cylinder1_1"].UnmeshedCylinderRegions

for i in ipairs(unmeshedCylinderRegions) do  
    unmeshedCylinderRegion = unmeshedCylinderRegions[i]
    
    -- Obtain a handle to the collection of 'MeshCylinders'
    
    unmeshedCylinders = unmeshedCylinderRegion.Cylinders
    
    -- Store the number of mesh cylinders in the collection
    
    unmeshedCylindersCount = unmeshedCylinders.Count
end

Usage locations (object properties)

The following objects have properties using the MeshCylinders object:

Property List

Count
The number of cylinders in the mesh entity. (Read only number)
Type
The object type string. (Read only string)

Index List

[number]
Returns the Cylinder at the given index. (Read MeshCylinder)

Property Details

Count
The number of cylinders in the mesh entity.
Type
number
Access
Read only
Type
The object type string.
Type
string
Access
Read only