All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fcl::ShapeMeshCollisionTraversalNode< S, BV, NarrowPhaseSolver > Class Template Reference

Traversal node for collision between shape and mesh. More...

#include <hpp/fcl/traversal/traversal_node_bvh_shape.h>

Inheritance diagram for fcl::ShapeMeshCollisionTraversalNode< S, BV, NarrowPhaseSolver >:
Collaboration diagram for fcl::ShapeMeshCollisionTraversalNode< S, BV, NarrowPhaseSolver >:

Public Member Functions

 ShapeMeshCollisionTraversalNode ()
 
void leafTesting (int b1, int b2) const
 Intersection testing between leaves (one shape and one triangle) More...
 
bool canStop () const
 Whether the traversal process can stop early. More...
 
- Public Member Functions inherited from fcl::ShapeBVHCollisionTraversalNode< S, BV >
 ShapeBVHCollisionTraversalNode ()
 
bool firstOverSecond (int, int) const
 Alway extend the second model, which is a BVH model. More...
 
bool isSecondNodeLeaf (int b) const
 Whether the BV node in the second BVH tree is leaf. More...
 
int getSecondLeftChild (int b) const
 Obtain the left child of BV node in the second BVH. More...
 
int getSecondRightChild (int b) const
 Obtain the right child of BV node in the second BVH. More...
 
bool BVTesting (int b1, int b2) const
 BV test between b1 and b2. More...
 
bool BVTesting (int b1, int b2, FCL_REAL &sqrDistLowerBound) const
 BV test between b1 and b2. More...
 
- Public Member Functions inherited from fcl::CollisionTraversalNodeBase
 CollisionTraversalNodeBase (bool enable_distance_lower_bound_=false)
 
virtual ~CollisionTraversalNodeBase ()
 
virtual void leafTesting (int b1, int b2, FCL_REAL &sqrDistLowerBound) const
 Leaf test between node b1 and b2, if they are both leafs. More...
 
void enableStatistics (bool enable)
 Whether store some statistics information during traversal. More...
 
- Public Member Functions inherited from fcl::TraversalNodeBase
virtual ~TraversalNodeBase ()
 
virtual void preprocess ()
 
virtual void postprocess ()
 
virtual bool isFirstNodeLeaf (int b) const
 Whether b is a leaf node in the first BVH tree. More...
 
virtual int getFirstLeftChild (int b) const
 Get the left child of the node b in the first tree. More...
 
virtual int getFirstRightChild (int b) const
 Get the right child of the node b in the first tree. More...
 

Public Attributes

Vec3fvertices
 
Triangletri_indices
 
FCL_REAL cost_density
 
const NarrowPhaseSolver * nsolver
 
- Public Attributes inherited from fcl::ShapeBVHCollisionTraversalNode< S, BV >
const S * model1
 
const BVHModel< BV > * model2
 
BV model1_bv
 
int num_bv_tests
 
int num_leaf_tests
 
FCL_REAL query_time_seconds
 
- Public Attributes inherited from fcl::CollisionTraversalNodeBase
CollisionRequest request
 request setting for collision More...
 
CollisionResultresult
 collision result kept during the traversal iteration More...
 
bool enable_statistics
 Whether stores statistics. More...
 
bool enable_distance_lower_bound
 Whether to compute a lower bound on distance between bounding volumes. More...
 
- Public Attributes inherited from fcl::TraversalNodeBase
Transform3f tf1
 configuation of first object More...
 
Transform3f tf2
 configuration of second object More...
 

Detailed Description

template<typename S, typename BV, typename NarrowPhaseSolver>
class fcl::ShapeMeshCollisionTraversalNode< S, BV, NarrowPhaseSolver >

Traversal node for collision between shape and mesh.

Constructor & Destructor Documentation

template<typename S, typename BV, typename NarrowPhaseSolver>
fcl::ShapeMeshCollisionTraversalNode< S, BV, NarrowPhaseSolver >::ShapeMeshCollisionTraversalNode ( )
inline

Member Function Documentation

template<typename S, typename BV, typename NarrowPhaseSolver>
bool fcl::ShapeMeshCollisionTraversalNode< S, BV, NarrowPhaseSolver >::canStop ( ) const
inlinevirtual

Whether the traversal process can stop early.

Reimplemented from fcl::CollisionTraversalNodeBase.

template<typename S, typename BV, typename NarrowPhaseSolver>
void fcl::ShapeMeshCollisionTraversalNode< S, BV, NarrowPhaseSolver >::leafTesting ( int  b1,
int  b2 
) const
inline

Intersection testing between leaves (one shape and one triangle)

Member Data Documentation

template<typename S, typename BV, typename NarrowPhaseSolver>
FCL_REAL fcl::ShapeMeshCollisionTraversalNode< S, BV, NarrowPhaseSolver >::cost_density