- A new cut was clipped against the panel with every one of its cut-outs, so each hole of a perforation cost the square of all the holes before it and the second cut of 500 ran out of the flat budget. A tool is now clipped against only the cut-outs whose boxes meet its own (the same result). - The planar booleans' point-in-loop test now skips loops whose box is clear of the point, before the costly on-the-loop test; with a thousand holes that test was most of the time. The 1000-hole panel now takes about 15 s instead of failing. Co-authored-by: jonaswre <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This commit is contained in:
5 files changed
+3654
-1
No files matched your search
@@ -968,9 +968,13 @@ fn sheet_prism_cut(
|
||||
}
|
||||
modeled = true;
|
||||
} else if z1 > z0 {
|
||||
// Each tool meets only the panel's cut-outs near it: arranging every one of a
|
||||
// perforation's holes against every new hole would grow with their square (#732).
|
||||
let near = sheet::NearHoles::new(&panel)?;
|
||||
for flat in mapped {
|
||||
let local = near.around(&flat)?;
|
||||
let clipped =
|
||||
sheet::material_boolean(std::slice::from_ref(&panel), std::slice::from_ref(&flat), kernel::BoolOp::Intersect, &mut work)?;
|
||||
sheet::material_boolean(std::slice::from_ref(&local), std::slice::from_ref(&flat), kernel::BoolOp::Intersect, &mut work)?;
|
||||
if !clipped.is_empty() && !depth_resolved {
|
||||
return Err(DocError::Invalid(
|
||||
"sheet machining depth is below the supported 0.000001 mm extrusion resolution; increase the layer depth".into(),
|
||||
|
||||
Reference in new issue
Block a user