Class DxfVertex
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
A VERTEX of a POLYLINE, as AutoCAD's Vertex is one of a polyline: the record that follows the polyline in the
file and gives one of its points, of the class its polyline has (DxfVertex2d,
DxfPolylineVertex3d, DxfPolyFaceMeshVertex, DxfFaceRecord or
DxfPolygonMeshVertex).
public abstract class DxfVertex : DxfEntity
- Inheritance
-
DxfVertex
- Derived
- Inherited Members
Remarks
A vertex is reached by walking its polyline, foreach (DxfVertex2d v in polyline), as AutoCAD walks the vertices
of one: the same object each time while its record is there. Its Owner is the polyline; its
point, look and extended data are read from its own record and written into it, its handle kept.
A vertex made in code, such as new DxfVertex2d(point, 0.5, 0, 0, 0), is in no polyline until it is appended to
one, as AutoCAD's AppendVertex takes it; it is the vertex of that polyline from then on, every other vertex
keeping its handle. Erase() takes a vertex out of its polyline the same way.
Methods
- Erase()
Takes the vertex out of its polyline, as AutoCAD's
Erasedoes, every other vertex keeping its handle. A DxfPolyline2d or a DxfPolyline3d keeps two vertices at least, as AutoCAD keeps one on save and audit: a vertex of one with two is not taken out. A point or face of a DxfPolyFaceMesh is taken out with the mesh's counts (groups 71 and 72) one less and the faces' numbers of the later points one less; a point a face names is kept.