38 #ifndef FCL_TRAVERSAL_SHAPEBVHDISTANCETRAVERSALNODE_INL_H 39 #define FCL_TRAVERSAL_SHAPEBVHDISTANCETRAVERSALNODE_INL_H 41 #include "fcl/narrowphase/detail/traversal/distance/shape_bvh_distance_traversal_node.h" 50 template<
typename Shape,
typename BV>
51 ShapeBVHDistanceTraversalNode<Shape, BV>::ShapeBVHDistanceTraversalNode()
52 : DistanceTraversalNodeBase<typename BV::S>()
59 query_time_seconds = 0.0;
63 template<
typename Shape,
typename BV>
66 return model2->getBV(b).isLeaf();
70 template<
typename Shape,
typename BV>
73 return model2->getBV(b).leftChild();
77 template<
typename Shape,
typename BV>
80 return model2->getBV(b).rightChild();
84 template<
typename Shape,
typename BV>
88 return model1_bv.distance(model2->getBV(b2).bv);
Main namespace.
Definition: broadphase_bruteforce-inl.h:45
int getSecondLeftChild(int b) const
Obtain the left child of BV node in the second BVH.
Definition: shape_bvh_distance_traversal_node-inl.h:71
int getSecondRightChild(int b) const
Obtain the right child of BV node in the second BVH.
Definition: shape_bvh_distance_traversal_node-inl.h:78
S BVTesting(int b1, int b2) const
BV culling test in one BVTT node.
Definition: shape_bvh_distance_traversal_node-inl.h:86
bool isSecondNodeLeaf(int b) const
Whether the BV node in the second BVH tree is leaf.
Definition: shape_bvh_distance_traversal_node-inl.h:64