Brief Index      Full Index      Events Index      I.M. Reference

Insert_Circular_Chord

Functions

HC_KEY Insert_Circular_Chord (const HC_POINT *point1, const HC_POINT *point2, const HC_POINT *point3)
HC_KEY DInsert_Circular_Chord (const HCD_POINT *point1, const HCD_POINT *point2, const HCD_POINT *point3)

Function Documentation

HC_KEY Insert_Circular_Chord ( const HC_POINT *  point1,
const HC_POINT *  point2,
const HC_POINT *  point3 
)

Generates a polygon describing a portion of a circle.

Parameters:
point1- An x-y-z triplet for the coordinates of one of three ordered on the circumference of the circle.(A simple of three elements may also be used in most languages.) Passed by reference always.
point2- As above.
point3- As above.
Returns:
The key to the inserted geometry.

DETAILS

A portion of a circle is added to the current segment. The order of the specified points is important. Specifically, the chord begins at the first point, is drawn through the second point and continues through the third point. A line connects the first and third points. The chord is defined as the area bounded by the points.

Circular chords are grouped with ellipses, polygons, shells and meshes for rendering purposes. The rendition of the interior of the chord can be adjusted with changes to Face Color and Face Pattern. The circumference of a chord can be made distinct from the interior through the use of Edge Color, Edge Pattern and Edge Weight. A chord's Visibility and Selectability are controlled by the "edge", "face", and "polygon" keywords.

NOTES

If you only work in two dimensions, specify all the z coordinates as zero. The system will automatically take note.

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

If there is an error the Insert routine will return a-1.

RESTRICTIONS

See also:
Insert_Circle, Insert_Circular_Arc, Insert_Circular_Wedge, Insert_Polygon, Set_Visibility, Set_Edge_Pattern, Set_Edge_Weight, Set_Face_Pattern, Set_Color, Renumber_Key.
HC_KEY DInsert_Circular_Chord ( const HCD_POINT *  point1,
const HCD_POINT *  point2,
const HCD_POINT *  point3 
)

Similar to Insert_Circular_Chord() but accepts and/or returns double-precision values. This command can only be used when the application source includes the HOOPS double-precision header, hcd.h.

Parameters:
point1- An x-y-z triplet for the coordinates of one of three ordered on the circumference of the circle.(A simple of three elements may also be used in most languages.) Passed by reference always.
point2- As above.
point3- As above.
Returns:
The key to the inserted geometry.

DETAILS

No additional details. See Insert_Circular_Chord().

Brief Index      Full Index      Events Index      I.M. Reference