A playground for University of Bologna Students and a 6-days seminar about digital tools.

Digital generative tools are a very important part of architectural education. Andrew Kudless during his conference at SimAE was telling about chinese traditional woodcraftsmen: they spend their first two years of apprentice in making their own tools. Today, we have a large pool of digital ready made tools, built to respond to more or less specific problems or tasks, while keeping a level of flexibility and personalization. The majority of these tools have hidden capabilities, which can only be accessed bypassing the conventional interface and getting close to the machine logic of programming or building parametric components which generate shapes. Thus, seriality, differentiation, complexity can be implemented in architectural projects through code, in order to exploit the power of algorithmic based complex systems which are the basis of biological systems.


But, before going through such complexity, we must start with simple tasks and simple rules. Before playing seriously we need practice. This is the playground where a bunch of students will start to practice, a pool where they will share their results and questions. Maybe the stuff here that will be posted will seem obvious or naive to the navigated code-monkey, but, as I mentioned before, we all start from the basics and this is intended as a place to start. However, any comment and contribution is appreciated.

Playground is open, let's play! _ Alessio

6.2.09

The bowel in the sock

Option Explicit
'Script written by …•VitrartiV•…
'Date martedì 6 febbraio 2009 21.02.40


Sub Main()

Dim strc:strc=rhino.GetObject("select a close curve",4)
If isnull (strc) Then Exit Sub
Dim intN:intN=rhino.getinteger("how many samples",100,50,5000)
If isnull (intN) Then Exit Sub
Dim arrdom:arrdom=rhino.CurveDomain(strc)

Dim i, dblstep, dblpar, arrcrvdata, intcount
Dim arrline, strline, arrcircle,arrplane,dblrad

Call rhino.EnableRedraw(False)
intcount=0
ReDim arrcircle(intn)
dblstep=(arrdom(1)-arrdom(0))/intN
For i =0 To intN
dblpar=arrdom(0)+i*dblstep
arrcrvdata=rhino.CurveCurvature(strc,dblpar)
arrplane=rhino.CurvePerpFrame(strc,dblpar)
If Not isnull (arrcrvdata) Then
dblrad=1000/arrcrvdata(3)
Else
dblrad=0.1
End If

arrcircle(i)=rhino.AddCircle(arrplane,dblrad)
Call rhino.ObjectColor(arrcircle(i),rgb(255*sin(i*Pi/intN),255*sin(i*Pi/intN),255))
Next
Call rhino.EnableRedraw(True)
Dim arrcrvs
arrcrvs= rhino.AddLoftSrf(arrcircle)

End Sub

Call Main()

No comments:

Post a Comment