Grasshopper

algorithmic modeling for Rhino

hey guys, i'm sorry if i disturb you with a stupid question, but i've tried a lot of combinations to obtain an independet rectangle from the center of another one but no way!can someone help me please?

Views: 465

Attachments:

Replies to This Discussion

You have to connect domains to rectangle (instead values)

instead X=18 Y=30 ;

X= from -9 to +9

Y= from -15 to +15

making a centered rectangle.

Thanks so much for the reply, but probably  i've not been clean with my question..i'm trying to put the second rectangle (x=11,y=24) with its center origin in the center of the first one rectangle (x=18, y=30)..and i thought that "polygon center" command could be my solution but it isn't. using your resolution i can't solve the problem anyway or maybe i didn't understand what you mean..

You probably haven't understand...

The component "Rectangle" doesn't create a CENTERED rectangle, just from 0 point of the plane you set.

If you set x=11 y=24 i will create a new rectangle wide from x0 to x14 and high from y0 to y24 , on the plane you set.

(The "Rectangle" component wants a plane in "P", and because you connected the center point of the previous rectangle, it automatically convert that point to a new XY(world) plane with origin on that point)

You have to work like this then:

X= -5.5 to +5.5 (on the new centered plane)

Y= -12 to +12 (on the new centered plane)

thanks so much! now i've understood!

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service