CreativeInquiry / PEmbroider

Embroidery Library for Processing
Other
442 stars 28 forks source link

Stitch staggering affected by culling (reposted from #27) #62

Closed golanlevin closed 4 years ago

golanlevin commented 4 years ago

Hi @LingDong- I've closed #27 and opened a new issue that @tatyanade pointed out there:

Staggering gets eliminated at some point when two shapes are culled - visible in lower part of circles on the left - both are parallel hatch with hatch spacing of 2 and second one is spacing of 4

85362403-546e0780-b4ec-11ea-86bf-3cc33f8b6842

golanlevin commented 4 years ago

Or is there a way to use beginOptimize() etcetera to address this?

LingDong- commented 4 years ago

Maybe we should recommend using PEmbroiderBooleanGraphics for achieving this effect. The culling happens after the shapes are drawn and doesn't have access to the original parameters, so it's always going to be less perfect

Additionally to achieve the culling the polylines has to be resampled, and the original stitch placement are of course ruined

golanlevin commented 4 years ago

OK, I will try making a demo to compare.

golanlevin commented 4 years ago

@LingDong- , it's what you recommended.

Screen Shot 2020-06-26 at 10 53 37 PM

@tatyanade , please study the following test project to see what's going on here: examples/tests/PEmbroider_culling_stitch_stagger/PEmbroider_culling_stitch_stagger.pde