MARC FORNES & THEVERYMANY™

PRACTICING AT THE INTERSECTION OF ART + ARCHITECTURE ^ COMPUTATION

Archive for September, 2007

070925_(n)certainties

(n)certainties biotopes is the brief of the studio Francois Roche / R&Sie and Marc Fornes / theverymany are co-teaching this Fall 2007 at Columbia University:
(n)certainties is based on Robotics & bottom up protocol of growth…
http://ncertainties.wordpress.com/
(thx Francois for the kind inviation!)



Option Explicit
‘Script written by Marc Fornes
‘Script copyrighted by Marc Fornes / theverymany.net
‘Script version 13 September 2007 16:05:03

Call Main()
Sub Main()

Dim i,j,k
Dim arrPt

Dim dblLow : dblLow = -5
Dim dblUp : dblUp = 10

Dim arrPts()
Dim n : n = 0

Call rhino.enableRedraw(False)
‘ ===========================
For i = 0 To 5
For j = 0 To 5
For k = 0 To 5

ReDim Preserve arrpts(n)
arrPts(n) = array(random(dblLow, dblUp),random(dblLow, dblUp),random(dblLow, k*dblUp))
Call rhino.AddPoint (arrPts(n))

If n >= 2 Then
Dim arrPtNearer : arrPtNearer = functNearestNeighbor(arrPts, n)
Dim strLine : strLine = rhino.addLine(arrPts(n), arrPtNearer)
Call Rhino.AddCone (arrPts(n), arrPtNearer, 0.2)
call rhino.addSphere (arrPts(n), 0.2)
End If

n = n + 1

Next
Next
Next
‘ ===========================
Call rhino.enableRedraw(True)

End Sub


Function random(low, up)
Randomize
random = (up – low) * Rnd + low
End Function

Function functNearestNeighbor (arrPts, index)

Dim k, dblDist
Dim dblDistMin : dblDistMin = 100000

For k = 0 To UBound(arrPts)

dblDist = Rhino.Distance(arrPts(index), arrPts(k))

If dblDist 0 And dblDist < dblDistMin Then
dblDistMin = dblDist
Dim arrPtNearest : arrPtNearest = arrPts(k)
End If

Next

functNearestNeighbor = arrPtNearest

End Function

scriptedbypurpose


SCRIPTEDBYPURPOSE
Curation + installation: Marc Fornes & Skyllars Tibbits
OPENING ON FRIDAY SEPTEMBER 9TH 2007, 7PM (Private reception at 5pm)
F.U.E.L. Collection – 249 Arch Street, Philadelphia – http://www.fuelcollection.com/

http://www.scriptedbypurpose.net

070907_MF | OneLineMoreOrLess…



Both images are generated using the exact same code, nearly the same inputs – only one line of code less for the seconde one! dramatic consequences for such little change… it sounds like the principle of chaos theory…

%d bloggers like this: