9 #include "imstkGeometryMap.h" 10 #include "imstkMacros.h" 11 #include "imstkMath.h" 15 template<
typename T,
int N>
class VecDataArray;
29 std::shared_ptr<Geometry> parent,
30 std::shared_ptr<Geometry> child);
67 std::vector<Vec3d> m_bBoxMin;
68 std::vector<Vec3d> m_bBoxMax;
69 bool m_boundingBoxAvailable;
72 std::shared_ptr<VecDataArray<double, 3>> m_childVerts;
void compute() override
Compute the tetra-triangle mesh map.
void requestUpdate() override
Apply (if active) the tetra-triangle mesh map.
void updateBoundingBox()
Update bounding box of each tetrahedra of the mesh.
int findClosestTetrahedron(const Vec3d &pos) const
Find the closest tetrahedron based on the distance to their centroids for a given point in 3D space...
std::vector< Vec4d > m_verticesWeights
weights
Base class for any geometric map.
std::vector< int > m_verticesEnclosingTetraId
Enclosing tetrahedra to interpolate the weights upon.
Computes and applies the PointSet-Tetrahedra map. Vertices of the child geometry are deformed accordi...
int findEnclosingTetrahedron(const Vec3d &pos) const
Find the tetrahedron that encloses a given point in 3D space.