#include <OPC_TreeBuilders.h>
Public Member Functions | |
AABBTreeBuilder () | |
Constructor. More... | |
virtual bool | ComputeGlobalBox (const udword *primitives, udword nb_prims, AABB &global_box) const =0 |
inline_ udword | GetCount () const |
inline_ udword | GetNbInvalidSplits () const |
virtual float | GetSplittingValue (udword index, udword axis) const =0 |
virtual float | GetSplittingValue (const udword *primitives, udword nb_prims, const AABB &global_box, udword axis) const |
inline_ void | IncreaseCount (udword nb) |
inline_ void | IncreaseNbInvalidSplits () |
inline_ void | SetCount (udword nb) |
inline_ void | SetNbInvalidSplits (udword nb) |
virtual BOOL | ValidateSubdivision (const udword *primitives, udword nb_prims, const AABB &global_box) |
virtual | ~AABBTreeBuilder () |
Destructor. More... | |
Public Attributes | |
udword | mNbPrimitives |
Total number of primitives. More... | |
void * | mNodeBase |
Address of node pool [Opcode 1.3]. More... | |
BuildSettings | mSettings |
Splitting rules & split limit [Opcode 1.3]. More... | |
Private Attributes | |
udword | mCount |
Stats: number of nodes created. More... | |
udword | mNbInvalidSplits |
Stats: number of invalid splits. More... | |
Definition at line 47 of file OPC_TreeBuilders.h.
|
inline |
Constructor.
Definition at line 51 of file OPC_TreeBuilders.h.
|
inlinevirtual |
Destructor.
Definition at line 57 of file OPC_TreeBuilders.h.
Definition at line 119 of file OPC_TreeBuilders.h.
Definition at line 122 of file OPC_TreeBuilders.h.
Computes the splitting value along a given axis for a given primitive.
index | [in] index of the primitive to split |
axis | [in] axis index (0,1,2) |
|
inlinevirtual |
Computes the splitting value along a given axis for a given node.
primitives | [in] list of indices of primitives |
nb_prims | [in] number of indices |
global_box | [in] global AABB enclosing the set of input primitives |
axis | [in] axis index (0,1,2) |
Definition at line 90 of file OPC_TreeBuilders.h.
Definition at line 118 of file OPC_TreeBuilders.h.
Definition at line 121 of file OPC_TreeBuilders.h.
Definition at line 117 of file OPC_TreeBuilders.h.
Definition at line 120 of file OPC_TreeBuilders.h.
|
inlinevirtual |
Validates node subdivision. This is called each time a node is considered for subdivision, during tree building.
primitives | [in] list of indices of primitives |
nb_prims | [in] number of indices |
global_box | [in] global AABB enclosing the set of input primitives |
Definition at line 105 of file OPC_TreeBuilders.h.
|
private |
Stats: number of nodes created.
Definition at line 125 of file OPC_TreeBuilders.h.
|
private |
Stats: number of invalid splits.
Definition at line 126 of file OPC_TreeBuilders.h.
udword AABBTreeBuilder::mNbPrimitives |
Total number of primitives.
Definition at line 114 of file OPC_TreeBuilders.h.
void* AABBTreeBuilder::mNodeBase |
Address of node pool [Opcode 1.3].
Definition at line 115 of file OPC_TreeBuilders.h.
BuildSettings AABBTreeBuilder::mSettings |
Splitting rules & split limit [Opcode 1.3].
Definition at line 113 of file OPC_TreeBuilders.h.