#include <Opcode.h>
Definition at line 48 of file Opcode.h.
◆ AABBTreeBuilder()
Opcode::AABBTreeBuilder::AABBTreeBuilder |
( |
| ) |
|
|
inline |
Constructor.
Definition at line 52 of file Opcode.h.
◆ ~AABBTreeBuilder()
virtual Opcode::AABBTreeBuilder::~AABBTreeBuilder |
( |
| ) |
|
|
inlinevirtual |
Destructor.
Definition at line 58 of file Opcode.h.
◆ ComputeGlobalBox()
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
◆ GetCount()
◆ GetNbInvalidSplits()
inline_ udword Opcode::AABBTreeBuilder::GetNbInvalidSplits |
( |
| ) |
const |
|
inline |
◆ GetSplittingValue() [1/2]
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
◆ GetSplittingValue() [2/2]
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.
◆ IncreaseCount()
◆ IncreaseNbInvalidSplits()
inline_ void Opcode::AABBTreeBuilder::IncreaseNbInvalidSplits |
( |
| ) |
|
|
inline |
◆ SetCount()
◆ SetNbInvalidSplits()
◆ ValidateSubdivision()
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.
◆ mCount
udword Opcode::AABBTreeBuilder::mCount |
|
private |
Stats: number of nodes created.
Definition at line 126 of file Opcode.h.
◆ mNbInvalidSplits
udword Opcode::AABBTreeBuilder::mNbInvalidSplits |
|
private |
Stats: number of invalid splits.
Definition at line 127 of file Opcode.h.
◆ mNbPrimitives
udword Opcode::AABBTreeBuilder::mNbPrimitives |
Total number of primitives.
Definition at line 115 of file Opcode.h.
◆ mNodeBase
void* Opcode::AABBTreeBuilder::mNodeBase |
◆ mSettings
The documentation for this class was generated from the following file: