Message 1 of 7
Intersection and Bounding box

Not applicable
05-31-2017
12:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In our application we are using a closed polyline in the form of rectangles to detect objects that may be enclosed within the rectangle. In addition to enclose, we also want to detect intersection with the polyline using other objects. We are using the function Obj.BoundingBoxIntersectWith(2ndObj, Intersect.ExtendBoth, intersectionPts, new IntPtr(0), new IntPtr(0)); to accomplish this goal, but there seems to be issues with the function picking up objects outside of the closed polyline. Any ideas what could cause this issue? Is there a better to detect objects within a closed polyline?