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 along itself, its end vertex moved to how far past it the parameter is
along that segment; below nought the first back. The one vertex record is written, every handle kept.
public override void Extend(double newParameter)
Parameters
Exceptions
- ArgumentOutOfRangeException
Thrown when the parameter lies on the polyline, or is not finite.
- 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 the line through its end segment past that end, as AutoCAD's Extend; a point on the segment itself is refused.
public override void Extend(bool extendStart, GeoPoint3 toPoint)
Parameters
extendStartboolWhether the first vertex is moved, else the last.
toPointGeoPoint3The point, within the point tolerance of the line through the end segment.
Exceptions
- ArgumentException
Thrown when the point is off the line through the end segment, or on the polyline itself rather than past the end.
- InvalidOperationException
Thrown when the polyline is closed or fitted, has fewer than two vertices or an end segment of no length, or is erased.