Functions | |
void | Edit_Circle (HC_KEY key, const HC_POINT *point1, const HC_POINT *point2, const HC_POINT *point3) |
void Edit_Circle | ( | HC_KEY | key, |
const HC_POINT * | point1, | ||
const HC_POINT * | point2, | ||
const HC_POINT * | point3 | ||
) |
Generates a flat, infinitely thin, colored-in circular object.
key | - key to a circle object. |
point1 | - An x-y-z triplet for the coordinates of one of three on the circumference of the circle. (A simple array of three elements may also be used in most languages.) Passed by reference always. |
point2 | - As above. |
point3 | - As above. |
Edit_Circle() lets you modify a circle as it sits in the database. You don't have to delete and reinsert it from scratch.
HOOPS uses a more compact structure to store a 2d circles (a circle with z=0 for start, middle and end). If and when such 2d circles are edited, all z values passed in for the start, middle and end points must be 0. In other words, if you need to make a 2d circle into a 3d circle, you have to delete and reinsert.