Class DxfVertex2d
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
A VERTEX of a DxfPolyline2d, as AutoCAD's Vertex2d: a point of the polyline in the system of its
normal, with the bulge and the widths of the segment that leaves it.
public sealed class DxfVertex2d : DxfVertex
- Inheritance
-
DxfVertex2d
- Inherited Members
Remarks
Position is in the system of the polyline's normal, as AutoCAD gives it, its height the polyline's elevation; VertexPosition(DxfVertex2d) gives it in the world. A vertex of (12, 0) with a bulge of 0.3 starts an arc that sweeps 4 atan 0.3, 66.8 degrees, to the next vertex.
new DxfVertex2d(new GeoPoint3(5, 0, 0), 0.5, 0, 0, 0) makes one in code, to be added to a polyline by
AppendVertex(DxfVertex2d).
Constructors
- DxfVertex2d()
Initializes a vertex at the origin with no bulge and no width, as AutoCAD's
new Vertex2d(), in no polyline.
- DxfVertex2d(GeoPoint3, double, double, double, double)
Initializes a vertex, as AutoCAD's
new Vertex2d(position, bulge, startWidth, endWidth, tangent), in no polyline until it is appended to one.
Properties
- Bulge
Gets or sets the bulge of the segment that leaves the vertex (group 42), as AutoCAD's
Bulge; nought where it has none.
- EndWidth
Gets or sets the width where the segment that leaves the vertex ends (group 41), as AutoCAD's
EndWidth; nought where it has none.
- Position
Gets or sets the point of the vertex (groups 10 and 20), in the system of the polyline's normal, as AutoCAD's
Position: its height the polyline's elevation, or for a vertex in no polyline its own group 30.
- StartWidth
Gets or sets the width where the segment that leaves the vertex starts (group 40), as AutoCAD's
StartWidth; nought where it has none.
- Tangent
Gets or sets the direction the curve fitting takes at the vertex (group 50, in degrees), as AutoCAD's
Tangent: in radians; nought where it has none.
- TangentUsed
Gets or sets whether the curve fitting takes Tangent at the vertex (flag 2 of group 70), as AutoCAD's
TangentUsed.
- VertexType
Gets what the vertex is to its polyline, as AutoCAD's
VertexType: a vertex of the frame of a spline (flag 16), one the spline fitting made (8), one the curve fitting made (1), or one of its own.