Grasshopper

algorithmic modeling for Rhino

hello,

is there an easier way to sort lines like in the added sketches. my solution works with round 1000 lines. but > 1000 lines gh crashed.

input are lines only

output are these lines, each with start and endpoint number assigned. number of start and endpoints must be unique (no duplicate points)

output as list:  lineno/startpointno/endpointno

                      10/3/12

                      1/4/13

                      ..........

thanks

Views: 670

Attachments:

Replies to This Discussion

How about this one?

Best Regards

DeDackel

Attachments:

thanks, but still the same problem. works with around 1000 lines, but i need a solution for up to 5000 lines. i think the problem in my version is the "duplicate data", in yours its the "min" component. there the lists of points are "multiplied" to compare them. eg 1000 lines will make 2000 start+endpoints, compared to around 1500 points makes 2000*1500=3*10^6 list entries. and there gh runs out of memory.

Do you need only the list or do you need to work on in this defenition? I am meanig if this is part of a bigger definition or does it end there?

its a bigger definition, this routine is only a small part of a big script. but i dont do anything more with the resulting lists, just stream them to excel.

Than create step by step

- Crvs 0-999

- Crvs 1000-1999

- Crvs 2000-2999

....

file attached

Attachments:

Or perhaps this:

Sorry for the late response...

thank you very much, for your really fast solution. How can I make this time information tag? I never saw this before.

thanks, p.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service