Method AddVertexAt
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
AddVertexAt(int, GeoPoint2, double, double, double)
Adds a vertex, as AutoCAD's AddVertexAt: before the vertex of the index, or after the last where the index is
the count. Its widths are written where either is not nought, its bulge where it is not.
public void AddVertexAt(int index, GeoPoint2 pt, double bulge, double startWidth, double endWidth)
Parameters
indexintWhere it goes, from nought to NumberOfVertices.
ptGeoPoint2The vertex, in the system of the polyline's normal.
bulgedoubleThe bulge of the segment that leaves it.
startWidthdoubleThe width where that segment starts.
endWidthdoubleThe width where it ends.
Exceptions
- ArgumentOutOfRangeException
Thrown when the index is below nought or above the count, or a number is not finite or a width below nought.
- ArgumentException
Thrown when a coordinate is not a finite number.
- InvalidOperationException
Thrown when the polyline is erased.