.. # split from OESystemFunctions.rst:2392
.. include:: ../../toolkit-substitutions
.. include:: ../substitutions

.. oe:namespace:: OESystem

.. meta::
   :keywords: OESetupGrid

.. attention::

   |CPPONLY|

.. oe:function:: OESetupGrid

   .. oe:api::

      template <class GridObject> bool OESetupGrid(GridObject& grid,
                                                   float* xyz, unsigned int N,
                                                   float buffer = 0)


