coal  3.0.1
Coal, The Collision Detection Library. Previously known as HPP-FCL, fork of FCL -- The Flexible Collision Library
coal::BVNode< BV > Struct Template Reference

A class describing a bounding volume node. It includes the tree structure providing in BVNodeBase and also the geometry data provided in BV template parameter. More...

#include <coal/BV/BV_node.h>

Inheritance diagram for coal::BVNode< BV >:
Collaboration diagram for coal::BVNode< BV >:

Public Types

typedef BVNodeBase Base
 

Public Member Functions

bool operator== (const BVNode &other) const
 Equality operator. More...
 
bool operator!= (const BVNode &other) const
 Difference operator. More...
 
bool overlap (const BVNode &other) const
 Check whether two BVNode collide. More...
 
bool overlap (const BVNode &other, const CollisionRequest &request, Scalar &sqrDistLowerBound) const
 Check whether two BVNode collide. More...
 
Scalar distance (const BVNode &other, Vec3s *P1=NULL, Vec3s *P2=NULL) const
 Compute the distance between two BVNode. P1 and P2, if not NULL and the underlying BV supports distance, return the nearest points. More...
 
Vec3s getCenter () const
 Access to the center of the BV. More...
 
const Matrix3sgetOrientation () const
 Access to the orientation of the BV. More...
 
const Matrix3sgetOrientation () const
 
const Matrix3sgetOrientation () const
 
const Matrix3sgetOrientation () const
 
- Public Member Functions inherited from coal::BVNodeBase
 BVNodeBase ()
 Default constructor. More...
 
bool operator== (const BVNodeBase &other) const
 Equality operator. More...
 
bool operator!= (const BVNodeBase &other) const
 Difference operator. More...
 
bool isLeaf () const
 Whether current node is a leaf node (i.e. contains a primitive index. More...
 
int primitiveId () const
 Return the primitive index. The index is referred to the original data (i.e. vertices or tri_indices) in BVHModel. More...
 
int leftChild () const
 Return the index of the first child. The index is referred to the bounding volume array (i.e. bvs) in BVHModel. More...
 
int rightChild () const
 Return the index of the second child. The index is referred to the bounding volume array (i.e. bvs) in BVHModel. More...
 

Public Attributes

BV bv
 bounding volume storing the geometry More...
 
- Public Attributes inherited from coal::BVNodeBase
int first_child
 An index for first child node or primitive If the value is positive, it is the index of the first child bv node If the value is negative, it is -(primitive index + 1) Zero is not used. More...
 
unsigned int first_primitive
 The start id the primitive belonging to the current node. The index is referred to the primitive_indices in BVHModel and from that we can obtain the primitive's index in original data indirectly. More...
 
unsigned int num_primitives
 The number of primitives belonging to the current node. More...
 

Detailed Description

template<typename BV>
struct coal::BVNode< BV >

A class describing a bounding volume node. It includes the tree structure providing in BVNodeBase and also the geometry data provided in BV template parameter.

Member Function Documentation

◆ getOrientation() [1/3]

const Matrix3s & coal::BVNode< OBB >::getOrientation ( ) const
inline

◆ getOrientation() [2/3]

const Matrix3s & coal::BVNode< RSS >::getOrientation ( ) const
inline

◆ getOrientation() [3/3]

const Matrix3s & coal::BVNode< OBBRSS >::getOrientation ( ) const
inline

The documentation for this struct was generated from the following file: