pub type Octree<T, U, V = ()> = Orthotree<3, 4, 6, 8, T, U, V>;Aliased Type§
pub struct Octree<T, U, V = ()> { /* private fields */ }Implementations§
Source§impl<T, U> Octree<T, U>where
T: Cell,
U: Slot,
impl<T, U> Octree<T, U>where
T: Cell,
U: Slot,
Sourcepub fn from_features(
tessellation: &Tessellation,
scale: Scalar,
curvature: CurvatureSizing,
padding: u16,
) -> Result<Self, &'static str>
pub fn from_features( tessellation: &Tessellation, scale: Scalar, curvature: CurvatureSizing, padding: u16, ) -> Result<Self, &'static str>
Builds an octree from a tessellation, refining cells where either the local thickness or the local curvature demands a smaller size.
scale controls cells-per-thickness; curvature controls
curvature-driven refinement independent of thickness (e.g. a sphere
has ~constant thickness everywhere but can still demand refinement
from curvature alone). padding adds extra empty root levels in case
the tessellation’s boundary overlaps the primordial primal node.