Report accepted Boolean retries on features and fuzz runs (#249)
Co-authored-by: bherbruck <brennen.herbruck@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
15 files changed
+491
-26
No files matched your search
@@ -557,8 +557,15 @@ pub(crate) fn bore_union(a: &Body, b: &Body, accept: &dyn Fn(&Body) -> bool) ->
|
||||
let cut = crate::build::cylinder(at(lo, 0.0, 0.0), c.axis, c.radius, hi - lo)?;
|
||||
crate::ops::boolean(&joined, &cut, BoolOp::Cut)
|
||||
};
|
||||
match run() {
|
||||
Ok(Some(r)) if accept(&r) => return Some(r),
|
||||
let (result, diagnostics) = crate::capture_boolean_diagnostics(run);
|
||||
match result {
|
||||
Ok(Some(r)) if accept(&r) => {
|
||||
crate::boolean_diagnostics::merge(diagnostics);
|
||||
let mut event = crate::BooleanFallback::new(crate::BooleanStrategy::CommonBore);
|
||||
event.face_shift_mm = d;
|
||||
crate::boolean_diagnostics::record(event);
|
||||
return Some(r);
|
||||
}
|
||||
_ => continue,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user