Archive for the ‘RhinoScripting’ Category

Recursion 2

Thursday, May 1st, 2008

Here are the new configurations of the same base script that I posted few weeks ago, this time I create more points to get subdivisions, and also and hexagon , participate with the recursion process.

Simple rules configurate comples and beatifull Images. When you try to create complex results under complicate formules you have to be sure that your results will crash, and also the results will be not good enough. the result of the Complex Beauty appears after many iterations, and depend extreamly of your code and how many iterations you want.

Recursion 1

Wednesday, April 23rd, 2008

En continuant à travailler sur le “script” original, j’ai calculé le barycentre, cette fois, pour créer un vecteur perpenducilaire au plan formé par les trois points de chaque nouveau triangle. Le résultat est un autre point, lequel a été intégré dans la fonction y ainsi créer de nouveaux diagrammes.

Le modèle ci-dessous représente une série d’expériences avec différentes configurations de la fonction.

Recursion

Tuesday, April 22nd, 2008

I was Working couple weeks ago in a simple script to produce a recursion, I try drawing 3 points and then subdivided every segment for the mid point to find the another triangle inside of the original, the script appear in several minutes, Ididn`t think too much, I just typed very fast.

I learned recursion using C++, but I never used In Rvb, so this is my first experiments in recursion in Rvb. and this time I add The source of the original code, add comments, modify it, share, make differents Calls and send me Images.

Best.

Option Explicit
‘Script written by Carlos de la Barrera’

Call Main()
Sub Main()
Dim pt1, pt2, pt3, trip

pt1 = Rhino.GetPoint(”sel fisrt point”)
If IsNull (pt1) Then Exit Sub

pt2 = Rhino.GetPoint(”sel second point”)
If IsNull (pt2) Then Exit Sub

pt3 = Rhino.GetPoint(”sel third point”)
If IsNull (pt3) Then Exit Sub

trip = Rhino.AddPolyline(Array(pt1, pt2, pt3, pt1))

Call myFractal(trip, pt1, pt2, pt3)
End Sub

Function myFractal(trip, Opt1, Opt2, Opt3)
Dim pt1, pt2, pt3

pt1 = myMidFunction(Opt1, Opt2)
pt2 = myMidFunction(Opt2, Opt3)
pt3 = myMidFunction(Opt3, Opt1)

trip = Rhino.AddPolyline(Array(pt1, pt2, pt3, pt1))

If Rhino.Distance(pt1, pt2) > 0.01 Then
Call myFractal(trip, pt1, pt2, pt3)

Else
Exit Function

End If
End Function

Function myMidFunction(P1, P2)

Dim MidP
MidP = Array((P1(0) + P2(0)) / 2, (P1(1) + P2(1)) / 2, (P1(2) + P2(2)) / 2)

myMidFunction = MidP

End Function

RhinoScripting Workshop at Elisava, Barcelona

Sunday, April 20th, 2008

I participate like instructor, with Ernesto Bueno and the collaboration of Rita Mirele and Ruther Paullo in the RhinoScripting Workshop for the Magister Postgrau en Disseny, Entorn i Arquitectura, in Elisava.

The workshop during exactly 12 hours, divided in 3 days, almos 4 hours per day, in the first day we give them to the students a basic idea of what is language programming, some clues of data type and the use of the help, with the students we create a basis script to analise surfaces, and use this script to develope in the next 4 hours a project related with the environment and the architecture, the main idea was to follow the last workshop who started with Dennis Dollens, recently expositor of the Simae Simposium, few weeks ago that we start our class.

I would like to thanks first for all to Dennis Dollens, for his orientation, and support. to Ignasi Perez Arnal for his vision to involve us in this project, Marisa for the coordination, and the 35 participants for their patient that we have to let us explain this complex world in a couple of hours.

With not particular order, the projects developed in four ours.

René Daniels + Daniela Martínez + Leila Pablo + Noel Luine + María Gabriela Dávila

Madeira Escamilla + Miguel Lozano + Maria Fernanda Cabrera + Mercé Labordena + Gloria Clavera

Fanny Flores + Arturo Leal + Aylin Suárez + DanielGómez + Eva Ferradás

Camilo “Chemile” Molano`+ Cesarina Medina + Delia Arce + Ivan Herrera + Mariam Mariam Sadedine

Ginnette Gotti + Jorge Luis Sanchez + Cintia Torres + Ramón Cárdenas + Carlos Briceño

Rita Rodrigues + Daniela Camargo + Africa Arreola + Feliz Leveque + Felipe Salazar

Veronica Gonzalez + María Cuadrado + Stella lo Sciuto + Fernanda Aiex Da Fonseca + Carlos Báez

Voronoi Diagram

Wednesday, April 16th, 2008

I Hate Voronoi Diagrams when I start working like architect-developer for Other People’s Rooms mi boss was completely crazy for Voronoi Diagrams, so I had to learn, how they diagrams works and how left my boss quiet. I started working with the function programming by David Rutten, and then create my own variations, an also points distributions. you can see my first experience in voronoi diagrams here, here, here and here, here, and also here.

I take the post to say hello to this cools Architects, and his interesting work. Dani, Irantzu, Carlos.

Best guys!

Few weeks ago my best friend invited me to propose him a new bookseller for his flat, so my first idea was voronoi!.
we make an a contract, and give me the measures for the furniture, we talk a lot as he would like it and the posibilities using the script and cnc machine for build it. and always the same idea came to me head. we need voronoi diagrams.

This is the contract that we firm this morning in the library, I’m still in the term, almost… and his first sketch. soon the model.

See u soon man.