| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/container/boundingboxtree.h>

Public Member Functions | |
| BoundingBoxTree (SO< Iterator< Bounds > > bboxes, int objectsPerLeaf=5, int thresholdFactor=50) | |
| The numbers of the bounding boxes are organized in a tree structure. | |
| SO< Iterator< int > > | findOverlappingBoxes (const VRS::Bounds &bounds) const |
| Returns the numbers of all initially specified bounding boxes that overlap the given volume. | |
| VRS_TYPEINFO (BoundingBoxTree, SharedObj) | |
| VRS_SERIALIZABLE (BoundingBoxTree) | |
Static Public Member Functions | |
| static SO< BoundingBoxTree > | create (SO< Iterator< Vector > > primitives, int verticesPerPrimitive, int objectsPerLeaf=5, int thresholdFactor=50) |
| Convenience method: Computes the bounding box tree for a set of primitives of equal length (Points, Lines, Triangles, Quads. | |
Classes | |
| struct | Node |
| VRS::BoundingBoxTree::BoundingBoxTree | ( | SO< Iterator< Bounds > > | bboxes, | |
| int | objectsPerLeaf = 5, |
|||
| int | thresholdFactor = 50 | |||
| ) |
The numbers of the bounding boxes are organized in a tree structure.
Each bounding box B is referenced in each leaf node whose region overlaps B. The parameters 'numObjects' and 'thresholdFactor' defines the termination criterion for the node subdivision: The subdivision terminates if either the number of objects is smaller than 'objectsPerLeaf' or if a possible subdivison would insert more than 'thresholdFactor' percent in both child nodes. threshold mus be between 0 and 100.
| static SO<BoundingBoxTree> VRS::BoundingBoxTree::create | ( | SO< Iterator< Vector > > | primitives, | |
| int | verticesPerPrimitive, | |||
| int | objectsPerLeaf = 5, |
|||
| int | thresholdFactor = 50 | |||
| ) | [static] |
Convenience method: Computes the bounding box tree for a set of primitives of equal length (Points, Lines, Triangles, Quads.
..)
| SO<Iterator<int> > VRS::BoundingBoxTree::findOverlappingBoxes | ( | const VRS::Bounds & | bounds | ) | const |
Returns the numbers of all initially specified bounding boxes that overlap the given volume.
| VRS::BoundingBoxTree::VRS_TYPEINFO | ( | BoundingBoxTree | , | |
| SharedObj | ||||
| ) |
| VRS::BoundingBoxTree::VRS_SERIALIZABLE | ( | BoundingBoxTree | ) |