Reuse prepared analytic sources when certifying extrusions (#273)

This commit is contained in:
selune authored and GitHub committed 2026-10-12 10:45:26 -04:00
1 parent e12758ff91
commit b45cae1e48
3 files changed
+143 -30

No files matched your search

+2 -1
View File
@@ -1800,6 +1800,7 @@ fn feature_tools_with_constructor(
}
if *operation == Operation::NewBody && extent.taper.is_none() {
let cap_bindings = crate::config::extrude_cap_bindings(&ss, &tools, 10_000_000);
let source_curves = cap_bindings.as_ref().map(|_| crate::config::ExactSketchCurves::new(&ss));
tools = tools
.into_iter()
.enumerate()
@@ -1810,7 +1811,7 @@ fn feature_tools_with_constructor(
.flatten()
.map(|source| match source {
Some(kernel::FaceSource::ExtrudeSide { segment, .. }) if cap_bindings.is_some() => {
crate::config::exact_sketch_curve(&ss, segment)
source_curves.as_ref().and_then(|curves| curves.find(segment))
}
_ => None,
})