.. # split from OESystemFunctions.rst:1777

.. include:: ../substitutions

.. oe:namespace:: OESystem

.. meta::
   :keywords: OEMakeRegularGrid

.. oe:function:: OEMakeRegularGrid

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

      .. oe:api::

         bool OEMakeRegularGrid(OESystem::OEScalarGrid& gridout,
                                const OESystem::OESkewGrid& gridin,
                                float scale = 0.0f)

   .. oe:language:: python

      .. oe:api:: python

         OEMakeRegularGrid(gridout: OEScalarGrid, gridin: OESkewGrid,
                           scale: float = 0.0) -> bool

   Regularizes the input grid, 'gridin' (:ref:`OESkewGrid <OESystem_OESkewGrid>`) into
   an orthogonal axis 'gridout' (:ref:`OEScalarGrid <OESystem_OEScalarGrid>`). The
   full extents of the :ref:`OESkewGrid <OESystem_OESkewGrid>` will be
   transferred, potentially causing some data redundancy in the resulting
   :ref:`OEScalarGrid <OESystem_OEScalarGrid>`.
