Grasshopper

Grasshopper - VB .NET

 
Picture of Bojan Mitrovic
Grasshopper - VB .NET
by Bojan Mitrovic - Tuesday, 24 November 2009, 3:22 PM
 

Napraviti Grasshopper definicuju u kojoj je koriscena komanda DotNET VB Script sa najmanje jednim ulaznim i izlaznim parametrom, u kodu koristiti bar jednu petlju.

Postaviti definiciju i obavezno sliku ili model (*.obj)

Picture of Milutin Miljus
Re: Grasshopper - VB .NET
by Milutin Miljus - Tuesday, 24 November 2009, 4:03 PM
 
model...
Picture of Milutin Miljus
Re: Grasshopper - VB .NET
by Milutin Miljus - Tuesday, 24 November 2009, 4:06 PM
 

    Evo i definicije :-D

    Dim krugovi As New List(Of OnCircle)
   
    Dim centar As New On3dPoint(0, 0, 0)
    Dim V As New On3dVector(0.3, 1, 4.2)
    Dim p As New On3dPoint(x, y, z)
   
    Dim i As New Int16
   
    For i = 0 To brojkrugova
      Dim krug As New OnCircle(centar, i + 5)
      krug.Rotate(ugao * i, v, p)
      krugovi.Add(krug)
    Next
   
    A = krugovi


Picture of Dina Stojanovic
Re: Grasshopper - VB .NET
by Dina Stojanovic - Tuesday, 29 December 2009, 5:37 PM
 
Definicija koja pravi skoljku...

Dim krugovi As New List(Of OnCircle)

For i As Int32 = 1 To N
'definise novi krug
Dim krug As New OnCircle(New On3dPoint(0, 0, 0), i)
'rotira krug
krug.Rotate(ugao * i, New On3dVector(0, 1, 0), New On3dPoint(x, 0, 0))
'dodaje krug
krugovi.Add(krug)
Next
A = krugovi

Picture of Dina Stojanovic
Re: Grasshopper - VB .NET
by Dina Stojanovic - Tuesday, 29 December 2009, 5:47 PM
 
moz-screenshot.pngili puža...