|
typedef BSPTraits | Traits |
|
typedef BSPTraits::Point | Point |
|
typedef BSPTraits::Handle | Handle |
|
typedef BSPTraits::Node | Node |
|
typedef Point::value_type | Scalar |
|
typedef ACG::Geometry::PlaneT< Scalar > | Plane |
|
typedef std::vector< Handle > | Handles |
|
typedef Handles::iterator | HandleIter |
|
|
| TriangleBSPCoreT (const BSPTraits &_traits) |
|
| ~TriangleBSPCoreT () |
| Destructor.
|
|
void | reserve (size_t _n) |
| Reserve memory for _n entries.
|
|
void | push_back (Handle _h) |
| Add a handle to the BSP.
|
|
bool | empty () |
|
size_t | size () |
|
void | build (unsigned int _max_handles, unsigned int _max_depth) |
|
template<typename MeshT > |
void | visualizeTree (MeshT *_object, int _max_depth) |
| Create a PolyMesh object that visualizes the bounding boxes of the BSP tree. More...
|
|
|
BSPTraits | traits_ |
|
Handles | handles_ |
|
Node * | root_ |
|
int | nodes |
|
int | n_triangles |
|
template<class BSPTraits>
class TriangleBSPCoreT< BSPTraits >
Definition at line 77 of file TriangleBSPCoreT.hh.
template<class BSPTraits>
Constructor: need traits that define the types and give us the points by traits_.point(PointHandle)
Definition at line 96 of file TriangleBSPCoreT.hh.
template<class BSPTraits >
void TriangleBSPCoreT< BSPTraits >::build |
( |
unsigned int |
_max_handles, |
|
|
unsigned int |
_max_depth |
|
) |
| |
Build the tree.
- Parameters
-
_max_handles | Maximum number of vertices per leaf. |
_max_depth | Maximum depth. |
Definition at line 72 of file TriangleBSPCoreT.cc.
template<class BSPTraits>
template<class BSPTraits>
template<class BSPTraits>
template<typename MeshT >
void TriangleBSPCoreT< BSPTraits >::visualizeTree |
( |
MeshT * |
_object, |
|
|
int |
_max_depth |
|
) |
| |
|
inline |
Create a PolyMesh object that visualizes the bounding boxes of the BSP tree.
- Parameters
-
_object | The output mesh which the tree will be written into |
_max_depth | The maximal depth that will be visualized |
Definition at line 132 of file TriangleBSPCoreT.hh.
The documentation for this class was generated from the following files: