kernel: an extension SMLib cannot make exact says so, naming the length asked

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jyviko
2026-10-31 00:01:07 -04:00
committed by jyviko
parent 3421a8ef0c
commit 20d5d8b135
+3 -1
View File
@@ -340,7 +340,9 @@ fn one_face(body: &Body, at: &[Vec3], distance: f64, mode: ExtendMode) -> Result
solidcraft_smlib::Error::Unsupported => KernelError::Invalid(
"not supported yet: extending an edge that is not a whole side of its surface's parameter box (a trimmed edge)".into(),
),
solidcraft_smlib::Error::NotExact => KernelError::Invalid("the extension would run past a pole of its surface or wrap round it".into()),
solidcraft_smlib::Error::NotExact => KernelError::Invalid(format!(
"the surface cannot be extended exactly {distance} mm there: the extension would run past a pole of its surface, wrap round it, or not reach that length"
)),
solidcraft_smlib::Error::NoMatch { .. } => KernelError::Invalid(format!("no edge at {p:?}")),
e => failed("extend", e),
})?;