Grasshopper

algorithmic modeling for Rhino

Hi All

I would really appreciate some help on this.

I have created series of perspective frames on a curve. There is a circle on each frame of which i have divided into two. 

The division points are labeled "0" and "1" on each circle. I want to create two separate interpolate curves to run thru the set of "0" points and "1" points respectively.

I have used both cull pattern, split list and dispatch to separate the "0" from the "1" to try run a interpolate curve through each set of numbers. 

I understand why it wont do it with the said scenario, but is there a way of getting it to recognize the logical sequence of numbers?

Please see attached image for reference

Thank you in advance

Gordon




Views: 10500

Attachments:

Replies to This Discussion

Hi G,

If you use a list item component to get all of the 0 in a single list and all of the 1s in a list you can then flatten the input to an IntCrv component.

I think a flip matrix component, right after your divide component, then run an interpoplate curve through those points would get you there.

Attachments:
Thanks Danny and Chris

Both worked perfectly. @Danny. You helped me before on a similar problem where you told me to flatten the points. I did it again and for some reason did not want to work, hence the post. But.....i forgot to extract the points from the list item and that caused it to be flattened into one point. I must claim I.B.M. (Idiot Behind Machine) for this one.

Thank you again for the prompt help.

Gordon
No problem, however, in this case I would go with the flip matrix option. (which slipped my mind) This way when you increase the number of divisions you don't have to manually add another list item component. Where ever possible I always try to limit the number of flattens because that way managing multiple input objects is easier.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service