Table of Contents

Method SetFrom

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

SetFrom(IReadOnlyList<GeoPoint2>, GeoVector3)

Hides a polygon anew, as AutoCAD 2021's SetFrom: its corners in the plane of a normal, in the system of that normal (the arbitrary axis algorithm, the world's xy for (0, 0, 1)), the first again at the end. As AutoCAD 2021 writes it, the frame is the square on the box of the corners and the origin of the plane, its side the box's longer: the rectangle (-30, -10) to (10, 20) has the frame of side 40 at (-30, -10, 0), the rectangle (200, 100) to (230, 110) the frame of side 230 at the origin. The corners are written in the frame as a polygon, the record said to be clipped (280 of 1).

public void SetFrom(IReadOnlyList<GeoPoint2> points, GeoVector3 normal)

Parameters

points IReadOnlyList<GeoPoint2>

The corners, three or more, the first again at the end within the point tolerance of Default.

normal GeoVector3

The normal of the plane, of some length.

Exceptions

ArgumentNullException

Thrown when the corners are null.

ArgumentException

Thrown when a corner or the normal is not of finite numbers, the normal has no length, the last corner is not the first, there are fewer than four, or they close no area, the point tolerance times the longer side of their own box, wherever they stand: a square 10 by 10 at (100 000, 100 000) closes 100. AutoCAD 2021 writes a polygon not closed as a WIPEOUT of no boundary, which it then cannot open.

InvalidOperationException

Thrown when the wipeout is erased.