GEOM
Computer Graphics Structures library
geom::UvSphereGenerator Class Reference

Generator of UV sphere geometry. More...

Public Member Functions

 UvSphereGenerator (uint32_t smoothness=8)
 Construct generator. Higher values of smoothness parameter increase the vertex count.
 
std::vector< glm::vec3 > GenVertices (const glm::vec3 &center, float radius) const
 Generates point positions for a specified sphere center and radius.
 
std::vector< glm::uvec3 > GenIndices () const
 Generates triangle indices defining point connectivity.
 

Detailed Description

Generator of UV sphere geometry.