mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-03 18:45:55 +00:00
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:
@@ -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),
|
||||
})?;
|
||||
|
||||
Reference in New Issue
Block a user