38 #ifndef COAL_TRAVERSAL_NODE_SHAPES_H
39 #define COAL_TRAVERSAL_NODE_SHAPES_H
55 template <
typename S1,
typename S2>
56 class COAL_DLLAPI ShapeCollisionTraversalNode
57 :
public CollisionTraversalNodeBase {
59 ShapeCollisionTraversalNode(
const CollisionRequest& request)
60 : CollisionTraversalNodeBase(request) {
68 bool BVDisjoints(
int,
int,
CoalScalar&)
const {
73 void leafCollides(
int,
int,
CoalScalar&)
const {
74 ShapeShapeCollide<S1, S2>(this->model1, this->
tf1, this->model2, this->
tf2,
75 this->nsolver, this->request, *(this->result));
81 const GJKSolver* nsolver;
90 template <
typename S1,
typename S2>
91 class COAL_DLLAPI ShapeDistanceTraversalNode
92 :
public DistanceTraversalNodeBase {
94 ShapeDistanceTraversalNode() : DistanceTraversalNodeBase() {
102 CoalScalar BVDistanceLowerBound(
unsigned int,
unsigned int)
const {
107 void leafComputeDistance(
unsigned int,
unsigned int)
const {
108 ShapeShapeDistance<S1, S2>(this->model1, this->
tf1, this->model2, this->
tf2,
109 this->nsolver, this->request, *(this->result));
115 const GJKSolver* nsolver;