mesh#
This module defines the Mesh class, which can be used to describe discrete geometrical models like those used in Finite Element models. It supports point (0D), line (1D), surface (2D) and volumetric (3D) meshes. This module contains useful functions to create, manipulate and analyse such meshes.
Constructor#
A Mesh is a discrete geometric model defined by nodes and elements. |
Mesh information#
These methods return information about a Mesh object.
Return the element type of the Mesh. |
|
Return the level of the elements in the Mesh. |
|
Return the plexitude of the elements in the Mesh. |
|
Return the number of nodes in the Mesh. |
|
Return the number of elements in the Mesh. |
|
Return the shape of the |
|
Create a report on the Mesh shape and size. |
|
Return the total length of a Mesh. |
|
Return the total area of a Mesh. |
|
Return the total enclosed area of a closed planar line Mesh. |
|
Return the total volume of a volumetric Mesh. |
|
Return the total enclosed volume of a Mesh. |
|
Check whether the triangle mesh is a manifold, orientable and closed. |
Mesh element information#
These methods return information for each element in a Mesh object.
Mesh generation#
Create copies at regular distances along a straight line. |
|
Repeatedly replicate a Mesh in different directions |
|
Create rotational replications of a Mesh. |
|
Connect a sequence of topologically congruent Meshes into a hypermesh. |
|
Extrude a Mesh along a straight line. |
|
Revolve a Mesh around an axis. |
|
Sweep a Mesh along a path, creating an extrusion. |
|
Concatenate a list of Meshes of the same eltype. |
|
Perform a boolean operation with another tri3 Mesh. |
Mesh adaption#
Convert a Mesh to another element type. |
|
Subdivide the elements of a Mesh. |
|
Renumber the nodes of a Mesh in the specified order. |
|
Reorder the elements of a Mesh. |
|
Reorder the elements of a line Mesh into connected chains. |
|
Clip the Mesh with a plane. |
|
Cut a triangular Mesh with a plane. |
|
Smooth the geometry of a Mesh or data defined over a Mesh. |
|
Remesh a triangle Mesh. |
Mesh transformation#
Reverse some or all elements of a Mesh. |
|
Reflect the coordinates in one of the coordinate directions. |
|
Reflect the coordinates in the X direction. |
|
Reflect the coordinates in the Y direction. |
|
Reflect the coordinates in the Z direction. |
|
Offset a tri3 Mesh with a certain distance. |
Mesh partioning#
Detect the connected parts of a Mesh. |
|
Split a Mesh into connected parts. |
|
Partition a level-2 Mesh by closed curve(s) along the edges. |
|
Split a level-2 Mesh by closed curve(s) along the edges. |
|
Partition a tri3 Mesh by splitting it at sharp edges. |
|
Split a tri3 Mesh by splitting it at sharp edges. |
|
Split a Mesh in n parts, distributing the elements randomly. |
Mesh repair & quality#
Split a Mesh in non-degenerate and degenerate elements. |
|
Remove the degenerate elements from a Mesh. |
|
Remove the duplicate elements from a Mesh. |
|
Repair and clean a triangle mesh by performing a sequence fixes. |
|
Reverse the elements with negative volume. |
|
Compute a quality measure for volume meshes. |
Mesh compaction#
Fuse the nodes of a Mesh. |
|
Remove unconnected nodes and renumber the Mesh. |
Entity selection#
Flag elements having nodal coordinates between min and max. |
|
Test which part of a Mesh is inside a given bounding box. |
|
Convert a Mesh to a line2 Mesh. |
|
Get the entities of a lower dimensionality. |
|
Return the set of unique node numbers in the Mesh. |
|
Return the nodal coordinates of the Mesh. |
|
Return the unique edges of all the elements in the Mesh. |
|
Defines the elements in function of its edges. |
|
Return the unique faces of all the elements in the Mesh. |
|
Defines the elements in function of its faces. |
|
Return the unique 3D cells of the Mesh. |
|
Return a Mesh consisting of the unique edges of the elements. |
|
Return a Mesh consisting of the unique faces of the elements. |
|
Return the free entities of the specified level. |
|
Return a Mesh with lower entities. |
|
Return a Mesh with the free edges. |
|
Return the border of the Mesh. |
|
Return a Mesh representing the border. |
|
Find the elements that are touching the border of the Mesh. |
|
Find the nodes that are on the border of the Mesh. |
|
Find the nodes that are not on the border of the Mesh. |
|
Remove the border elements from a Mesh. |
|
Return the non-manifold nodes of a Mesh. |
|
Return the non-manifold edges of a Mesh. |
|
Return a Mesh with subsets of the original nodes. |
Adjacency methods#
Find the elements connected to specific lower entities. |
|
Find the elements adjacent to the specified elements. |
|
Select the elements reachable from the specified elements. |
|
Create an element adjacency table. |
|
Visit all elements using a frontal walk. |
|
Perform a front walk over masked edge connections. |
|
Grow a selection of a Mesh by frontal steps. |
|
Find and store the elems connected to nodes. |
|
Find the number of elems connected to nodes. |
|
Find and store the elems connected to edges. |
|
Find the number of elems connected to edges. |
|
Return the elements reachable from startat. |
Other#
Match nodes of coords with nodes of self. |
|
Match elements of Mesh with elements of self. |
|
Compute points at parametric values. |
|
Intersect a triangular surface mesh with a series of parallel planes. |
|
Return the intersection lines with plane (p,n). |