Grasshopper

algorithmic modeling for Rhino

Reordering branches by sorting the length of points connection

Hi,

Based on the subject,

i am confusing how to reorder the branches 

{0;0}{0;1}{0;2}{0;3}{0;4}--->one group

and {1;0}{1;1}{1;2}{1;3}{1;4}--->another group

by sorting the values which were calculated with connected points length in each branch.

Thanks for any idea!!

Views: 983

Attachments:

Replies to This Discussion

I don't understand what you mean but according to your screen grab, I guess you may already have grouped point list before your partition list component.

Hi,

That's right!

What i want to do is reordering the branches

from{0;0}{0;1}{0;2}{0;3}{0;4} {1;0}{1;1}{1;2}{1;3}{1;4}

to {0;2}{0;4}{0;1}{0;0}{0;3} {1;1}{1;4}{1;3}{1;0}{1;2} that follows the order of sorted lines length .

On the "K" output of the SORT component: Right click it and select "Graft". (I think that's what you're after?)

Like this?

Attachments:

Hi,

That's totally i want. Thanks for the awesome logic!!!!

Moreover, How to change the "tree branch" renumber output{0}{1}{2}{3}{4} {5}{6}{7}{8}{9}

to {0;0}{0;1}{0;2}{0;3}{0;4}{1;0}{1;1}{1;2}{1;3}{1;4}that like original tree structure??

Why don't you use "Match tree"?

Attachments:

OMG@@

Thanks a lot!!!!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service