Grasshopper

algorithmic modeling for Rhino

Hi, I have a list that contains (n+1)*(m+1) branches: {0;0}, {0;1}, {0;2}, ... , {0;m}, {1;0}, ... {n;m} . How to convert it into a simpler list of (n+1)*(m+1) branches that is : {0;0}, {0;1}, ... , {0;nm} ?

Thanks ahead!

Views: 258

Replies to This Discussion

Hi,how is that possible?for example if n=2 and m=1 you will have these:

{0;0},{0;1},{1;0},{1,1},{2;0},{2;1} and that's (2+1)*(1+1)=6:true

but what about secound lineup can you write the six branches with n=2 and m=1?

What does 'nm' mean in the final path? N times M? the textual conjuction of the n and m integers?

You can probably use the Path Mapper to achieve what you're after. You can either use the path_index to create a straight renumbering of paths, or you can use an expression such as A & B to treat the A and B as text, glue them together then convert the whole back into an integer:

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