Struct rtbvh::Bvh [−][src]
pub struct Bvh { /* fields omitted */ }
Implementations
impl Bvh
[src]
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]
&'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);
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]
&'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);
Trait Implementations
impl<'de> Deserialize<'de> for Bvh
[src]
impl<'de> Deserialize<'de> for Bvh
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for Bvh
impl RefUnwindSafe for Bvh
impl UnwindSafe for Bvh
impl UnwindSafe for Bvh
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]