Entities
entities/ polyline
#include "dxfio/entities/polyline.hpp"In DxfIO::Entities
struct PolylinePOLYLINE
A POLYLINE: a 2D or 3D polyline, a polygon mesh or a polyface mesh, its vertices following it in the file.
| Field | Type and default | Meaning |
|---|---|---|
Record | Entities::Record | The layer, linetype, color and the rest every entity carries. |
Follows | bool{true} | Whether VERTEX entities follow it in the file. Group 66. |
Position | Vector | A point whose Z is the polyline's elevation; its X and Y are 0. Groups 10, 20, 30. |
Thickness | double | How far the entity is extruded along its normal. Group 39. |
Flags | int | 1 closed, 2 curve-fit, 4 spline-fit, 8 3D polyline, 16 polygon mesh, 32 mesh closed along N, 64 polyface mesh, 128 linetype drawn continuously around the vertices. Group 70. |
Start | double | The width segments start with when their vertex gives none. Group 40. |
End | double | The width segments end with when their vertex gives none. Group 41. |
Rows | int | The vertex count along M of a polygon mesh, or the vertex count of a polyface mesh. Group 71. |
Columns | int | The vertex count along N of a polygon mesh, or the face count of a polyface mesh. Group 72. |
Density | int | The density along M of a smoothed polygon mesh. Group 73. |
Depth | int | The density along N of a smoothed polygon mesh. Group 74. |
Curve | int | How the surface is smoothed: 0 not at all, 5 quadratic B-spline, 6 cubic B-spline, 8 Bezier. Group 75. |
Extrusion | Vector{Up} | The normal of the plane the entity is drawn in. Groups 210, 220, 230. |
Vertices | Sequence<Vertex> | The vertices that follow it in the file, closed by a SEQEND. |