Functions
Show_Circular_Center

Functions

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...
 
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...
 

Detailed Description

Function Documentation

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.
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.

See also
Set_Circular_Center, Insert_Ellipse, Insert_Circular_Arc, Insert_Circular_Chord, Insert_Circular_Wedge, Insert_Elliptical_Arc, Insert_Polygon, Set_Visibility, Set_Edge_Pattern, Set_Edge_Weight, Set_Face_Pattern, Set_Color, Renumber_Key.