Struct mgf::BVH[][src]

pub struct BVH<B: Bound, V> { /* fields omitted */ }

A Bounding Volume Hierarchy.

Methods

impl<B: Bound, V> BVH<B, V>
[src]

Creates an empty BVH.

Creates a BVH with a preallocated array of cap.

Determines if the BVH is empty.

Removes all entries from the BVH.

Inserts an item into the BVH, rebalancing if necessary. All IDs returned prior to insert remain valid afterward.

Removes a leaf node from the BVH.

Returns the index of the root node.

Finds each entry in the BVH that has a bound that overlaps the bound of the passed object. Performs a depth first search for all objects.

callback is called for each entry that overlaps arg. A reference to the value stored at the leaf is passed.

Finds each entry in the BVH that has a bound that overlaps the bound of the passed object. Performs a depth first search for all objects.

callback is called for each entry that overlaps arg. A mutable reference to the value stored at the leaf is passed.

Finds all entries that intersect a ray or segment.

Trait Implementations

impl<B, V> Clone for BVH<B, V> where
    B: Bound,
    V: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<B, V> Index<usize> for BVH<B, V> where
    B: Bound
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<B, V> BoundedBy<B> for BVH<B, V> where
    B: Bound
[src]

Auto Trait Implementations

impl<B, V> Send for BVH<B, V> where
    B: Send,
    V: Send

impl<B, V> Sync for BVH<B, V> where
    B: Sync,
    V: Sync