.. oe:namespace:: OEMath

.. meta::
   :keywords: OESetupBox

.. oe:function:: OESetupBox

   .. oe:language:: c++ java csharp

      .. oe:api::

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

   .. oe:language:: python

      .. oe:api:: python

         OESetupBox(arg1: OEBox, xyz: OEFloatArray, numPoints: int,
                    addbox: float = 0.0) -> bool


   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.


