iMSTK
Interactive Medical Simulation Toolkit
imstkLineMeshToSphereCD.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 #pragma once
7 
8 #include "imstkCollisionDetectionAlgorithm.h"
9 #include "imstkMacros.h"
10 
11 namespace imstk
12 {
21 {
22 public:
24  ~LineMeshToSphereCD() override = default;
25 
26  IMSTK_TYPE_NAME(LineMeshToSphereCD)
27 
28 protected:
33  std::shared_ptr<Geometry> geomA,
34  std::shared_ptr<Geometry> geomB,
35  std::vector<CollisionElement>& elementsA,
36  std::vector<CollisionElement>& elementsB) override;
37 };
38 } // namespace imstk
Base class for all collision detection classes. CollisionDetection classes produce CollisionData betw...
Compound Geometry.
LineMesh to Sphere collision detection Generates point-edge and point-point CD data By default only g...
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.