.. # split from OESpicoliFunctions.rst:287


.. oe:namespace:: OESpicoli

.. meta::
   :keywords: OEMakeBitGridFromSurface

.. oe:function:: OEMakeBitGridFromSurface

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

      .. oe:api::

         bool OEMakeBitGridFromSurface(OESystem::OEScalarGrid& grid,
                                       const OESurface& surf)
         bool OEMakeBitGridFromSurface(OESystem::OEScalarGrid& grid,
                                       const OESurface& surf, float spacing,
                                       float buffer)

   .. oe:language:: python

      .. oe:api:: python

         OEMakeBitGridFromSurface(grid: OEScalarGrid, surf: OESurface) -> bool
         OEMakeBitGridFromSurface(grid: OEScalarGrid, surf: OESurface,
                                  spacing: float, buffer: float) -> bool

   Fill ``grid`` with either ``0.0`` or ``1.0`` marking whether that
   grid points lies inside or outside the volume enclosed by the
   surface. ``0.0`` indicates the point is outside the
   surface. ``1.0`` indicates the point is inside the surface.   

