parry3d::partitioning

Trait ParallelSimdVisitor

source
pub trait ParallelSimdVisitor<LeafData>: Sync {
    // Required method
    fn visit(
        &self,
        node_id: SimdNodeIndex,
        bv: &QbvhNode,
        data: Option<[Option<&LeafData>; 4]>,
    ) -> SimdVisitStatus;
}
Expand description

Trait implemented by visitor called during the parallel traversal of a spatial partitioning data structure.

Required Methods§

source

fn visit( &self, node_id: SimdNodeIndex, bv: &QbvhNode, data: Option<[Option<&LeafData>; 4]>, ) -> SimdVisitStatus

Execute an operation on the content of a node of the spatial partitioning structure.

Returns whether the traversal should continue on the node’s children, if it should not continue on those children, or if the whole traversal should be exited early.

Implementors§

source§

impl<F, LeafData> ParallelSimdVisitor<LeafData> for F