10#ifndef MVE_MESH_TOOLS_HEADER
11#define MVE_MESH_TOOLS_HEADER
44mesh_merge (TriangleMesh::ConstPtr mesh1, TriangleMesh::Ptr mesh2);
60 bool scale =
true,
bool center =
true);
Matrix class for arbitrary dimensions and types.
Vector class for arbitrary dimensions and types.
#define MVE_NAMESPACE_BEGIN
#define MVE_NAMESPACE_END
#define MVE_GEOM_NAMESPACE_END
#define MVE_GEOM_NAMESPACE_BEGIN
void mesh_transform(mve::TriangleMesh::Ptr mesh, math::Matrix3f const &rot)
Transforms the vertices and normals of the mesh using the specified rotation matrix.
void mesh_invert_faces(TriangleMesh::Ptr mesh)
Inverts the orientation of all faces in the mesh.
std::size_t mesh_delete_unreferenced(TriangleMesh::Ptr mesh)
Cleans unreferenced vertices from the mesh.
void mesh_components(TriangleMesh::Ptr mesh, std::size_t vertex_threshold)
Discards isolated components with a vertex count below a threshold.
void mesh_find_aabb(TriangleMesh::ConstPtr mesh, math::Vec3f &aabb_min, math::Vec3f &aabb_max)
Calculates the mesh axis-aligned bounding box (AABB).
void mesh_scale_and_center(TriangleMesh::Ptr mesh, bool scale, bool center)
Scales the mesh such that it fits into a cube with length 1 and centers the mesh in the coordinate or...
void mesh_merge(TriangleMesh::ConstPtr mesh1, TriangleMesh::Ptr mesh2)
Merges the first given mesh with the second one, modifying the second one.