Method WindowPolygon
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
WindowPolygon(IReadOnlyList<GeoPoint2>)
Gets the entities drawn wholly inside a polygon, as AutoCAD's WPolygon takes them, and a lasso drawn clockwise: every item of the entity inside it and none crossing its edges. A line from (10, 10) to (20, 10) lies in the square from (0, 0) to (30, 30); a line without end never does.
public IReadOnlyList<string> WindowPolygon(IReadOnlyList<GeoPoint2> ring)
Parameters
ringIReadOnlyList<GeoPoint2>The corners of the polygon, closed back to the first.
Returns
- IReadOnlyList<string>
The handles, in ordinal order.
Exceptions
- ArgumentNullException
Thrown when the corners are null.