Table of Contents

Method Inverted

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Inverted(IReadOnlyList<GeoPoint2>, GeoPoint2, GeoPoint2)

Gets the boundary of a clip turned inside out (XCLIP's Invert clip) as AutoCAD keeps it: the points of the polygon with a slit opened from the vertex nearest the box to the box's edge, round the box, and back; what the ring holds is what is shown, the block outside the polygon. A rectangle's two corners are made the four of a polygon first. A polygon that reaches out of the box makes the box larger to hold it. The slit is 4E-5 wide.

public static IReadOnlyList<GeoPoint2> Inverted(IReadOnlyList<GeoPoint2> boundary, GeoPoint2 min, GeoPoint2 max)

Parameters

boundary IReadOnlyList<GeoPoint2>

The polygon, or the two corners of a rectangle, in the clip coordinate system.

min GeoPoint2

The least corner of the box that holds the block, in the clip system.

max GeoPoint2

The greatest corner of that box.

Returns

IReadOnlyList<GeoPoint2>

The ring, the last point not repeating the first.

Exceptions

ArgumentNullException

Thrown when the boundary is null.

ArgumentException

Thrown when the boundary has fewer than two points.