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 nodes 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. |
|
Perform a topological check of a triangulated surface mesh (tri3). |
Mesh entity information#
These methods return information for specific entities (e.g nodes or elements) of Mesh object.
Return element or perimeter lengths for a Mesh of level 1 or 2. |
|
Return the areas of all elements in a Mesh of level 2 or 3. |
|
Return the signed volume of the elements in Mesh of level 3. |
|
Return the centroids of all elements of the Mesh. |
|
Compute normal vectors for a triangular surface mesh. |
|
Returns the bounding_boxes of all elements in the Mesh. |
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 between two tri3 meshes. |
|
Offset a triangular surface Mesh using an implicit distance representation. |
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. |
|
Reverse some or all elements of a Mesh. |
|
Reverse the orientation of a single continuous |
|
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. |
|
Remesh a triangle surface Mesh into a quad surface Mesh. |
|
Decimate a triangle Mesh. |
Mesh transformation#
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 surface mesh along its averaged nodal normals. |
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. |
|
Reorient face normals of a triangular surface mesh (tri3) so that they are consistently oriented. |
|
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). |