Support Forum G3D Web Page |
Public Member Functions | |
Settings () | |
Public Attributes | |
int | accurateSAHCountThreshold |
SAH uses an approximation to the published heuristic to reduce splitting from to . More... | |
SplitAlgorithm | algorithm |
bool | computePrevPosition |
float | maxAreaFraction |
Fraction of the bounding box surface area that one polygon is allowed to contribute before it is forced to be stored at an internal node. More... | |
int | valuesPerLeaf |
Put approximately this many triangles at each leaf. More... | |
|
inline |
int G3D::NativeTriTree::Settings::accurateSAHCountThreshold |
SAH uses an approximation to the published heuristic to reduce splitting from to .
When the number of Tris to be divided at a node falls below accurateSAHCountThreshold, it switches to the full heuristic for increased accuracy.
Set to zero to always use the accurate method and std::numeric_limits<int>::max()
to always use the fast method.
SplitAlgorithm G3D::NativeTriTree::Settings::algorithm |
bool G3D::NativeTriTree::Settings::computePrevPosition |
float G3D::NativeTriTree::Settings::maxAreaFraction |
Fraction of the bounding box surface area that one polygon is allowed to contribute before it is forced to be stored at an internal node.
Set to inf() to disable placing triangles at internal nodes.
1/6 = a triangle cutting across an entire cube will be placed at that node, if it spans the splitting plane.
int G3D::NativeTriTree::Settings::valuesPerLeaf |
Put approximately this many triangles at each leaf.
Some leaves may have more because no suitable splitting plane could be found.