An SAH-based bvh builder for 3d bboxes
|
| Bvh_sah_builder () |
| constructor
|
|
void | set_max_leaf_size (const uint32 max_leaf_size) |
| set bvh parameters
|
|
void | set_force_splitting (const bool flag) |
| set force splitting
|
|
void | set_force_alignment (const bool flag) |
| set force 'max leaf size'-aligned splits
|
|
void | set_single_axis_threshold (const uint32 v) |
| set single axis test threshold
|
|
template<typename Iterator > |
void | build (Iterator begin, Iterator end, bvh_type *bvh, Stats *stats=NULL) |
|
template<typename Iterator , typename CostIterator > |
void | build (Iterator begin, Iterator end, CostIterator cost_begin, bvh_type *bvh, Stats *stats=NULL) |
|
uint32 | index (const uint32 i) const |
| remapped point index
|
|
template<typename Iterator > |
void | build (const Iterator begin, const Iterator end, bvh_type *bvh) |
|