Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
bvh::v2::TopDownSahBuilder< Node >::Config Struct Reference

template<typename Node>
struct bvh::v2::TopDownSahBuilder< Node >::Config

Definition at line 31 of file top_down_sah_builder.h.

Public Attributes

size_t max_leaf_size = 8
 Nodes that cannot be split based on the SAH and have a number of primitives larger than this will be split using a fallback strategy.
 
size_t min_leaf_size = 1
 Nodes containing less than this amount of primitives will not be split.
 
SplitHeuristic< Scalarsah
 SAH heuristic parameters that control how primitives are partitioned.
 

#include <bvh/v2/top_down_sah_builder.h>

Inheritance diagram for bvh::v2::TopDownSahBuilder< Node >::Config:
[legend]

Member Data Documentation

◆ max_leaf_size

template<typename Node >
size_t bvh::v2::TopDownSahBuilder< Node >::Config::max_leaf_size = 8

Nodes that cannot be split based on the SAH and have a number of primitives larger than this will be split using a fallback strategy.

This should not happen often, but may happen in worst-case scenarios or poorly designed scenes.

Definition at line 43 of file top_down_sah_builder.h.

◆ min_leaf_size

template<typename Node >
size_t bvh::v2::TopDownSahBuilder< Node >::Config::min_leaf_size = 1

Nodes containing less than this amount of primitives will not be split.

This is mostly to speed up BVH construction, and using large values may lead to lower quality BVHs.

Definition at line 38 of file top_down_sah_builder.h.

◆ sah

template<typename Node >
SplitHeuristic<Scalar> bvh::v2::TopDownSahBuilder< Node >::Config::sah

SAH heuristic parameters that control how primitives are partitioned.

Definition at line 33 of file top_down_sah_builder.h.

Collaboration diagram for bvh::v2::TopDownSahBuilder< Node >::Config:
[legend]

The documentation for this struct was generated from the following file: