Grasshopper

algorithmic modeling for Rhino

hello,

 

i have a problem. i have a list with 20 curves the index is (0;0;x),

now i want to reorder the list to  4 branches with (0;y;x).

 

i now i have to use the path mapper but i don ´t find the right way to organise this.

 

can some ody please help me,

 

thanks philipp

Views: 302

Replies to This Discussion

{A;B;C} --> {0;C\4;C%4}

 

{0;0;0} --> {0;0\4;0%4} = {0;0;0}

{0;0;1} --> {0;1\4;1%4} = {0;0;1}

{0;0;2} --> {0;2\4;2%4} = {0;0;2}

{0;0;3} --> {0;3\4;3%4} = {0;0;3}

{0;0;4} --> {0;4\4;4%4} = {0;1;0}

{0;0;5} --> {0;5\4;5%4} = {0;1;1}

{0;0;6} --> {0;6\4;6%4} = {0;1;2}

{0;0;7} --> {0;7\4;7%4} = {0;1;3}

{0;0;8} --> {0;8\4;8%4} = {0;2;0}

{0;0;9} --> {0;9\4;9%4} = {0;2;1}

....

{0;0;19} --> {0;19\4;19%4} = {0;4;3}

that's actually 5 branches of 4 items.

so you need:

{A;B;C} --> {0;C\5;C%5}

---

{0;0;19} --> {0;19\5;19%5} = {0;3;4} 

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