Grasshopper

algorithmic modeling for Rhino

Hi, I've got a collection of circles that are all divided up into a number of points. This results in a structure with 7 paths {0;0;0} (n=14),{0;0;1} (n=14), etc. When I use the "List Item" component with a single integer, it grabs that item from every path, for example i=2 will grab the 3rd point on each circle in the collection. Great. But is there a way to do that in a series (grab the 1st point in every circle, the 2nd, the 3rd...) and derive one dimensional arrays from each? If I try to input multiple numbers into "i" in the item component, it grabs a series from each path. 

 

I can do it with a script component, but is there a way to do it without scripting?

 

I've included a scripted component to clarify what I'm looking for.

 

Thanks!

Views: 545

Attachments:

Replies to This Discussion

Chris
Hi Chris -

Chris Tietjen is right, flip matrix is the best way to do this. Another way that offers slightly more flexibility in other situations is the Path Mapper component, which allows you to perform lexical mappings of paths and their indices. Mapping from {0;0;A}(i) to {0;0;i} will do the same thing as flipping the matrix.
Attachments:

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