MeshFind

The mesh find tools.

Example

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

    -- Settings for normal meshing
	
project.Mesher.Settings.WireRadius = "0.01"

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)
project.Mesher:Mesh()
project.Geometry["Helix1"]:UnlinkMesh()

    -- Obtain the 'MeshFind' object
    
meshFind = project.Meshes.Find

hasIntersectingMeshElements = meshFind:HasIntersectingElements()

if hasIntersectingMeshElements then 
    print("There are intersecting mesh elements.")
else
    print("There are no intersecting mesh elements.")
end    

Usage locations (object properties)

The following objects have properties using the MeshFind object:

Property List

Type
The object type string. (Read only string)

Method List

HasDistortedElements (mininternalangle number, meshpartlist List of Mesh)
Checks if there are mesh elements that are distorted within a subset of mesh parts. This is calculated using the specified minimum internal angle. (Returns a boolean object.)
HasDistortedElements (mininternalangle number)
Checks if there are mesh elements that are distorted. This is calculated using the specified minimum internal angle. (Returns a boolean object.)
HasIntersectingElements (meshpartlist List of Mesh)
Checks if there are mesh triangles that intersect but are not connected within a subset of mesh parts. (Returns a boolean object.)
HasIntersectingElements ()
Checks if there are mesh triangles that intersect but are not connected. (Returns a boolean object.)
HasOversizedTriangles (edgelength number, meshpartlist List of Mesh)
Checks if there are mesh triangles that are oversized within a subset of mesh parts. This is calculated using a specified maximum edge length. (Returns a boolean object.)
HasOversizedTriangles (edgelength number)
Checks if there are mesh triangles that are oversized. This is calculated using a specified maximum edge length. (Returns a boolean object.)

Property Details

Type
The object type string.
Type
string
Access
Read only

Method Details

HasDistortedElements (mininternalangle number, meshpartlist List of Mesh)
Checks if there are mesh elements that are distorted within a subset of mesh parts. This is calculated using the specified minimum internal angle.
Input Parameters
mininternalangle(number)
The minimum internal angle given in degrees.
meshpartlist(List of Mesh)
Returns true if there are distorted mesh elements.
Return
boolean
Returns true if there are distorted mesh elements.
HasDistortedElements (mininternalangle number)
Checks if there are mesh elements that are distorted. This is calculated using the specified minimum internal angle.
Input Parameters
mininternalangle(number)
The minimum internal angle given in degrees.
Return
boolean
Returns true if there are distorted mesh elements.
HasIntersectingElements (meshpartlist List of Mesh)
Checks if there are mesh triangles that intersect but are not connected within a subset of mesh parts.
Input Parameters
meshpartlist(List of Mesh)
A list of mesh elements used for search.
Return
boolean
Returns true if there are intersecting mesh elements.
HasIntersectingElements ()
Checks if there are mesh triangles that intersect but are not connected.
Return
boolean
Returns true if there are intersecting mesh elements.
HasOversizedTriangles (edgelength number, meshpartlist List of Mesh)
Checks if there are mesh triangles that are oversized within a subset of mesh parts. This is calculated using a specified maximum edge length.
Input Parameters
edgelength(number)
The maximum edge length.
meshpartlist(List of Mesh)
A list of mesh elements used for search.
Return
boolean
Returns true if there are oversized mesh elements.
HasOversizedTriangles (edgelength number)
Checks if there are mesh triangles that are oversized. This is calculated using a specified maximum edge length.
Input Parameters
edgelength(number)
The maximum edge length.
Return
boolean
Returns true if there are oversized mesh elements.