Analyzing the BUG in IntersectWith() - AutoCAD .Net API
One of the common tasks while solving geometric problems in CAD environment is to find the intersection of two geometric entities such as Lines, Polylines, Polygons (Closed Polyline in CAD), Circle, Ellipse, Regions etc. Natural problems exist where a solution may solely depend upon the intersection and the count of intersections. A practical example where intersection of geometric entities matters is Cutting a polygon into two parts. Another fundamental problem in computational geometry, CAD, GIS, motion planning and Computer Vision is to detect whether a given point lies inside or outside the given polygon or plane. The simple solution to this problem is to test how many times a ray starting from the given point extends towards the edges of a polygon. An even number of intersections implies that the point is outside of the polygon and vice versa. Intersections are sometimes also referred when testing to detect overlap of two polygons. In such a case, the region of intersecti