algorithmic modeling for Rhino
Is the rectangle (curve>primitive) origin supposed to be at the lower left vertex or in the center?
I'm following this tut: http://web.mac.com/rhino3dtv/GH/GH_10_18_Inter_Demo_3D_Rec_Tile.html
but I'm a bit confused, on the tut the behaviour is different from what I get on GH.
here the images of the definition and the result.
Tags:
Neither. A rectangle is defined by a Plane and two intervals along both axes. Thus, the origin point could be anywhere. Though if I make the Rectangle I always try and pick a sensible origin point. Also, the rectangle type in RhinoCommon has methods to re-center the origin point at any of the corners or any arbitrary point on the base plane.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Hi David,
thank you for your reply.
found a possible solution though seems overelaborate:(
Hi Alessandro,
Instead of supplying a number to the rectangle inputs use a domain to define the start and the end interval along the plane. Here I've shown an example using a slider combined with some F(x) components to get a negative and a positive start/finish to place the origin in the centre.
So the difference is that GH is converting your input of 1.0 into a domain of 0 to 1 in the first instance but because it doesn't have to guess for the corner ones you get what you intended.
Hi Danny,
thank you! that works better (and clever)!
quick question, you might have explained it, but i don't quite understand what the domain component is that the functions get plugged into is doing?
thanks.
Hi Alessandro
The new Component for the Rectangle is different from that video!
For X and Y you have to supply a domain now. That is something like this:
If the Rectangle is 4 x 4 and its center is at 0,0 then, the domain for X would be:
-2,2 and the domain for y would be 2,-2 right?
Hope this helps!
Andres
Hi Andres,
thank you for helping!
also Danny posted a good example to solve it.
ale
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by