NTrace
GPU ray tracing framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FW::NaiveKDTreeBuilder Class Reference

Naive k-d tree builder class. More...

#include <NaiveKDTreeBuilder.hpp>

Public Member Functions

 NaiveKDTreeBuilder (KDTree &kdtree, const KDTree::BuildParams &params)
 Constructor. More...
 
 ~NaiveKDTreeBuilder (void)
 Destructor. More...
 
KDTreeNoderun (void)
 Builds k-d tree. More...
 
S32 getNumDuplicates (void)
 Returns number of duplicated references. More...
 

Detailed Description

Naive k-d tree builder class.

Uses either spatial median or object median to determine position of the split. Axis of the split is selected in round-robin fashion.

Definition at line 39 of file NaiveKDTreeBuilder.hpp.

Constructor & Destructor Documentation

FW::NaiveKDTreeBuilder::NaiveKDTreeBuilder ( KDTree kdtree,
const KDTree::BuildParams params 
)

Constructor.

Parameters
[in]kdtreeK-d tree being built.
[in]paramsBuild parameters.

Definition at line 35 of file NaiveKDTreeBuilder.cpp.

FW::NaiveKDTreeBuilder::~NaiveKDTreeBuilder ( void  )
inline

Destructor.

Definition at line 103 of file NaiveKDTreeBuilder.hpp.

Member Function Documentation

S32 FW::NaiveKDTreeBuilder::getNumDuplicates ( void  )
inline

Returns number of duplicated references.

Returns
Number of duplicated references.

Definition at line 115 of file NaiveKDTreeBuilder.hpp.

KDTreeNode * FW::NaiveKDTreeBuilder::run ( void  )

Builds k-d tree.

Returns
Root node of the built tree.

Definition at line 45 of file NaiveKDTreeBuilder.cpp.


The documentation for this class was generated from the following files: