This structure implements a tree node inside an AABB collision tree.
#include <CCollisionAABBTree.h>
|
| cCollisionAABBNode () |
| Constructor of cCollisionAABBNode. More...
|
|
virtual | ~cCollisionAABBNode () |
| Destructor of cCollisionAABBNode. More...
|
|
void | fitBBox (double a_radius, cVector3d &a_vertex0) |
| This method creates a boundary box for a point. More...
|
|
void | fitBBox (double a_radius, cVector3d &a_vertex0, cVector3d &a_vertex1) |
| This method creates a boundary box for a segment. More...
|
|
void | fitBBox (double a_radius, cVector3d &a_vertex0, cVector3d &a_vertex1, cVector3d &a_vertex2) |
| This method creates a boundary box for a triangle. More...
|
|
void | render (int a_depth=-1) |
| This method draws the edges of the boundary box for this node, if at the given depth. More...
|
|
bool | computeCollision (cGenericObject *a_owner, cVector3d &a_segmentPointA, cVector3d &a_segmentDirection, cCollisionAABBBox &a_lineBox, cCollisionRecorder &a_recorder, cCollisionSettings &a_settings) |
| This method determines whether a line segment intersects any elements covered by this node. More...
|
|
chai3d::cCollisionAABBNode::cCollisionAABBNode |
( |
| ) |
|
virtual chai3d::cCollisionAABBNode::~cCollisionAABBNode |
( |
| ) |
|
|
inlinevirtual |
void chai3d::cCollisionAABBNode::fitBBox |
( |
double |
a_radius, |
|
|
cVector3d & |
a_vertex0 |
|
) |
| |
This method creates a boundary box to enclose a point belonging to the leaf node.
- Parameters
-
a_radius | Radius around the point. |
a_vertex0 | Vertex 0. |
void chai3d::cCollisionAABBNode::fitBBox |
( |
double |
a_radius, |
|
|
cVector3d & |
a_vertex0, |
|
|
cVector3d & |
a_vertex1 |
|
) |
| |
This method creates a boundary box to enclose the two vertices of a segment belonging to the leaf node.
- Parameters
-
a_radius | Radius around the segment. |
a_vertex0 | Vertex 0. |
a_vertex1 | Vertex 1. |
This method creates a boundary box to enclose the three vertices of a triangle belonging to the leaf node.
- Parameters
-
a_radius | Radius around the element. |
a_vertex0 | Vertex 0. |
a_vertex1 | Vertex 1. |
a_vertex2 | Vertex 2. |
void chai3d::cCollisionAABBNode::render |
( |
int |
a_depth = -1 | ) |
|
This method draws the edges of the boundary box for an internal tree node if it is at depth a_depth in the tree, and calls the draw function for its children.
- Parameters
-
a_depth | If a_depth > 0, then only draw nodes at this level in the tree. If a_depth < 0 render all nodes up to this level. |
int chai3d::cCollisionAABBNode::m_depth |
int chai3d::cCollisionAABBNode::m_leftSubTree |
int chai3d::cCollisionAABBNode::m_rightSubTree |
The documentation for this class was generated from the following files: