class MAGES::MeshDeformations::Utilities::MeshUtilities¶
Overview¶
Utility class for mesh operations. More…
class MeshUtilities
{
public:
// structs
struct Face;
// classes
class CloseByVertexComparer;
// methods
static void WeldVertices(Mesh mesh);
static bool ContainsDuplicateVertices(Mesh mesh, float error = 0.000000001f);
static int[] FindTetrahedronNeighbors(in int[] tetrahedra);
};
Detailed Documentation¶
Utility class for mesh operations.
Methods¶
static void WeldVertices(Mesh mesh)
Welds close-by vertices.
Parameters:
mesh |
The mesh in which to weld vertices. |
static bool ContainsDuplicateVertices(Mesh mesh, float error = 0.000000001f)
Checks if the mesh contains duplicate vertices (ie vertices that are very close to each other).
Parameters:
mesh |
The mesh to check. |
error |
The maximum distance for two vertices to be marked as duplicate. |
Returns:
true if mesh contains duplicate vertices.
static int[] FindTetrahedronNeighbors(in int[] tetrahedra)
Find the neighbors of each tetrahedron in the mesh.
Parameters:
tetrahedra |
The tetrahedron indices array. |
Returns:
The neighbors of the tetrahedra.