algorithmic modeling for Rhino
Hi, I would like to be able to select the points of a rectangle based on their location - Example: Say I need the bottom right point, I would just connect to that output.
I came up with this but I wonder if it will always be accurate for all rectangles? Is there a simpler, more accurate method?
cheers!
Tags:
Thanx very much. Even I don't know why, it worked. BTW, I used "surface point before"
"Bottom Right" is not very well defined within 3D space. Which corner of a rectangle "bottom right" is supposed to indicate changes with your position as you look at the rectangle in various ways. Even within 2D this notion can be problematic, because rectangles carry around their own orientation plane. However you can't tell from looking at a rectangle how it is oriented.
You approach can be either intrinsic or extrinsic. The replies you've gotten so far are all intrinsic ones, in that they only take the rectangle itself into account. You can index the corners either by treating the rectangle as a polyline with control-points or as a curve with discontinuities.
An example of an extrinsic approach would be to position a point at (-f, -f, 0) (where f is some suitably large number), then find the point on the rectangle closest to it. This will allow you to ignore the orientation of the rectangle plane, and instead treat it as some shape embedded in world space rather than something with an orientation of its own.
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