iMSTK
Interactive Medical Simulation Toolkit
imstkTetraToLineMeshCD.h
1 /*
2 ** This file is part of the Interactive Medical Simulation Toolkit (iMSTK)
3 ** iMSTK is distributed under the Apache License, Version 2.0.
4 ** See accompanying NOTICE for details.
5 */
6 
7 #pragma once
8 
9 #include "imstkCollisionDetectionAlgorithm.h"
10 #include "imstkMacros.h"
11 
12 namespace imstk
13 {
20 {
21 public:
23  ~TetraToLineMeshCD() override = default;
24 
25  IMSTK_TYPE_NAME(TetraToLineMeshCD)
26 
27 public:
32  std::shared_ptr<Geometry> geomA,
33  std::shared_ptr<Geometry> geomB,
34  std::vector<CollisionElement>& elementsA,
35  std::vector<CollisionElement>& elementsB) override;
36 };
37 } // namespace imstk
Base class for all collision detection classes. CollisionDetection classes produce CollisionData betw...
Computes intersection points along a line mesh on the faces of the tetrahedrons.
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 both sides simultaneously.
Compound Geometry.