Closed golanlevin closed 4 years ago
Lower right heart should look like this:
Fixed in : 666e5762f9500a21c4681febe3f64ce1d45d6ae7
Turns out the chunky looking parallel and concentric hatching is not due to the new resampling method. It is because we’re using the raster mode, which has a step. It goes a step, check if it is outside of the polygon, and go another step, etc. The step is automatically set to 1/4 of stitch length based on my random guess. In your image the stitch length is huge. I now set the step to 1 for all situations. Slow but works
BTW, image() also works for PImages directly, no need to render them to PGraphics first. However, since currently the image needs to be inverted, I kept the PGraphics in the example, so that I can use PG.filter(INVERT);
Maybe we can add an option to toggle "inverted" mode for images?
OK. We still have the issue, that
When using CONCENTRIC hatch mode, the outer edge of the shape is not currently being stitched. This is visible in the middle embroidery on the lower row. The outside edge should not be omitted from the CONCENTRIC hatch.
Perhaps this can be a setting — something like, E.INCLUDE_STROKE_IN_CONCENTRIC_HATCH = true;
@golanlevin
Now fixed: 43a5b3209e940a558b8981d4988ca136d7470bc2
It will automatically add a stroke if fill is concentric and no stroke has been specified.
Thanks, @LingDong- . I'm not certain if SPIRAL mode also needs the same fix or not, but I'll close this for now.
Hi @LingDong- ,
This issue is demonstrated in the new example, https://github.com/CreativeInquiry/PEmbroider/tree/master/examples/PEmbroider_bitmap_image_1
There are several problems:
Code for the lower right embroidery is: