Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stephanschulz opened this issue Sep 12, 2020 · 2 comments
Assignees

Comments

@stephanschulz
Copy link

stephanschulz commented Sep 12, 2020

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-
Copy link
Collaborator

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-
Copy link
Collaborator

Now fixed: d4ac5bf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants