mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-19 17:27:40 -05:00
feat(nest): keep parts out of tabbed cutouts
A tabbed cutout's slug stays attached while the sheet is cut, but nesting saw a closed hole and could place parts inside it. Nesting and layout paths now read material through NestingMaterial.ForNesting, which drops closed contours with tab spans so the slug counts as part. That covers part outlines and collision lines, the cutout router, fill expansion, best-fit, NestLayoutCheck and the GPU bitmaps. Area, overlap diagnostics and cutting keep the hole, and programs without tabs read exactly as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ba39c3dc55
commit
0186ccfbff
12 files changed
+139
-21
No files matched your search
+11
-3
@@ -29,9 +29,17 @@ the cut pieces and tabs, and marks where each piece is pierced.
|
||||
## Tabs are material, never cut
|
||||
|
||||
Tab spans bound material like `Cut` motions: `SpecialLayers.IsMaterial` keeps them, so
|
||||
area, nesting, material capture (`LeadMaterialSnapshot`) and the material-overlap check
|
||||
all see a closed hole. They are never cut. The plate view fills them but does not draw
|
||||
them as cuts.
|
||||
area, material capture (`LeadMaterialSnapshot`) and the material-overlap check all see a
|
||||
closed hole. They are never cut. The plate view fills them but does not draw them as cuts.
|
||||
|
||||
Nesting is the exception: the slug stays attached while the sheet is cut, so nothing may
|
||||
be placed in the hole. Nesting and layout paths read material through
|
||||
`NestingMaterial.ForNesting`, which drops any closed contour with tab spans so the slug
|
||||
counts as part: part outlines and collision lines (`PartGeometry`, `Part`), the cutout
|
||||
router (`JobPartGeometry`, whose material area then includes the slug), fill expansion,
|
||||
best-fit, `NestLayoutCheck` and the GPU bitmaps. Programs without tab spans read exactly as
|
||||
before. A planned program has open pieces instead of a closed hole, so it bounds no hole
|
||||
either way.
|
||||
|
||||
Both Plan Cutting (`PreparedContours`) and Assign Lead-ins
|
||||
(`ContourCuttingStrategy.Apply`/`ApplySingle`) take a closed contour with tab spans out of
|
||||
|
||||
Reference in new issue
Block a user