Entities
entities/ lwpolyline
#include "dxfio/entities/lwpolyline.hpp"In DxfIO::Entities
struct LwPolylineLWPOLYLINE
An LWPOLYLINE: a 2D polyline that holds its vertices in itself, from R14.
| Field | Type and default | Meaning |
|---|---|---|
Record | Entities::Record | The layer, linetype, color and the rest every entity carries. |
Flags | int | 1 closed, 128 linetype drawn continuously around the vertices. Group 70. |
Width | std::optional<double>{0.0} | The width every segment shares, when they share one. Group 43. |
Elevation | double | The elevation, along the normal. Group 38. |
Thickness | double | How far the entity is extruded along its normal. Group 39. |
Vertices | std::vector<Vertex> | The vertices, in order; group 90 counts them. |
Extrusion | Vector{Up} | The normal of the plane the entity is drawn in. Groups 210, 220, 230. |
struct VertexVERTEX
A point of the polyline, with the widths and bulge of the segment that starts at it.
| Field | Type | Meaning |
|---|---|---|
Position | Vector | The location, in the polyline's own coordinate system. Groups 10, 20. |
Widths | std::optional<DxfIO::Widths> | The widths the segment starts and ends with, when it has its own. Groups 40, 41. |
Bulge | double | The bulge of the segment to the next vertex: the tangent of a quarter of its arc's angle, 0 when straight. Group 42. |
Id | int | The vertex identifier. Group 91, written from R2010 as AutoCAD writes it, or in the release the drawing came from. |