.. # split from OESystemFunctions.rst:1790

.. include:: ../substitutions

.. oe:namespace:: OESystem

.. meta::
   :keywords: OEMakeRegularSubGrid

.. oe:function:: OEMakeRegularSubGrid

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

      .. oe:api::

         bool OEMakeRegularSubGrid(OESystem::OEScalarGrid& gridout,
                                   const OESystem::OESkewGrid& gridin,
                                   const float* center, const float* extents,
                                   float scale, bool reentrant)
         bool OEMakeRegularSubGrid(OESystem::OEScalarGrid& gridout,
                                   const OESystem::OEScalarGrid& gridin,
                                   const float* center, const float* extents,
                                   float scale, bool reentrant)

   .. oe:language:: python

      .. oe:api:: python

         OEMakeRegularSubGrid(gridout: OEScalarGrid, gridin: OEScalarGrid,
                              center: OEFloatArray, extents: OEFloatArray,
                              scale: float, reentrant: bool) -> bool
         OEMakeRegularSubGrid(gridout: OEScalarGrid, gridin: OESkewGrid,
                              center: OEFloatArray, extents: OEFloatArray,
                              scale: float, reentrant: bool) -> bool

   Regularize a portion of 'gridin' (:ref:`OESkewGrid <OESystem_OESkewGrid>`)
   into 'gridout' (that can be either :ref:`OEScalarGrid <OESystem_OEScalarGrid>`
   or :ref:`OESkewGrid <OESystem_OESkewGrid>`)
