Table of Contents

Method GetOffsetCurves

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

GetOffsetCurves(double)

Gets the polylines at a distance from this one in its plane, as AutoCAD's GetOffsetCurves: to the right of its way seen from the tip of its Normal where the distance is above nought, so that a closed polyline running counter-clockwise grows and an arc segment running so takes the larger radius, as a DxfArc does. The arcs stay arcs and the corners are run on until the segments meet, as AutoCAD's OFFSETGAPTYPE 0 runs them; where a part comes nearer the polyline than the distance it is cut away, as the library's offsets of a chain cut it, which can leave several polylines or none. The square 10 by 10 counter-clockwise offset by 1 is the square 12 by 12 about the same centre. Each keeps the look, elevation, normal, thickness and constant width; widths of the vertices go. A closed polyline that crosses itself, a side passing through another, has none, as AutoCAD 2021 gives none of the bow tie (-10, 1), (10, -1), (10, 1), (-10, -1), and one Debug line says so; one that only touches itself is offset.

public override IReadOnlyList<DxfCurve> GetOffsetCurves(double offsetDist)

Parameters

offsetDist double

The distance.

Returns

IReadOnlyList<DxfCurve>

The polylines, of the same look, in no file.

Exceptions

ArgumentOutOfRangeException

Thrown when the distance is not finite.

InvalidOperationException

Thrown when the polyline has fewer than two vertices.