Table of Contents

Method Extend

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

Extend(double)

Runs the spline on past one of its ends to a parameter, as AutoCAD's Extend: the polynomial of its end span carried on, so that the spline keeps its curve and runs on as smoothly as it ran; below StartParam it starts earlier, above EndParam it ends later. The fit data are taken out.

public override void Extend(double newParameter)

Parameters

newParameter double

The knot value to reach, below the start or above the end.

Exceptions

ArgumentOutOfRangeException

Thrown when the parameter lies on the spline, or is not finite.

InvalidOperationException

Thrown when the spline is closed, which has no end, has no data that make a spline, is erased, or is rational and a weight would reach nought so far on ("cannot run on: a weight would reach nought").

Extend(bool, GeoPoint3)

Runs the spline on past one of its ends to a point on its run carried on, as AutoCAD's Extend: as Extend(double) to the parameter of the point there, found by Newton's steps along the polynomial of the end span.

public override void Extend(bool extendStart, GeoPoint3 toPoint)

Parameters

extendStart bool

Whether the start is moved back, else the end on.

toPoint GeoPoint3

The point, within the point tolerance of the spline run on past that end.

Exceptions

ArgumentException

Thrown when the point is not on the spline run on, or is on the spline itself.

InvalidOperationException

Thrown when the spline is closed, has no data that make a spline, is erased, or is rational and a weight would reach nought so far on.