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, as a
DxfPolyline runs its own on: the end vertex moved, and the bulge and widths of the segment that reaches
it, in one writing of the polyline, every handle kept.
public override void Extend(double newParameter)
Parameters
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 or fitted, 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, as a
DxfPolyline moves its own: on the line through a line segment or the circle of an arc, in its plane, past
the end it moves.
public override void Extend(bool extendStart, GeoPoint3 toPoint)
Parameters
extendStartboolWhether the first vertex is moved, else the last.
toPointGeoPoint3The 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 or fitted, has fewer than two vertices or an end segment of no length, or is erased.