Wednesday, May 13, 2009

Spiraling Exercise

"Whether stars, storm clouds, or petals of a flower, the spiral is only detectable by observing things caught in its wake...The spiral is not so much a shape as the evidence of a shape in formation."
--Aranda, Benjamin, and Chris Lasch. Tooling (Pamphlet Architecture). New York: Princeton Architectural Press, 2006.



As always, dimensioning our variables is the first step in generating the Spiraling algorithm. We create variables x, y, and z which will be our the plotted points through which the spiral curve is passed. We create the variables 'dblAngle' to represent the angle from origin that each new point is plotted, and 'dblRadius' to determine the length from origin at which each new point is to be plotted.

By looping the functions 100 times, we create 100 curve points.

We multiply our loop variable by 30, and pass that through the 'dblAngle' variable to increase the angular dimension by 30 degrees each time the loop is run.



Using right angle trigonometry, whereby the 'dblRadius' value represents the triangle's hypotenuse, we are able to write functions that plot our points out in a spiraling pattern.

Lastly, we run the Rhino.AddCurve method to pass the curve through our spiraling points.

No comments:

Post a Comment