Please log in to write a message.
-
5. srknytgn (Jun 04, 2011 01.19):
thank you!
the final version of code is like that
Function addBox(a,b,c)
addBox = Rhino.addBox( Array( _
Array(-a,-b,-c), _
Array( a,-b,-c), _
Array( a, b,-c), _
Array(-a, b,-c), _
Array(-a,-b, c), _
Array( a,-b, c), _
Array( a, b, c), _
Array(-a, b, c)))
End Function
addbox 20,20,20
-
4. archipochi (Jun 03, 2011 22.14):
Sorry! I forgot an explication '^^
You have to call the function like this:
addbox 3,7,2
Or
Call addbox(5,2,6)
-
3. srknytgn (Jun 03, 2011 21.47):
should i change anything in this code?
when i try to execute nothing has worked.
-
2. archipochi (Jun 03, 2011 07.49):
' La funzione addBox crea un parallelepipedo
' di semi-dimensioni rx,ry,rz (cioe' largo 2*rx, spesso 2*ry e alto 2*rz)
' centrato nell'origine
'
Function addBox(rx,ry,rz)
addBox = Rhino.addBox( Array( _
Array(-rx,-ry,-rz), _
Array( rx,-ry,-rz), _
Array( rx, ry,-rz), _
Array(-rx, ry,-rz), _
Array(-rx,-ry, rz), _
Array( rx,-ry, rz), _
Array( rx, ry, rz), _
Array(-rx, ry, rz)))
End Function
-
1. srknytgn (Jun 03, 2011 05.54):
hello i want to create a 50,50,50 sized box with rhinoscript.
how can i do that?
i found this but i want to specify the sizes not to get from mouse entry.
Dim arrBox
arrBox = Rhino.GetBox
If IsArray(arrBox) Then
Rhino.AddBox arrBox
End If
like
A = box length:20 width:20 height:20 max