mymesh.converter#
Mesh conversion tools. This module provides functions for converting between mesh types (e.g. a solid volumetric mesh to a surface mesh) element types (e.g. hexahedral to tetrahedral), and connectivity representations (e.g. element node connectivities to element faces or edges).
Mesh type conversion#
|
Extract the 2D surface elements from a 3D volume mesh |
|
Convert 3D image data to a cubic mesh. |
|
Convert a 3D mesh to a binarized image. |
|
Convert a rectilinear voxel mesh (grid) to a 3D image matrix. |
|
Convert a surface mesh to a filled voxel mesh. |
|
Convert a surface mesh to it's dual mesh. |
Connectivity conversion#
|
Convert solid mesh to faces. |
|
Convert a solid mesh to edges. |
|
Extract the edges of an unclosed surface mesh. |
|
Returns edges grouped by the element from which they came. |
|
Identify surface elements, i.e. faces that aren't shared between two elements. |
|
Reduce set of mesh faces to contain only unique faces, i.e. there will only be one entry to indicate a face shared between two elements. |
|
Reduce set of mesh edges to contain only unique edges, i.e. there will only be one entry to indicate a edge shared between multiple elements. |
|
Extract triangular faces from all elements of a purely 4-Node tetrahedral mesh. |
|
Extract quadrilateral faces from all elements of a purely 8-Node hexahedral mesh. |
|
Extract triangular and quadrilateral faces from all elements of a purely 5-Node pyramidal mesh. |
|
Extract triangular and quadrilateral faces from all elements of a purely 6-Node wedge elemet mesh. |
|
Extract edges from all elements of a purely 3-Node triangular mesh. |
|
Extract edges from all elements of a purely 4-Node quadrilateral mesh. |
|
Extract edges from all elements of a polygonal mesh. |
|
Extract edges from all elements of a purely 4-Node tetrahedral mesh. |
|
Extract edges from all elements of a purely 5-Node pyramidal mesh. |
|
Extract edges from all elements of a purely 6-Node wedge element mesh. |
|
Extract edges from all elements of a purely 8-Node hexahedral mesh. |
Element type conversion#
|
Decompose all elements of a 3D volume mesh to tetrahedra. |
|
Decompose all elements of a surface mesh to triangles. |
|
Convert linear (first-order) elements to quadratic (second-order) elements. |
|
Convert quadratic (second-order) elements to linear (first-order) elements. |
|
Decompose all elements of a 3D hexahedral mesh to tetrahedra. |
|
Decompose all elements of a 3D wedge-element mesh to tetrahedra. |
|
Decompose all elements of a 3D pyramidal mesh to tetrahedra. |
|
Converts a quadrilateral mesh to a triangular mesh by splitting each quad into 2 tris |
|
Converts a 3-node edge mesh to a 2-node edge mesh. |
|
Converts a 2 node edge mesh to 3 node edge mesh. |
|
Converts a 6-node triangular mesh to a 3-node triangular mesh. |
|
Converts a 3 node triangular mesh to 6 node triangular mesh. |
|
Converts a 8-node quadrilateral mesh to a 4-node quadrilateral mesh. |
|
Converts a 4 node quadrilateral mesh to 8 node quadrilateral mesh. |
|
Converts a 10-node tetradehdral mesh to a 4-node tetradehedral mesh. |
|
Converts a 4 node tetrahedral mesh to 10 node tetrahedral mesh. |
|
Converts a 13-node pyramid mesh to a 5-node pyramid mesh. |
|
Converts a 5 node pyramid mesh to 13 node pyramid mesh. |
|
Converts a 15-node wedge mesh to a 6-node wedge mesh. |
|
Converts a 6 node wedge mesh to 15 node wedge mesh. |
|
Converts a 20-node hexahedral mesh to an 8-node hexahedral mesh. |
|
Converts a 4 node tetrahedral mesh to 10 node tetrahedral mesh. |
|
Subdivide hexahedra into 8 sub-hexahedra, connecting corners to the element, face, and edge centroids. |
|
Subdivide tetrahedra into sub-tetrahedra. |