MeshTetrahedron

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

Example

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

    -- Set the frequency

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

    -- Create geometry, set the solution method to FEM
    
cuboid = project.Geometry:AddCuboidAtCentre(cf.Point(0,0,0), 1.0, 1.0, 1.0)
dielectric = project.Media:AddDielectric(0.01,0.01,0.01)
cuboid.Regions["Region1"].Medium = dielectric
cuboid.Regions["Region1"].SolutionMethod = cf.Enums.RegionSolutionMethodEnum.FEM

	-- Mesh the geometry 

project.Mesher:Mesh()
project.Geometry["Cuboid1"]:UnlinkMesh()

tetrahedronRegions = project.Meshes["Cuboid1_1"].TetrahedronRegions

for i in ipairs(tetrahedronRegions) do  
    tetrahedronRegion = tetrahedronRegions[i]  
    meshTetrahedra = tetrahedronRegion.Tetrahedra
    
    for j = 1,meshTetrahedra.Count do
    
        -- Obtain the 'MeshTetrahedron' and read its vertices
        
        meshTetrahedron = meshTetrahedra[j]
        vertices = meshTetrahedron.Vertices
    end
end

Inheritance

The MeshTetrahedron object is derived from the MeshElement object.

Property List

Type
The object type string. (Read only string)
Vertices
Returns a list of the tetrahedron's vertices. (Read only List of MeshVertex)

Method List

Delete ()
Deletes the mesh element.

Property Details

Type
The object type string.
Type
string
Access
Read only
Vertices
Returns a list of the tetrahedron's vertices.
Access
Read only

Method Details

Delete ()
Deletes the mesh element.