iMSTK
Interactive Medical Simulation Toolkit
imstkSphereToSphereCD.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 {
14 class CollisionData;
15 class Sphere;
16 
25 {
26 public:
28  ~SphereToSphereCD() override = default;
29 
30  IMSTK_TYPE_NAME(SphereToSphereCD)
31 
32 protected:
37  std::shared_ptr<Geometry> geomA,
38  std::shared_ptr<Geometry> geomB,
39  std::vector<CollisionElement>& elementsA,
40  std::vector<CollisionElement>& elementsB) override;
41 };
42 } // namespace imstk
Base class for all collision detection classes. CollisionDetection classes produce CollisionData betw...
Sphere to sphere collision detection Generates point-direction contact data. By default generates con...
Compound Geometry.
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.