Bug: every fill region is paired with a duplicate running-stitch region of identical polygon #122
Labels
No labels
blocked:children
blocked:depends-101
blocked:depends-103
blocked:depends-104
blocked:needs-attention
blocked:needs-decision
blocked:no-changes
blocked:preflight
bug
chore
feature-request
in-progress
lint-cleanup
needs-decompose
performance
quality
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/easystitch#122
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
A 2-color SF Giants logo with 3 logical shapes produces 6 regions / 6 stitch objects from the digitizer:
The shape count doubles. Region r5 (running on the orange panel) is also a color mismatch — registered as black instead of orange. That risks laying black running stitches on top of the orange fill.
Likely cause
region-classifier.tsorpipeline_runner.pyis double-classifying each segmented shape as bothtatami_fillANDrunning(probably a registration / underlay outline). When the running companion is the same color as the fill, the on-machine effect is overlapping stitches inside the fill.Suggested fix
Reproduction
Severity
LOW-MEDIUM — visual quality issue. Most designs will sew, but thread waste and registration drift may compound on dense fills.
Fixed in
8cb738f(fix(raster): stop duplicating every fill with a running companion).Root cause: every fill region was getting a paired running-stitch companion with identical polygon and color, doubling the stitch object count and (in r5) producing a color mismatch (black running on orange fill).
Fix: gate the running-stitch underlay behind a new
enable_border_detectionflag (default False). When enabled, the underlay inherits the parent fill color instead of a stale default black.Tests: tests/test_issue_122_duplicate_running_region.py (10 new regression tests, all pass), tests/test_raster_region_borders.py (parametrized gate), full suite (338+ tests) green. Pushed to origin/main (
4487757). Closing.