Entities
entities/ mline
#include "dxfio/entities/mline.hpp"In DxfIO::Entities
struct Strand
How one line of a multiline runs along a segment: where its pieces lie and where its fill lies.
| Field | Type | Meaning |
|---|---|---|
Spans | std::vector<double> | The parameters of the line's pieces along the segment; group 74 counts them. Group 41. |
Fills | std::vector<double> | The parameters of the line's area fill; group 75 counts them. Group 42. |
struct Joint
A vertex of a multiline, with the segment that starts at it.
| Field | Type | Meaning |
|---|---|---|
Position | Vector | The vertex, in world coordinates. Groups 11, 21, 31. |
Direction | Vector | The direction of the segment that starts at the vertex. Groups 12, 22, 32. |
Miter | Vector | The direction of the miter at the vertex. Groups 13, 23, 33. |
Strands | std::vector<Strand> | How each line of the style runs along the segment, in the style's order. |
struct Web
The AcDbMline subclass of an MLINE: its style, its justification and its vertices.
| Field | Type and default | Meaning |
|---|---|---|
Style | Symbol | The name of the multiline style. Group 2. |
Styled | Handle | The MLINESTYLE object. Group 340. |
Scale | double{1} | The scale of the style's offsets. Group 40. |
Justification | int | 0 top, 1 zero, 2 bottom. Group 70. |
Flags | int | 1 has vertices, 2 closed, 4 start caps suppressed, 8 end caps suppressed. Group 71. |
Lines | int | The number of lines in the style. Group 73. |
Start | Vector | The start point, in world coordinates. Groups 10, 20, 30. |
Normal | Vector{Up} | The normal of the plane the entity is drawn in. Groups 210, 220, 230. |
Joints | std::vector<Joint> | The vertices; group 72 counts them. |
struct MLineMLINE
An MLINE: several parallel lines drawn together, as a multiline style sets them.
| Field | Type | Meaning |
|---|---|---|
Record | Entities::Record | The layer, linetype, color and the rest every entity carries. |
Web | Boxed<Entities::Web> | The style, justification and vertices, from the AcDbMline subclass. |