Go to the documentation of this file.
16 #ifndef SURGSIM_MATH_SURFACEMESHSHAPE_H
17 #define SURGSIM_MATH_SURFACEMESHSHAPE_H
29 SURGSIM_STATIC_REGISTRATION(SurfaceMeshShape);
63 template <
class VertexData,
class EdgeData,
class TriangleData>
66 double thickness = 1e-2);
93 #endif // SURGSIM_MATH_SURFACEMESHSHAPE_H
Basic class for storing Triangle Meshes, handling basic vertex, edge, and triangle functionality.
Definition: TriangleMesh.h:62
SurfaceMeshShape defines a shape based on a mesh, like MeshShape.
Definition: SurfaceMeshShape.h:53
Definition: CompoundShapeToGraphics.cpp:29
double m_thickness
Surface mesh thickness.
Definition: SurfaceMeshShape.h:85
SurfaceMeshShape()
Constructor.
Definition: SurfaceMeshShape.cpp:33
bool isValid() const override
Check if this shape contains a valid mesh and the thickness is at least 1e-5 (in meter,...
Definition: SurfaceMeshShape.cpp:143
SURGSIM_CLASSNAME(SurgSim::Math::SurfaceMeshShape)
int getType() const override
Definition: SurfaceMeshShape.cpp:37
Mesh shape: shape made of a triangle mesh The triangle mesh needs to be watertight to produce valid v...
Definition: MeshShape.h:54
void computeVolumeIntegrals() override
Compute useful volume integrals based on the triangle mesh, which are used to get the volume ,...
Definition: SurfaceMeshShape.cpp:42