Grasshopper

algorithmic modeling for Rhino

Help!, need to use the last point ina list as reference to the next one.

Hello guys:

I'm working in a definition for a Golden spiral made with quarter circles but I hit a brick wall.

I need to make the sipral as long as needed but in order to do that I want to draw a set of points from point A to B, B to C, C to D... but the only way I can do this is by manually taking the last point i generated and run it again in a new set.

Is there a way to tell GH to use the last point of a list as a new reference? because all I'm getting is point A to B, A to C, A to D...

I'm sure this is a super easy matter but I'm not getting there.

Thank you very much for your time guys.

Ps. Here's a copy of my work so far.

Views: 270

Attachments:

Replies to This Discussion

You can shift the list one item to the right. This will allow you to match values against the previous value.

Since the spiral is not closed, you'll also have to set the shift wrap to false, and then make sure the lists have the same length.

It's usually a bad idea to run values through Text Panels. It's fine to use panels to examine values, but numbers are typically rounded to 6 decimal places when displayed on the panel, so you lose accuracy by converting your numbers to text, then back to numbers again.

Attachments:

Thanks David you are a life saver, I need to practice a lit with lists.

Thank you for the advice on panels I won't use them anymore as inputs.

Again thank you very much.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service