Grasshopper

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!

Views: 10009

Replies to This Discussion

Hi WoodDuck

Try "control point" .

cheers

Thanx very much. Even I don't know why, it worked. BTW, I used "surface point before"

Have a look at "Discontinuity" (it finds the corners/kinks in any curve, not just rectangles) or if you are using rectangles, there is a node called "Box Corners" (which works on rectangles and boxes).

Have a look at the file.

Attachments:

"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.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service