CreativeInquiry / PEmbroider

Embroidery Library for Processing
Other
443 stars 28 forks source link

HatchSpine looks like dot pattern and less like lines #89

Closed stephanschulz closed 3 years ago

stephanschulz commented 3 years ago

I am trying to fill a shape with the below code. The P5 png output shows nice fish bone looking lines. But when stitching it they look more like a collection of dots. Strangely the bottom of the fabric looks more like the png. Any ideas what I might be doing wrong?

Screen Shot 2020-08-05 at 10 22 40 PM
     E[1].fill(0, 0, 0);
     E[1].noStroke();
     E[1].pushMatrix();
     E[1].translate(0, 0);
     E[1].setStitch(8, 15, 0.0); //E.setStitch(minLength, desiredLength, noise);
     PEmbroiderHatchSpine.setGraphics(E[1]);
     PEmbroiderHatchSpine.hatchSpineVF(fillImages[1], 10.0); 
     E[1].popMatrix(); 
golanlevin commented 3 years ago

Have you tried changing the arguments you're passing to setStitch()? On my Viking machine, the stitch units are tenths of a millimeter. This means that stitches in the range of 8-15 clicks, like you've requested, will be 0.8-1.5 millimeters long... which is, basically, a dot.

It might be worth while to write a little program to make a test swatch of different setStitch() parameters. You can see the basis for this in the circles at the top of this sample program: https://github.com/CreativeInquiry/PEmbroider/tree/master/examples/PEmbroider_lines_2