Table of Contents

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

index int

Where it goes, from nought to NumberOfVertices.

pt GeoPoint2

The vertex, in the system of the polyline's normal.

bulge double

The bulge of the segment that leaves it.

startWidth double

The width where that segment starts.

endWidth double

The 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.