Ellipse

ELLIPSE (DXF Reference) with center point at location dxf.center and a major axis dxf.major_axis as vector. dxf.ratio is the ratio of minor axis to major axis. dxf.start_param and dxf.end_param defines the starting- and the end point of the ellipse, a full ellipse goes from 0 to 2*pi. The ellipse goes from starting- to end param in counter clockwise direction.

dxf.extrusion is supported, but does not establish an OCS, but creates an 3D entity by extruding the base ellipse in direction of the dxf.extrusion vector.

Subclass of

ezdxf.entities.DXFGraphic

DXF type

'ELLIPSE'

factory function

add_ellipse()

Inherited DXF attributes

Common graphical DXF attributes

Required DXF version

DXF R2000 ('AC1015')

class ezdxf.entities.Ellipse
dxf.center

Center point of circle (2D/3D Point in WCS)

dxf.major_axis

Endpoint of major axis, relative to the dxf.center (Vector), default value is (1, 0, 0).

dxf.ratio

Ratio of minor axis to major axis (float), default value is 1.

dxf.start_param

Start parameter (float), default value is 0.

dxf.end_param

End parameter (float), default value is 2*pi.