Method RemoveVertexAt
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
RemoveVertexAt(int)
Takes a vertex out, as AutoCAD's RemoveVertexAt. A polyline keeps two vertices at least, as AutoCAD keeps one
on save and audit: the vertex is not taken out where fewer would be left.
public void RemoveVertexAt(int index)
Parameters
indexintThe index of the vertex, from nought.
Exceptions
- ArgumentOutOfRangeException
Thrown when there is no vertex of the index.
- InvalidOperationException
Thrown when the polyline has two vertices or fewer, or is erased.