Compute_Circumsphere

Functions

HC_BOOLEAN Compute_Circumsphere (const char *segment, HC_POINT *center, float *radius)
 Returns points defining a sphere that circumscribes the geometry within a segment. More...
 
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. More...
 
HC_BOOLEAN DCompute_Circumsphere (const char *segment, HC_DPOINT *center, double *radius)
 Similar to Compute_Circumsphere(), but operates on double-precision data. More...
 
HC_BOOLEAN DCompute_Circumsphere_By_Key (HC_KEY key, HC_DPOINT *center, double *radius)
 Similar to Compute_Circumsphere_By_Key(), but operates on double-precision data. More...
 

Detailed Description

Function Documentation

◆ Compute_Circumsphere()

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.

◆ Compute_Circumsphere_By_Key()

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

No additional details. See Compute_Circumsphere()

◆ DCompute_Circumsphere()

HC_BOOLEAN DCompute_Circumsphere ( const char *  segment,
HC_DPOINT *  center,
double *  radius 
)

Similar to Compute_Circumsphere(), but operates on double-precision data.

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

◆ DCompute_Circumsphere_By_Key()

HC_BOOLEAN DCompute_Circumsphere_By_Key ( HC_KEY  key,
HC_DPOINT *  center,
double *  radius 
)

Similar to Compute_Circumsphere_By_Key(), but operates on double-precision data.

Parameters
key- Key of the segment or geometry to be used 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

No additional details. See Compute_Circumsphere_By_Key()