6#include <unordered_map>
43 explicit Sphere(
float radius = 5,
int recursion = 2);
Base class for shape generators.
int midpoint_(int p1, int p2)
Compute and cache the midpoint between two vertices.
std::unordered_map< std::string, int > indexCache_
Vertex index cache.
Shape and mesh primitives.