CreativeInquiry / PEmbroider

Embroidery Library for Processing
Other
443 stars 28 forks source link

non-closed shapes with E.strokeMode(E.PERPENDICULAR) have connecting line #101

Open stephanschulz opened 3 years ago

stephanschulz commented 3 years ago

I would like to draw a complex line and am using

  E.stroke(0); 
  E.strokeMode(E.PERPENDICULAR);
  E.strokeWeight(20); 
  E.strokeSpacing(14);

  E.beginShape();
  E.strokeWeight(20); 
  E.strokeSpacing(4);
  E.vertex(250, 470);
  E.vertex(525, 550);
  E.vertex(900, 470); 
  E.vertex(900, 650); 
  E.vertex(250, 600); 
  E.endShape(); 

But the algorithms connect the last and first vertex with a stitched line.

Screen Shot 2020-09-12 at 2 08 23 PM
LingDong- commented 3 years ago

ok will look into it! the stitches are connected to prevent TSP from messing the pre-optimized order up, but then there's this issue...

LingDong- commented 3 years ago

Now fixed: d4ac5bf14835460f72ab112e29372c7d6effa7c2