.. # split from OESpicoliFunctions.rst:477


.. oe:namespace:: OESpicoli

.. meta::
   :keywords: OEMakeSphericalSurface

.. oe:function:: OEMakeSphericalSurface

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

      .. oe:api::

         bool OEMakeSphericalSurface(OESurface& surf, float* center,
                                     float radius, unsigned int level = 4)

   .. oe:language:: python

      .. oe:api:: python

         OEMakeSphericalSurface(surf: OESurface, center: OEFloatArray,
                                radius: float, level: int = 4) -> bool

   Creates a spherical surface in ``surf`` with the center located at
   ``center`` (an array of three floats) with the radius
   ``radius``. The ``level`` argument determines the number of
   triangles used to approximate the sphere. The number of triangles
   is equal to ``level(level + 1) * 8``. For example the default level of
   4 generates 160 triangles which is generally considered to be a
   good sphere to the human eye.

