9 #include "imstkCCDAlgorithm.h" 10 #include "imstkMacros.h" 11 #include "imstkVecDataArray.h" 17 template<
typename T,
int N>
class VecDataArray;
42 std::shared_ptr<const Geometry> geomA,
43 std::shared_ptr<const Geometry> geomB)
override;
50 std::shared_ptr<Geometry> geomA,
51 std::shared_ptr<Geometry> geomB,
52 std::vector<CollisionElement>& elementsA,
53 std::vector<CollisionElement>& elementsB)
override;
59 std::shared_ptr<Geometry> geomA,
60 std::shared_ptr<Geometry> geomB,
61 std::vector<CollisionElement>& elementsA)
override;
67 std::shared_ptr<Geometry> geomA,
68 std::shared_ptr<Geometry> geomB,
69 std::vector<CollisionElement>& elementsB)
override;
72 void internalComputeCollision(
73 std::shared_ptr<Geometry> geomA,
74 std::shared_ptr<Geometry> geomB,
75 std::vector<CollisionElement>* elementsA,
76 std::vector<CollisionElement>* elementsB);
78 std::shared_ptr<LineMesh> m_prevA;
79 std::shared_ptr<LineMesh> m_prevB;
void computeCollisionDataAB(std::shared_ptr< Geometry > geomA, std::shared_ptr< Geometry > geomB, std::vector< CollisionElement > &elementsA, std::vector< CollisionElement > &elementsB) override
Compute collision data for AB simultaneously.
void computeCollisionDataA(std::shared_ptr< Geometry > geomA, std::shared_ptr< Geometry > geomB, std::vector< CollisionElement > &elementsA) override
Compute collision data for side A.
void computeCollisionDataB(std::shared_ptr< Geometry > geomA, std::shared_ptr< Geometry > geomB, std::vector< CollisionElement > &elementsB) override
Compute collision data for side B.
void updatePreviousTimestepGeometry(std::shared_ptr< const Geometry > geomA, std::shared_ptr< const Geometry > geomB) override
Copy LineMesh geometry information (points only), as previous timestep information. These are used with current geometries that are received in computeCollisionDataXX functions for computing the continuous collision detection.
LineMesh to LineMesh continous collision detection. This CCD method can process self collision as wel...
Base class for all Continuous Collision Detection (CCD) classes. A continuous collision detection alg...