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

getting access to PEmbroiderGraphics polylines #98

Open
stephanschulz opened this issue Sep 4, 2020 · 2 comments
Open

getting access to PEmbroiderGraphics polylines #98

stephanschulz opened this issue Sep 4, 2020 · 2 comments

Comments

@stephanschulz
Copy link

stephanschulz commented Sep 4, 2020

How would I go about getting access to all the polylines after the library generated them?
I would like to manually reorder them so that

A: they are always executed from top to bottom

B: starting with the centre polylines and working its way to the left and right.

But I guess I would want to maintain the grouping to still make use of the optimization.

clef_2020_9_4_12_30_15

@stephanschulz
Copy link
Author

Here the result of seed pushing without the above mentioned adjustments.

FYI, I realize this is way outside the scope of the embroidery focus. BUT this could be used by others to make sand animations???
https://youtu.be/Au_bYrTO1_w?t=25

2020-09-04 12 45 38

@stephanschulz
Copy link
Author

stephanschulz commented Sep 13, 2020

for (int i=0; i<E.polylines.size(); i++) {
  //println(E.polylines.get(i)); 
  //println(E.colors.get(i));; 
  //println(E.cullGroups.get(i));; 
  
  for (int j=0; j<E.polylines.get(i).size(); j++) {

    PVector p =  E.polylines.get(i).get(j);
  }
}

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

1 participant