#include <Opcode.h>
Definition at line 48 of file Opcode.h.
Opcode::AABBTreeBuilder::AABBTreeBuilder |
( |
| ) |
|
|
inline |
Constructor.
Definition at line 52 of file Opcode.h.
virtual Opcode::AABBTreeBuilder::~AABBTreeBuilder |
( |
| ) |
|
|
inlinevirtual |
Destructor.
Definition at line 58 of file Opcode.h.
virtual bool Opcode::AABBTreeBuilder::ComputeGlobalBox |
( |
const udword * |
primitives, |
|
|
udword |
nb_prims, |
|
|
AABB & |
global_box |
|
) |
| const |
|
pure virtual |
Computes the AABB of a set of primitives.
- Parameters
-
primitives | [in] list of indices of primitives |
nb_prims | [in] number of indices |
global_box | [out] global AABB enclosing the set of input primitives |
- Returns
- true if success
inline_ udword Opcode::AABBTreeBuilder::GetNbInvalidSplits |
( |
| ) |
const |
|
inline |
virtual float Opcode::AABBTreeBuilder::GetSplittingValue |
( |
udword |
index, |
|
|
udword |
axis |
|
) |
| const |
|
pure virtual |
Computes the splitting value along a given axis for a given primitive.
- Parameters
-
index | [in] index of the primitive to split |
axis | [in] axis index (0,1,2) |
- Returns
- splitting value
Computes the splitting value along a given axis for a given node.
- Parameters
-
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) |
- Returns
- splitting value
Definition at line 91 of file Opcode.h.
inline_ void Opcode::AABBTreeBuilder::IncreaseNbInvalidSplits |
( |
| ) |
|
|
inline |
Validates node subdivision. This is called each time a node is considered for subdivision, during tree building.
- Parameters
-
primitives | [in] list of indices of primitives |
nb_prims | [in] number of indices |
global_box | [in] global AABB enclosing the set of input primitives |
- Returns
- TRUE if the node should be subdivised
Definition at line 106 of file Opcode.h.
udword Opcode::AABBTreeBuilder::mCount |
|
private |
Stats: number of nodes created.
Definition at line 126 of file Opcode.h.
udword Opcode::AABBTreeBuilder::mNbInvalidSplits |
|
private |
Stats: number of invalid splits.
Definition at line 127 of file Opcode.h.
udword Opcode::AABBTreeBuilder::mNbPrimitives |
Total number of primitives.
Definition at line 115 of file Opcode.h.
void* Opcode::AABBTreeBuilder::mNodeBase |
The documentation for this class was generated from the following file: