|
NTrace
GPU ray tracing framework
|
Fast k-d tree builder class. More...
#include <FastKDTreeBuilder.hpp>
Public Member Functions | |
| FastKDTreeBuilder (KDTree &kdtree, const KDTree::BuildParams ¶ms) | |
| Constructor. More... | |
| ~FastKDTreeBuilder (void) | |
| Destructor. More... | |
| KDTreeNode * | run (void) |
| Builds k-d tree. More... | |
| S32 | getNumDuplicates (void) |
| Returns total number of duplicated triangle references. More... | |
Fast k-d tree builder class.
Implementation of k-d tree described in [Wald and Havran 2006]
Definition at line 39 of file FastKDTreeBuilder.hpp.
| FastKDTreeBuilder::FastKDTreeBuilder | ( | KDTree & | kdtree, |
| const KDTree::BuildParams & | params | ||
| ) |
Constructor.
| [in] | kdtree | K-d tree being constructed. |
| [in] | params | Build parameters. |
Definition at line 39 of file FastKDTreeBuilder.cpp.
|
inline |
Destructor.
Definition at line 145 of file FastKDTreeBuilder.hpp.
Returns total number of duplicated triangle references.
Definition at line 157 of file FastKDTreeBuilder.hpp.
| KDTreeNode * FastKDTreeBuilder::run | ( | void | ) |
Builds k-d tree.
Definition at line 51 of file FastKDTreeBuilder.cpp.