From d62d248b76b1cb81750f151a684918ec526c9c4a Mon Sep 17 00:00:00 2001 From: jyviko <2501648+jyviko@users.noreply.github.com> Date: Fri, 30 Oct 2026 12:12:15 -0400 Subject: [PATCH] doc: Untrim's face points pick faces of the body it untrims FeatureKind::face_body did not name Untrim's body, so its face was looked up by name on every body and could be taken from another one (a copy has the same face names). Co-Authored-By: Claude Opus 5.5 --- crates/doc/src/feature_geometry.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/doc/src/feature_geometry.rs b/crates/doc/src/feature_geometry.rs index 09a0a4881..dcf371050 100644 --- a/crates/doc/src/feature_geometry.rs +++ b/crates/doc/src/feature_geometry.rs @@ -55,7 +55,7 @@ impl FeatureKind { /// The body a feature that works on one body's faces names (shell, draft, split, offset, /// delete and replace face, surface offset, the placed plastic features, sheet metal - /// conversion, ruled surface): its face points pick faces of that body. + /// conversion, ruled surface, untrim): its face points pick faces of that body. pub fn face_body(&self) -> Option<&str> { match self { FeatureKind::Shell { body, .. } @@ -69,6 +69,7 @@ impl FeatureKind { | FeatureKind::SnapFit { body, .. } | FeatureKind::Rest { body, .. } => body.as_deref(), FeatureKind::SheetConvert { body, .. } | FeatureKind::SurfaceRuled { body, .. } => Some(body.as_ref()), + FeatureKind::SurfaceUntrim { face, .. } => Some(face.body.as_ref()), _ => None, } }