![]() |
RobWorkProject
25.2.11-
|
utility for triangle manipulation More...
#include <TriangleUtil.hpp>
Static Public Member Functions | |
template<class TRILIST > | |
static rw::core::Ptr< TRILIST > | toIndexedTriMesh (const TriMesh &triMesh, double epsilon=0.00001) |
Takes a general triangle mesh and creates an indexed triangle mesh. All data is copied. More... | |
template<class T > | |
static void | recalcNormals (rw::geometry::PlainTriMesh< rw::geometry::TriangleN1< T >> &trimesh) |
Recalculate the normals of trimesh. | |
template<class TRI > | |
static std::pair< TriMesh::Ptr, TriMesh::Ptr > | divide (TriMesh::Ptr trimesh, Plane::Ptr plane) |
Divided trimesh using the specified plane. More... | |
utility for triangle manipulation
|
inlinestatic |
Divided trimesh using the specified plane.
Triangles is cut by the plane and replaced with new triangles. Triangles lying in the plane is placed with the triangles behind.
|
inlinestatic |
Takes a general triangle mesh and creates an indexed triangle mesh. All data is copied.
The order of the triangles in the new mesh will be the same as that of the old mesh. This is not true for the vertices.
triMesh | [in] the tri mesh that is to be converted |
epsilon | [in] if two vertices are closer than epsilon they are considered the equal. |