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 Definition: CompoundShapeToGraphics.cpp:29
Mesh shape: shape made of a triangle mesh The triangle mesh needs to be watertight to produce valid v...
Definition: MeshShape.h:54
SurfaceMeshShape()
Constructor.
Definition: SurfaceMeshShape.cpp:33
int getType() const override
Definition: SurfaceMeshShape.cpp:37
double m_thickness
Surface mesh thickness.
Definition: SurfaceMeshShape.h:85
SURGSIM_CLASSNAME(SurgSim::Math::SurfaceMeshShape)
SurfaceMeshShape defines a shape based on a mesh, like MeshShape.
Definition: SurfaceMeshShape.h:53
Basic class for storing Triangle Meshes, handling basic vertex, edge, and triangle functionality...
Definition: TriangleMesh.h:62
bool isValid() const override
Check if this shape contains a valid mesh and the thickness is at least 1e-5 (in meter, to avoid formal and numerical issues).
Definition: SurfaceMeshShape.cpp:143
void computeVolumeIntegrals() override
Compute useful volume integrals based on the triangle mesh, which are used to get the volume ...
Definition: SurfaceMeshShape.cpp:42