Struct rtbvh::Bvh[][src]

pub struct Bvh { /* fields omitted */ }

Implementations

impl Bvh[src]

pub fn nodes(&self) -> &[BvhNode][src]

pub fn indices(&self) -> &[u32][src]

pub fn build_type(&self) -> BuildType[src]

pub fn prim_count(&self) -> usize[src]

pub fn refit(&mut self, new_aabbs: &[Aabb])[src]

pub fn validate(&self, prim_count: usize) -> bool[src]

Validates the current bvh for correctness in terms of primitive ids and tree structure

pub fn into_raw_indices(self) -> Vec<u32>[src]

pub fn into_raw_nodes(self) -> Vec<BvhNode>[src]

pub fn into_raw(self) -> (Vec<BvhNode>, Vec<u32>)[src]

pub fn traverse_iter<'a, T: Primitive>(
    &'a self,
    ray: Ray,
    primitives: &'a [T]
) -> BvhIterator<'a, T>

Notable traits for BvhIterator<'a, T>

impl<'a, T: Primitive> Iterator for BvhIterator<'a, T> type Item = (&'a T, &'a mut Ray);
[src]

pub fn traverse_iter_packet<'a, T: Primitive>(
    &'a self,
    ray: RayPacket4,
    primitives: &'a [T]
) -> BvhPacketIterator<'a, T>

Notable traits for BvhPacketIterator<'a, T>

impl<'a, T: Primitive> Iterator for BvhPacketIterator<'a, T> type Item = (&'a T, &'a mut RayPacket4);
[src]

Trait Implementations

impl Bounds<i32> for Bvh[src]

impl Clone for Bvh[src]

impl Debug for Bvh[src]

impl Default for Bvh[src]

impl<'de> Deserialize<'de> for Bvh[src]

impl From<Bvh> for Mbvh[src]

impl Serialize for Bvh[src]

Auto Trait Implementations

impl RefUnwindSafe for Bvh

impl Send for Bvh

impl Sync for Bvh

impl Unpin for Bvh

impl UnwindSafe for Bvh

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.