Traversal node for collision between mesh and shape. More...
#include <hpp/fcl/traversal/traversal_node_bvh_shape.h>
Public Types | |
enum | { Options = _Options, RTIsIdentity = _Options & RelativeTransformationIsIdentity } |
Public Member Functions | |
MeshShapeCollisionTraversalNode (const CollisionRequest &request) | |
bool | BVTesting (int b1, int) const |
BV culling test in one BVTT node. More... | |
bool | BVTesting (int b1, int, FCL_REAL &sqrDistLowerBound) const |
test between BV b1 and shape More... | |
void | leafTesting (int b1, int, FCL_REAL &sqrDistLowerBound) const |
Intersection testing between leaves (one triangle and one shape) More... | |
bool | canStop () const |
Whether the traversal process can stop early. More... | |
![]() | |
BVHShapeCollisionTraversalNode (const CollisionRequest &request) | |
bool | isFirstNodeLeaf (int b) const |
Whether the BV node in the first BVH tree is leaf. More... | |
int | getFirstLeftChild (int b) const |
Obtain the left child of BV node in the first BVH. More... | |
int | getFirstRightChild (int b) const |
Obtain the right child of BV node in the first BVH. More... | |
![]() | |
CollisionTraversalNodeBase (const CollisionRequest &request_) | |
virtual | ~CollisionTraversalNodeBase () |
void | enableStatistics (bool enable) |
Whether store some statistics information during traversal. More... | |
![]() | |
virtual | ~TraversalNodeBase () |
virtual void | preprocess () |
virtual void | postprocess () |
virtual bool | isSecondNodeLeaf (int b) const |
Whether b is a leaf node in the second BVH tree. More... | |
virtual bool | firstOverSecond (int b1, int b2) const |
Traverse the subtree of the node in the first tree first. More... | |
virtual int | getSecondLeftChild (int b) const |
Get the left child of the node b in the second tree. More... | |
virtual int | getSecondRightChild (int b) const |
Get the right child of the node b in the second tree. More... | |
Public Attributes | |
Vec3f * | vertices |
Triangle * | tri_indices |
const NarrowPhaseSolver * | nsolver |
![]() | |
const BVHModel< BV > * | model1 |
const S * | model2 |
BV | model2_bv |
int | num_bv_tests |
int | num_leaf_tests |
FCL_REAL | query_time_seconds |
![]() | |
const CollisionRequest & | request |
request setting for collision More... | |
CollisionResult * | result |
collision result kept during the traversal iteration More... | |
bool | enable_statistics |
Whether stores statistics. More... | |
![]() | |
Transform3f | tf1 |
configuation of first object More... | |
Transform3f | tf2 |
configuration of second object More... | |
Traversal node for collision between mesh and shape.
anonymous enum |
|
inline |
|
inlinevirtual |
BV culling test in one BVTT node.
Implements hpp::fcl::CollisionTraversalNodeBase.
|
inlinevirtual |
test between BV b1 and shape
b1 | BV to test, |
sqrDistLowerBound | square of a lower bound of the minimal distance between bounding volumes. BV culling test in one BVTT node |
Implements hpp::fcl::CollisionTraversalNodeBase.
|
inlinevirtual |
Whether the traversal process can stop early.
Reimplemented from hpp::fcl::CollisionTraversalNodeBase.
|
inlinevirtual |
Intersection testing between leaves (one triangle and one shape)
Reimplemented from hpp::fcl::CollisionTraversalNodeBase.
const NarrowPhaseSolver* hpp::fcl::MeshShapeCollisionTraversalNode< BV, S, NarrowPhaseSolver, _Options >::nsolver |
Referenced by hpp::fcl::initialize().
Triangle* hpp::fcl::MeshShapeCollisionTraversalNode< BV, S, NarrowPhaseSolver, _Options >::tri_indices |
Referenced by hpp::fcl::initialize().
Vec3f* hpp::fcl::MeshShapeCollisionTraversalNode< BV, S, NarrowPhaseSolver, _Options >::vertices |
Referenced by hpp::fcl::initialize().