Template Struct BVNode

Inheritance Relationships

Base Type

Struct Documentation

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

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.

Public Types

typedef BVNodeBase Base

Public Functions

inline bool operator==(const BVNode &other) const

Equality operator.

inline bool operator!=(const BVNode &other) const

Difference operator.

inline bool overlap(const BVNode &other) const

Check whether two BVNode collide.

inline bool overlap(const BVNode &other, const CollisionRequest &request, CoalScalar &sqrDistLowerBound) const

Check whether two BVNode collide.

inline CoalScalar 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.

inline Vec3s getCenter() const

Access to the center of the BV.

inline const Matrix3s &getOrientation() const

Access to the orientation of the BV.

inline const Matrix3s &getOrientation() const
inline const Matrix3s &getOrientation() const
inline const Matrix3s &getOrientation() const

Public Members

BV bv

bounding volume storing the geometry