Module mesh

Source

Structs§

Mesh
Represents a standard 3D mesh. A Mesh consists of nodes representing points in 3D space, and cells which are triangles connecting these points.

Functions§

clip_mesh_from_plane
Clips the mesh with a given slicing plane, keeping only the elements and nodes that lie in the direction of the plane’s normal.
find_mesh_intersections_with_plane
Finds the intersection points of a mesh with a slicing plane.
get_mesh_cell_normals
Computes and returns the normals for each cell in the mesh. The normal for each cell is computed using the right-hand rule.
get_mesh_triangles
Returns the coordinates of the vertices for each cell in the mesh.