yucad3d

CadAddEllipse

Vecad CadAddEllipse(hDwg, centre, RadH, RadV, RotAngle) — a full ellipse.

YuHandle CadAddEllipse ( YuHandle hDwg, double X, double Y, double Z, double RadH, double RadV, double RotAngle );

Parameters

hDwg (YuHandle)
Handle to the drawing, as returned by CadCreate.
X (double)
World coordinate.
Y (double)
World coordinate.
Z (double)
World coordinate.
RadH (double)
Numeric value (double precision).
RadV (double)
Numeric value (double precision).
RotAngle (double)
Angle in radians, counter-clockwise from the +X axis (the host angle unit can be changed with CAD_GL_ANGUNITS).

Return Value

The handle of the newly created ellipse, or 0 on failure.

Remarks

We store the major axis as the longer radius' direction so ratio stays ≤ 1 (ellipse_math.md data model).

See Also