# OEMakeSphericalSurface¶

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


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.