pub struct TreeIndex { /* private fields */ }Expand description
Static median-split tree over one mesh’s triangle bounds.
Implementations§
Source§impl TreeIndex
impl TreeIndex
pub fn build(mesh: &dyn TriangleSource, options: TreeOptions) -> Self
Sourcepub fn build_with_runner(
mesh: &dyn TriangleSource,
options: TreeOptions,
runner: &mut Runner<'_>,
) -> Result<Self, Cancelled>
pub fn build_with_runner( mesh: &dyn TriangleSource, options: TreeOptions, runner: &mut Runner<'_>, ) -> Result<Self, Cancelled>
Build, publishing index-build-start, index-build-partition (at
chunk boundaries counted in triangles partitioned) and
index-build-complete, and stopping at a partition boundary on cancel.
pub fn node_count(&self) -> usize
Trait Implementations§
impl StructuralPartialEq for TreeIndex
Source§impl TriangleIndex for TreeIndex
impl TriangleIndex for TreeIndex
Source§fn query_aabb(&self, query: &Bounds3, mode: ProjectionMode, out: &mut Vec<u32>)
fn query_aabb(&self, query: &Bounds3, mode: ProjectionMode, out: &mut Vec<u32>)
Append every triangle id whose bounds overlap
query on the axes mode
compares. Touching counts. Ids are appended in ascending order and
out is NOT cleared first.fn stats(&self) -> IndexStats
Auto Trait Implementations§
impl Forget for TreeIndex
impl Freeze for TreeIndex
impl Move for TreeIndex
impl RefUnwindSafe for TreeIndex
impl Send for TreeIndex
impl Sync for TreeIndex
impl Unpin for TreeIndex
impl UnsafeUnpin for TreeIndex
impl UnwindSafe for TreeIndex
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