Function gamer::sphere

Function Documentation

std::unique_ptr<SurfaceMesh> gamer::sphere(int order)

Create a triangulated octahedron.

Return

Pointer to resulting mesh

Parameters
  • [in] order: Number of times to subdivide octahedron