pub struct BvhTreeStatistics {
pub node_count: usize,
pub leaf_count: usize,
pub internal_count: usize,
pub max_depth: usize,
pub total_primitives: usize,
pub avg_fanout: f32,
pub total_leaf_surface_area: f32,
}Expand description
Extended BVH tree statistics including average fan-out.
Fields§
§node_count: usizeTotal node count.
leaf_count: usizeNumber of leaf nodes.
internal_count: usizeNumber of internal nodes.
max_depth: usizeMaximum depth from root (1-indexed).
total_primitives: usizeTotal number of primitives across all leaves.
avg_fanout: f32Average number of children per internal node (fan-out). For a binary tree this is at most 2.
total_leaf_surface_area: f32Total surface area of all leaf AABBs.
Implementations§
Trait Implementations§
Source§impl Clone for BvhTreeStatistics
impl Clone for BvhTreeStatistics
Source§fn clone(&self) -> BvhTreeStatistics
fn clone(&self) -> BvhTreeStatistics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BvhTreeStatistics
impl RefUnwindSafe for BvhTreeStatistics
impl Send for BvhTreeStatistics
impl Sync for BvhTreeStatistics
impl Unpin for BvhTreeStatistics
impl UnsafeUnpin for BvhTreeStatistics
impl UnwindSafe for BvhTreeStatistics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more