38 #ifndef FCL_TRAVERSAL_BVHCOLLISIONTRAVERSALNODE_H 39 #define FCL_TRAVERSAL_BVHCOLLISIONTRAVERSALNODE_H 41 #include "fcl/geometry/bvh/BVH_model.h" 42 #include "fcl/narrowphase/detail/traversal/collision/collision_traversal_node_base.h" 51 template <
typename BV>
57 using S =
typename BV::S;
93 mutable int num_leaf_tests;
94 mutable S query_time_seconds;
100 #include "fcl/narrowphase/detail/traversal/collision/bvh_collision_traversal_node-inl.h" int getFirstLeftChild(int b) const
Obtain the left child of BV node in the first BVH.
Definition: bvh_collision_traversal_node-inl.h:93
bool firstOverSecond(int b1, int b2) const
Determine the traversal order, is the first BVTT subtree better.
Definition: bvh_collision_traversal_node-inl.h:78
Main namespace.
Definition: broadphase_bruteforce-inl.h:45
bool isFirstNodeLeaf(int b) const
Whether the BV node in the first BVH tree is leaf.
Definition: bvh_collision_traversal_node-inl.h:64
const BVHModel< BV > * model1
The first BVH model.
Definition: bvh_collision_traversal_node.h:86
Node structure encoding the information required for collision traversal.
Definition: collision_traversal_node_base.h:52
int getSecondLeftChild(int b) const
Obtain the left child of BV node in the second BVH.
Definition: bvh_collision_traversal_node-inl.h:107
Traversal node for collision between BVH models.
Definition: bvh_collision_traversal_node.h:52
A class describing the bounding hierarchy of a mesh model or a point cloud model (which is viewed as ...
Definition: BVH_model.h:57
int num_bv_tests
statistical information
Definition: bvh_collision_traversal_node.h:92
int getFirstRightChild(int b) const
Obtain the right child of BV node in the first BVH.
Definition: bvh_collision_traversal_node-inl.h:100
int getSecondRightChild(int b) const
Obtain the right child of BV node in the second BVH.
Definition: bvh_collision_traversal_node-inl.h:114
const BVHModel< BV > * model2
The second BVH model.
Definition: bvh_collision_traversal_node.h:89
bool BVTesting(int b1, int b2) const
BV culling test in one BVTT node.
Definition: bvh_collision_traversal_node-inl.h:121
bool isSecondNodeLeaf(int b) const
Whether the BV node in the second BVH tree is leaf.
Definition: bvh_collision_traversal_node-inl.h:71