Grasshopper

algorithmic modeling for Rhino

How could I divide a tree with branches of different sizes to multiple trees with the branches of the same size?

Hi there

How could I divide a tree with branches of different sizes to multiple trees with the branches of the same size?

For example:

Divide this

 

0;0

0;1

0;2

0;3

0;4

0;5

0

a

b

d

g

i

j

1

 

c

e

h

 

k

2

 

 

f

 

 

 

 

-------------------------------------------------------------------------------------------------

To these...

 

  0;0

   0;1

   0

   a

    i

------------------------------------------------------------ 

  

0;0

0;1

0;2

   0

   b

    g

     j

   1

   c

    h

     k

------------------------------------------------------------

 

  0;0

   0

   d

   1

   e

   2

   f

------------------------------------------------------------

 

Thanx…

Views: 850

Replies to This Discussion

I did TO these:

 

  0;0

   0;1

   0

   a

    i

-----------------------------------

  

1;0

1;1

1;2

   0

   b

    g

     j

   1

   c

    h

     k

-----------------------------------

 

  2;0

   0

   d

   1

   e

   2

   f

Path Mapper have a very interesting behavior, sometimes speed up things really easy.
(I've used the -1 to make paths start from 0 instead than from 1, with an input tree with 0 length branches or minimum branches length = 2 you will need to edit that)
:D

Or like this:

But as you can see, paths don't start from 0 , and this can cause problems...

Items are in the correct order/position thought...

That's great but actually i need three separate data trees with branches of the same size...

Try with BANG! component.

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