CreativeInquiry / PEmbroider

Embroidery Library for Processing
Other
443 stars 28 forks source link

Problem with hole in SATIN mode #66

Closed golanlevin closed 4 years ago

golanlevin commented 4 years ago

Hi @LingDong- , bad news. Using the latest build, SATIN mode does not appear to recognize the holes in our friend from examples/PEmbroider_shapes:

Screen Shot 2020-06-26 at 5 56 15 PM

On the bright side, the shapes without holes look great.

LingDong- commented 4 years ago

Hi @golanlevin, your inner polygon is oriented incorrectly. Clockwise polygons are islands, and counterclockwise ones are holes. Currently, both polygons are clockwise.

This is consistent with Processing's beginContour/endContour behavior: https://processing.org/reference/beginContour_.html

golanlevin commented 4 years ago

Derp. of course. Thanks