iMSTK
Interactive Medical Simulation Toolkit
imstkBidirectionalPlaneToSphereCD.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 
11 namespace imstk
12 {
20 {
21 public:
23  ~BidirectionalPlaneToSphereCD() override = default;
24 
25  IMSTK_TYPE_NAME(BidirectionalPlaneToSphereCD)
26 
27 protected:
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...
Compound Geometry.
Plane to sphere collision detection Generates point-direction contact data.
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.