OMToolkit
1.0
The polygonal mesh processing tool.
|
#include <OMTriBSPTreeAABB.h>
Public Types | |
typedef OMToolkit::Types::ModuleMeshd | MeshT |
typedef MeshT::Point | PointT |
typedef MeshT::FaceHandle | FaceHT |
typedef MeshT::Scalar | ScalarT |
Public Member Functions | |
TreeElement (int id) | |
bool | intersects (OMRay &ray) |
Public Attributes | |
int | _id |
PointT | aabb [2] |
int | axis |
TreeElement * | left |
TreeElement * | right |
TriCenter | triangle |
Tree element class
typedef MeshT::FaceHandle OMToolkit::TreeElement::FaceHT |
Face handle type
Mesh type
typedef MeshT::Point OMToolkit::TreeElement::PointT |
Point type
typedef MeshT::Scalar OMToolkit::TreeElement::ScalarT |
OMToolkit::TreeElement::TreeElement | ( | int | id | ) |
Constructor - initializes children to NULL
bool OMToolkit::TreeElement::intersects | ( | OMRay & | ray | ) |
Tests intersection between ray and aabb
origin | Ray origin - intersection is computed also in inverse direction |
vector | Ray direction |
cube | Tree element (aabb) |
int OMToolkit::TreeElement::_id |
PointT OMToolkit::TreeElement::aabb[2] |
AABB (0 == min, 1 == max)
int OMToolkit::TreeElement::axis |
Division axis in BSP tree
TreeElement* OMToolkit::TreeElement::left |
Left child
TreeElement* OMToolkit::TreeElement::right |
Right child
TriCenter OMToolkit::TreeElement::triangle |