16 #ifndef SURGSIM_MATH_SURFACEMESHSHAPE_H 17 #define SURGSIM_MATH_SURFACEMESHSHAPE_H 19 #include "SurgSim/DataStructures/TriangleMesh.h" 20 #include "SurgSim/Framework/ObjectFactory.h" 21 #include "SurgSim/Math/MeshShape.h" 28 SURGSIM_STATIC_REGISTRATION(SurfaceMeshShape);
62 template <
class VertexData,
class EdgeData,
class TriangleData>
65 double thickness = 1e-2);
90 #include "SurgSim/Math/SurfaceMeshShape-inl.h" 92 #endif // SURGSIM_MATH_SURFACEMESHSHAPE_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
Mesh shape: shape made of a triangle mesh The triangle mesh needs to be watertight to produce valid v...
Definition: MeshShape.h:56
SurfaceMeshShape()
Constructor.
Definition: SurfaceMeshShape.cpp:33
int getType() const override
Definition: SurfaceMeshShape.cpp:37
SurfaceMeshShape defines a shape based on a mesh, like MeshShape.
Definition: SurfaceMeshShape.h:52
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