Entities
entities/ section
#include "dxfio/entities/section.hpp"In DxfIO::Entities
struct Cut
The AcDbSection subclass of a SECTIONOBJECT: the plane that cuts the model and the line it is drawn with.
| Field | Type and default | Meaning |
|---|---|---|
State | int{1} | What the section cuts with: 1 a plane, 2 a boundary, 4 a volume. Group 90. |
Flags | int | Bits of the section's settings, which DXF does not spell out. Group 91. |
Name | std::string | The name of the section. Group 1. |
Vertical | Vector{Up} | The vertical direction of the section plane. Groups 10, 20, 30. |
Top | double | The height of the top of the section's volume. Group 40. |
Bottom | double | The height of the bottom of the section's volume. Group 41. |
Transparency | int | The transparency of the plane's indicator. Group 70. |
Color | int | The AutoCAD Color Index of the plane's indicator. Group 62, from R2004. |
Rgb | std::optional<int> | The true color of the plane's indicator, as 0xRRGGBB. Group 420, from R2004. |
Vertices | std::vector<Vector> | The vertices of the section line; group 92 counts them. Groups 11, 21, 31. |
Back | std::vector<Vector> | The vertices of the back line; group 93 counts them. Groups 12, 22, 32. |
Settings | Handle | The SECTIONSETTINGS object that sets how the section is drawn. Group 360. |
struct SectionObjectSECTIONOBJECT
A SECTIONOBJECT: a section plane that cuts through 3D solids and surfaces.
| Field | Type | Meaning |
|---|---|---|
Record | Entities::Record | The layer, linetype, color and the rest every entity carries. |
Picture | std::string | The proxy graphics, for programs that cannot draw the entity. Group 92, or 160 from R2010, then 310. |
Cut | Boxed<Entities::Cut> | The plane, its line and its indicator, from the AcDbSection subclass. |