|
Nebula
|
#include <bvh.h>
Classes | |
| class | Node |
Public Member Functions | |
| ~Bvh () | |
| void | Build (Math::bbox *bboxes, uint32_t numBoxes) |
| Builds the bvh tree. | |
| Util::Array< uint32_t > | Intersect (Math::line line) |
| returns all intersected bboxes indices based on the order they were when passed to the Build method. | |
| void | UpdateNodeBounds (Bvh::Node *node, Math::bbox *bboxes) |
| void | Subdivide (Bvh::Node *node, Math::bbox *bboxes) |
| float | FindBestSplitPlane (Bvh::Node *node, Math::bbox *bboxes, int &axis, float &splitPos) |
| void | Clear () |
Public Attributes | |
| Bvh::Node * | nodes = nullptr |
| uint32_t * | externalIndices = nullptr |
| these map to where the original bbox was when passed to the build method. | |
| uint32_t | rootNodeIndex = 0 |
| uint32_t | numNodes = 0 |
| uint32_t | nodesUsed = 0 |
|
inline |
|
inline |
Builds the bvh tree.
|
inline |
|
inline |
|
inline |
returns all intersected bboxes indices based on the order they were when passed to the Build method.
|
inline |
|
inline |
| uint32_t* Util::Bvh::externalIndices = nullptr |
these map to where the original bbox was when passed to the build method.
| Bvh::Node* Util::Bvh::nodes = nullptr |
| uint32_t Util::Bvh::nodesUsed = 0 |
| uint32_t Util::Bvh::numNodes = 0 |
| uint32_t Util::Bvh::rootNodeIndex = 0 |