Grasshopper

algorithmic modeling for Rhino

Hi,

Is it possible to recursively offset a curve on a sphere without scripting?

The offset distance is a function of the previous offset distance.
I am trying to make a latitude-longitude grid on a sphere

Any help would be appreciated.
Anne

Views: 703

Replies to This Discussion

Hi Anne,

I'm afraid recursion is out at the moment. There's no way to feed an output value of a component back in. I saw your sphere division problem but couldn't come up with a better approach. I agree it is pretty horrendous the way it's done now. Writing some sort of loop mechanism has been on the list for a long time.

--
David Rutten
david@mcneel.com
Seattle, WA
Hi David,

Thank you for the reply. I have been crunching the numbers in Excel and made the lat-lon-grid that I was trying to get here also (the sphere division problem you refer to): http://www.grasshopper3d.com/forum/topics/latitude-longitude-gridme.... I upload the file in case others will run into the same problem.

Evert, thank you for the reply as well; this is the formula: L_x+1 = (pi * cos(sum(L))) / 6

Anne
Attachments:
Hi Anne,

I coded up a small VB script that creates a sequence based on your formula. I probably did it wrong but it might get you started. Double-Click the script component to see (and change) the code.

--
David Rutten
david@mcneel.com
Seattle, WA
Attachments:
Hi Anne,

What is the function of the offset distance?

I think it is possible to produce a closed form sequence where the input is a list of numbers and the function solves the equation for every number without the need of the previous value.

Cheers

Evert

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service