HC_Insert_Ellipse

Key HC_Insert_Ellipse(Point const *center, Point const *major, Point const *minor)
Key HC_Insert_Ellipse(Point const center, Point const major, Point const minor)

Generates a flat, infinitely thin, colored-in elliptical object.

A closed, flat, colored-in ellipse is added to the current segment.

Ellipses are grouped with circles, polygons, shells, and meshes for rendering purposes. The rendition of the interior of the ellipse can be adjusted with changes to face color and face pattern. The circumference of an ellipse can be made distinct from the interior through the use of edge color, edge pattern and edge weight. An ellipse’s visibility and selectability are controlled by the “edge”, “face”, and “polygon” keywords.

If you only work in two dimensions, specify all the z coordinates as zero.

Make sure the points are not colinear. The system checks and issues an error message if all three points lie on a line, or if two are coincident.

HC_Insert_Circle, HC_Insert_Circular_Arc, HC_Insert_Elliptical_Arc, HC_Insert_Polygon, .

Parameters

center: An x-y-z triplet for the coordinates of the center of the ellipse. (A simple array of three elements may also be used in most languages.) Passed by reference always.

major: An x-y-z triplet for the coordinates of the intersection of the ellipse and its major axis. Passed by reference always.

minor: An x-y-z triplet for the coordinates of the intersection of the ellipse and its minor axis. Passed by reference always.

Returns

The key to the inserted geometry, or -1 if an error occurred.