Functions | |
HC_KEY | Insert_Circular_Wedge (const HC_POINT *point1, const HC_POINT *point2, const HC_POINT *point3) |
HC_KEY | DInsert_Circular_Wedge (const HCD_POINT *point1, const HCD_POINT *point2, const HCD_POINT *point3) |
HC_KEY Insert_Circular_Wedge | ( | const HC_POINT * | point1, | |
const HC_POINT * | point2, | |||
const HC_POINT * | point3 | |||
) |
Generates a wedge shaped polygon representing a portion of a circle.
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. |
Circular wedges are grouped with ellipses, polygons, shells and meshes for rendering purposes. The rendition of the interior of the wedge can be adjusted with changes to Face Color and Face Pattern. The circumference of a wedge 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.
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.
Because of the way the center of a wedge is computed, it may be expedient to explicitly set the circular center via Set_Circular_Center(). This will help prevent rounding errors, especially in cases where the arc is very small.
If there is an error the Insert routine will return a-1.
HC_KEY DInsert_Circular_Wedge | ( | const HCD_POINT * | point1, | |
const HCD_POINT * | point2, | |||
const HCD_POINT * | point3 | |||
) |
Similar to Insert_Circular_Wedge 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.
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. |