CreativeInquiry / PEmbroider

Embroidery Library for Processing
Other
442 stars 28 forks source link

Problem rendering near sharp concavities with hatchSpine() #21

Closed golanlevin closed 4 years ago

golanlevin commented 4 years ago

When using the (admittedly experimental) PEmbroiderHatchSpine.hatchSpine(), sometimes hatching voids are produced in the vicinity of sharp concave contours. This can be seen in the PEmbroider_bitmap_image_1 example, below:

Untitled

I can think of some ugly hacks for dealing with this, just wanted to document the problem for the moment.

LingDong- commented 4 years ago
Screen Shot 2020-06-14 at 4 25 15 AM

Hi @golanlevin

I think you can use hatchSpineVF (VF=Vector Field), it is superior than hatchSpine and hatchSpineSmooth and was the one you decided on a while back ;)

golanlevin commented 4 years ago

Perfect, I'll update the demo.