Fibonacci-based DiaGrid

Fibonacci-based DiaGrid LacingThis is the first iteration of the combined assignments of “Blending” and the creation of a DiaGrid structure tool for a tower project within my office. The purpose of this tool is to allow the user to define the parameters of the lacing conditions to test the fluidity of the DiaGrid curves. To begin, i created the smooth curvature through the use of the fibonacci sequence.
Fibonacci: http://en.wikipedia.org/wiki/Fibonacci_number
The recipe is fairly simple:
1. Create a 2-D (rectangular) array of points.
2. Vary the Z-value (in this example the Y) based on the fibonacci sequence.
3. Lace between the points.
Next post will show how the program allows the user to define the number of floors, floor to floor heights, and the floors through which the diagrid is laced.
I will post the examples on my website for download. For the time being i will just post the release folder with the exe file in there so you can run the script. If people start using VB.Net for Rhino and would like the code (or snippets of the code) I can post them upon request (assuming it is not confidential…an office tool).
http://www.erikverboon.com/StevensPAE.html
Just donwload the zipped file onto your desktop…unzip…go into the folder and run the exe file. You will need Rhino4 installed. Let me know if it doesnt work.
But in the mean time here is the fibonnaci function of the code…the rest is cake.
Function Fibo(ByVal N) ‘ function called Fibo with a dimension of (N)
If (N = 0) Then
Fibo = 0
ElseIf (N = 1) Then ‘ if N = 1 or N = 2 then…
Fibo = 1 ‘Fibo has a value of 1 (because the first 2 values ar 0 and 1 wich equal one)
Else ‘ otherwise….
Fibo = Fibo(N – 1) + Fibo(N – 2) ‘ Fibo = Fibo(value of N minus 1) plus Fibo(value of N minus 2)
End If
End Function
Popularity: 17% [?]



















No Comments, Comment or Ping
Reply to “Fibonacci-based DiaGrid”
You must be logged in to post a comment.