algorithmic modeling for Rhino
Greetings,
I've got a whole mess of rectangles and I want to test them for containment.
I found this tantalizing entry in the Rhino Common SDK : RegionContainment Enumeration
but it only describes the enumerated values from some method that is not referenced or I can't find.
In the old SDK there is RhUtil::RhinoPlanarClosedCurveContainmentTest, but I gather I shouldn't be messing around with the old and outdated RhUtil.
Any help is very much appreciated!
Kris
Tags:
Rhino.Geometry.Curve.PlanarClosedCurveRelationship()
it's a static (Shared in VB) method.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Thanks David!
Helpful and prompt as usual. You set a high bar for yourself. :)
Follow up question:
It appears that sometimes rectangles (turned into curves) that share a boundary edge and have no overlapping area are considered mutually intersecting. I've tried messing with the tolerance, but with no luck.
Do you know how this is implemented?
If this is just the way it is I can offset one of the rectangles a small amount before testing for overlap, but I'm dealing with a large list of data so I'd prefer to keep things as streamlined as possible.
Thanks again,
Kris
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