From f98c5e350d0940c608342dc910a6d74ffe309e7c Mon Sep 17 00:00:00 2001 From: bherbruck Date: Fri, 16 Oct 2026 00:11:30 -0400 Subject: [PATCH] Shell: put shell_by_opening's doc comment back on it (#1588) Thanks @bherbruck. --- crates/kernel/src/polyhedron.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/kernel/src/polyhedron.rs b/crates/kernel/src/polyhedron.rs index 461da12e..35e20477 100644 --- a/crates/kernel/src/polyhedron.rs +++ b/crates/kernel/src/polyhedron.rs @@ -610,9 +610,6 @@ fn shell_opened(b: &Body, healed: &Body, open: &[Vec3], opened: &[usize], thickn } } -/// A shell made from the cavity with every face moved in by the thickness (open faces too), -/// joined with each open face's moved copy swept out through the body. No history: the -/// opening's walls, swept from the cavity's edges, come from nothing of `b`. /// The cavity with each open face pushed out (`cavity`), trimmed so that beyond an open face's /// plane it only reaches through the open face itself; `None` when it already does. /// @@ -690,6 +687,9 @@ fn opening_overreach(healed: &Body, cavity: &Body, opened: &[usize], thickness: Ok(Some(trimmed)) } +/// A shell made from the cavity with every face moved in by the thickness (open faces too), +/// joined with each open face's moved copy swept out through the body. No history: the +/// opening's walls, swept from the cavity's edges, come from nothing of `b`. fn shell_by_opening(b: &Body, opened: &[usize], thickness: f64, reach: f64) -> Result { let closed = offset_planar(b, |_, _| -thickness)?; let faces: Vec = closed.solid.face_iter().cloned().collect();