Method GetOffsetCurves
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
GetOffsetCurves(double)
Gets the line at a distance from this one in the plane of its Normal, as AutoCAD's
GetOffsetCurves: to the left of its direction seen from the tip of the normal where the distance is above
nought, to the right where below, as AutoCAD 2021 offsets a line: the line from (0, 0, 0) to (30, 40, 0) offset by 5
runs from (-4, 3, 0) to (26, 43, 0). A DxfPolyline and a DxfSpline go the other way, to
the right, as AutoCAD offsets them, and an arc's radius grows.
public override IReadOnlyList<DxfCurve> GetOffsetCurves(double offsetDist)
Parameters
offsetDistdoubleThe distance.
Returns
- IReadOnlyList<DxfCurve>
The one line, of the same look, in no file.
Exceptions
- ArgumentOutOfRangeException
Thrown when the distance is not a finite number.
- InvalidOperationException
Thrown when the line has no length to give it a direction.