sheet.flat_pattern reports every cut-out exactly in a new cutout_shapes list, parallel to cutouts: a round hole as a circle, other cut-outs as their lines, arcs and (for other curves) polylines. Pockets get the same. The DXF writer and the JSON share one circle test. Un-ignores the #542 regression test. Fixes #542. Co-authored-by: jonaswre <[email protected]>
This commit is contained in:
1 parent
2aff1c5303
commit
9c94e1b96d
3 files changed
+74
-18
No files matched your search
@@ -80,6 +80,9 @@ Base-flange profiles keep their interior holes. Through cuts that cross a sheet
|
||||
notches in the flat outline; overlapping and repeated cuts remove their combined area once.
|
||||
The flat preview, DXF and unfolded solid use the same material boundaries. Lines and circular
|
||||
arcs remain exact; other profile curves use a 0.001 mm chord tolerance.
|
||||
Flat-pattern JSON lists each cut-out twice, in the same order: as points (`cutouts`), and
|
||||
exactly (`cutout_shapes`): a round hole as `{"circle": {"center", "radius"}}`, any other as its
|
||||
`line`, `arc` (centre, radius, start and sweep in degrees) and `polyline` segments.
|
||||
|
||||
Cuts can leave separate material pieces, including the centre of a ring cut. These pieces
|
||||
remain one logical sheet group through Unfold / Refold and export as separate flat outlines.
|
||||
|
||||
Reference in new issue
Block a user