Skip to main content

conspire/geometry/ntree/prune/
mod.rs

1use crate::geometry::ntree::Orthotree;
2use crate::geometry::ntree::node::cell::Cell;
3
4impl<const D: usize, const L: usize, const M: usize, const N: usize, T, U>
5    Orthotree<D, L, M, N, T, U>
6where
7    T: Cell,
8{
9    pub fn prune(&mut self) {
10        self.retain(|node| node.is_leaf());
11    }
12}