OESetupBox

bool OESetupBox(OEBox& box, const float* xyz, const unsigned N, const bool addbox = 0.0f)

Sets up box to contain the minimum size box that encloses all coordinates in the xyz array and then extends each box face by addbox.

box

Box to setup

xyz

Array of coordinates

N

Number of coordinates in xyz array

addbox

Optional parameter to extend each box face by a specified amount relative to the minimum box enclosing the xyz coordinates.

Returns true if setup was successful.