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.

FieldType and defaultMeaning
RecordEntities::RecordThe layer, linetype, color and the rest every entity carries.
Flagsint1 closed, 128 linetype drawn continuously around the vertices. Group 70.
Widthstd::optional<double>{0.0}The width every segment shares, when they share one. Group 43.
ElevationdoubleThe elevation, along the normal. Group 38.
ThicknessdoubleHow far the entity is extruded along its normal. Group 39.
Verticesstd::vector<Vertex>The vertices, in order; group 90 counts them.
ExtrusionVector{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.

FieldTypeMeaning
PositionVectorThe location, in the polyline's own coordinate system. Groups 10, 20.
Widthsstd::optional<DxfIO::Widths>The widths the segment starts and ends with, when it has its own. Groups 40, 41.
BulgedoubleThe bulge of the segment to the next vertex: the tangent of a quarter of its arc's angle, 0 when straight. Group 42.
IdintThe vertex identifier. Group 91, written from R2010 as AutoCAD writes it, or in the release the drawing came from.