Show_Circular_Center
Functions | |
HC_BOOLEAN | DShow_Circular_Center (HC_KEY key, double *x, double *y, double *z) |
Similar to Show_Circular_Center(), but operates on double-precision data. More... | |
HC_BOOLEAN | Show_Circular_Center (HC_KEY key, float *x, float *y, float *z) |
Returns the center point of a given circle-based primitive. More... | |
Detailed Description
Function Documentation
◆ DShow_Circular_Center()
HC_BOOLEAN DShow_Circular_Center | ( | HC_KEY | key, |
double * | x, | ||
double * | y, | ||
double * | z | ||
) |
Similar to Show_Circular_Center(), but operates on double-precision data.
- Parameters
-
key - A key to a circle entity x - X-coordinate of the centerpoint. Passed by reference. Returned to user. y - Y-coordinate of the centerpoint. Passed by reference. Returned to user. z - Z-coordinate of the centerpoint. Passed by reference. Returned to user.
◆ Show_Circular_Center()
HC_BOOLEAN Show_Circular_Center | ( | HC_KEY | key, |
float * | x, | ||
float * | y, | ||
float * | z | ||
) |
Returns the center point of a given circle-based primitive.
- Parameters
-
key - A key to a circle entity x - X-coordinate of the centerpoint. Passed by reference. Returned to user. y - Y-coordinate of the centerpoint. Passed by reference. Returned to user. z - Z-coordinate of the centerpoint. Passed by reference. Returned to user.
DETAILS
This function lets the user query the center point used internally for a particular piece of geometry. The boolean value returned will be true if the point was supplied by the user and false if it was calculated internally.
NOTES
By default HOOPS calculates the centerpoint when any circle-based geometry is inserted into the HOOPS database. Rounding errors in this calculation can cause arcs based on the same center to line up incorrectly at certain zoom factors. Using Set_Circular_Center() on these geometries overrides the calculated center and consequently forces circular geometry to line up correctly.