Method Fence
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Fence(IReadOnlyList<GeoPoint2>)
Gets the entities a fence crosses, as AutoCAD's Fence takes them: those an item of which meets one of the fence's segments, touching it counted. A fence from (0, 5) to (30, 5) takes a line from (10, 0) to (10, 10), not one from (10, 6) to (20, 6). A fence of fewer than two points takes nothing.
public IReadOnlyList<string> Fence(IReadOnlyList<GeoPoint2> fence)
Parameters
fenceIReadOnlyList<GeoPoint2>The points of the fence, not closed.
Returns
- IReadOnlyList<string>
The handles, in ordinal order.
Exceptions
- ArgumentNullException
Thrown when the points are null.