Struct rtbvh::spatial_sah::SpatialSahBuilder[][src]

pub struct SpatialSahBuilder<'a, T: Primitive<i32> + SpatialTriangle> { /* fields omitted */ }

Implementations

impl<'a, T: Primitive<i32> + SpatialTriangle> SpatialSahBuilder<'a, T>[src]

pub fn new(
    aabbs: &'a [Aabb<i32>],
    primitives: &'a [T],
    prims_per_leaf: usize
) -> Self
[src]

pub fn with_binning_pass_count(self, pass_count: usize) -> Self[src]

Number of spatial binning passes that are run in order to find a spatial split. This increases accuracy without increasing the number of bins.

pub fn with_max_depth(self, depth: usize) -> Self[src]

Maximum depth of tree

pub fn with_bin_count(self, bin_count: usize) -> Self[src]

Maximum number of bins to check for splitting a node

pub fn with_max_leaf_size(self, max_leaf_size: usize) -> Self[src]

Maximum number of primitives inside a node

pub fn with_traversal_cost(self, traversal_cost: f32) -> Self[src]

Cost to determine for splitting a node with the SAH algorithm for traversing a node

pub fn with_split_factor(self, split_factor: f32) -> Self[src]

pub fn with_alpha(self, alpha: f32) -> Self[src]

Trait Implementations

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for SpatialSahBuilder<'a, T> where
    T: RefUnwindSafe

impl<'a, T> Send for SpatialSahBuilder<'a, T>

impl<'a, T> Sync for SpatialSahBuilder<'a, T>

impl<'a, T> Unpin for SpatialSahBuilder<'a, T>

impl<'a, T> UnwindSafe for SpatialSahBuilder<'a, T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.