Entities

entities/ellipse

#include "dxfio/entities/ellipse.hpp"

In DxfIO::Entities

struct EllipseELLIPSE

An ELLIPSE: a full or partial ellipse, given by its center, its major axis and the ratio of its minor axis.

FieldType and defaultMeaning
RecordEntities::RecordThe layer, linetype, color and the rest every entity carries.
CenterVectorThe center, in world coordinates. Groups 10, 20, 30.
AxisVector{Right}The end of the major axis, relative to the center. Groups 11, 21, 31.
ExtrusionVector{Up}The normal of the plane the entity is drawn in. Groups 210, 220, 230.
Ratiodouble{1}The length of the minor axis over that of the major axis. Group 40.
StartdoubleThe parameter the curve starts at, in radians, 0 at the end of the major axis. Group 41.
Enddouble{Turn}The parameter the curve ends at, in radians; a full turn past the start closes the ellipse. Group 42.

Constants

Turndouble = 2 * std::numbers::piA full turn, in radians: the end parameter of a closed ellipse.