Grasshopper

algorithmic modeling for Rhino

I'm building a definition to model the leaning tower of pisa, just for fun.

I'm starting in 2D - the base is a rotated line which is simply offset to make the next floor level, which is rotated to correct for the 'lean' -- though the fun part is it will never correct to 100%, so you can get the subtle distortion that's in the real tower, or exaggerate it...

anyway... i've copied the same code for every floor level, and i think it would be better if i could 'loop' it somehow, and add a control for number of floors (imagine the pisa campanile as a 200m skyscraper, leaning and twisting, but remaining stable...)

Views: 314

Attachments:

Replies to This Discussion

Looping requires the VB or C# components at present as we have no UI for them (beyond the in-build iteration over lists). It's one of the biggest lacking features. A lot of problem can be solved without looping by designing them in a specific way, but sometimes you're just out of luck... Sorry.

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

RSS

About

Translate

Search

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service