Table of Contents

Method Extend

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

Extend(double)

Runs an end segment of the polyline on to a parameter past an end, as AutoCAD's Extend: above EndParam the last segment on, its end vertex moved to how far past it the parameter is along that segment (EndParam + 0.5 runs it on by half its length, or half its angle on an arc); below nought the first back. A line runs on along itself, an arc round its circle, its bulge that of the arc it becomes; the widths run on as they change along it. The record is written once.

public override void Extend(double newParameter)

Parameters

newParameter double

The parameter, below nought or above EndParam.

Exceptions

ArgumentOutOfRangeException

Thrown when the parameter lies on the polyline, is not finite, or would take an arc round a whole turn.

InvalidOperationException

Thrown when the polyline is closed, has fewer than two vertices or an end segment of no length, or is erased.

Extend(bool, GeoPoint3)

Moves an end of the polyline to a point on its end segment run on, as AutoCAD's Extend: on the line through a line segment or the circle of an arc, in the polyline's plane, past the end it moves: a point on the segment itself is refused, as a spline's is, an end being run on and not cut back.

public override void Extend(bool extendStart, GeoPoint3 toPoint)

Parameters

extendStart bool

Whether the first vertex is moved, else the last.

toPoint GeoPoint3

The point, in the world, within the point tolerance of the end segment run on.

Exceptions

ArgumentException

Thrown when the point is off the end segment run on, on the polyline itself rather than past the end, or out of the polyline's plane.

InvalidOperationException

Thrown when the polyline is closed, has fewer than two vertices or an end segment of no length, or is erased.