Brief Index      Full Index      I.M. Reference

Compute_Circumsphere


Functions

HC_BOOLEAN Compute_Circumsphere (const char *segment, HC_POINT *center, float *radius)
HC_BOOLEAN Compute_Circumsphere_By_Key (HC_KEY key, HC_POINT *center, float *radius)

Function Documentation

HC_BOOLEAN Compute_Circumsphere ( const char *  segment,
HC_POINT *  center,
float *  radius 
)

Returns points defining a sphere that circumscribes the geometry within a segment.

Parameters:
segment - Segment name to use for the calculation.
center - The center position of a sphere that encompasses the geometry contained within the segment. Returned to user. Passed by reference in all languages.
radius - The radius length of the encompassing sphere. Returned to user. Passed by reference in all languages.
Returns:
success

DETAILS

The volume for Compute_Circumsphere() is a sphere instead of a cuboid. For more information refer to the discussion for Compute_Circumcuboid() .

NOTES

RESTRICTIONS

See also:
Compute_Circumcuboid, Compute_Coordinates, Compute_TransformShow_Bounding_Info, Show_Bounding_Cuboid, Show_Bounding_Sphere.

HC_BOOLEAN Compute_Circumsphere_By_Key ( HC_KEY  key,
HC_POINT *  center,
float *  radius 
)

Similar to Compute_Circumsphere(), but operates on an object referenced by an HC_KEY.

Parameters:
key - Key of the segment or geometry to be used for the calcula tion.
center - The center position of a sphere that encompasses the geometry contained within the segment. Returned to user. Passed by reference in all languages.
radius - The radius length of the encompassing sphere. Returned to user. Passed by reference in all languages.
Returns:
success

DETAILS

No additional details. See Compute_Circumsphere()

Main Index
Brief Index      Full Index      I.M. Functions