|
*** A very useful function
returns the bounding box of the world or a specific group.
Works also in VIEWER_MODE
A NULL group handle will return the bounding box of the entire world
the box returned has the following values
box[0][0] is the minimum X
box[0][1] is the minimum Y
box[0][2] is the minimum Z
box[1][0] is the max X
box[1][1] is the max Y
box[1][2] is the max Z
This function is not very speedy
Unlike most of the get function which just return a value
this function makes all the calculation going over all the vertexes
in the group (so it is not a very fast function)
Example:
getting the bounding box of the entire world
double box[2][3];
STATE_group_get_bounding_box(NULL, box);
|