GEOM
Computer Graphics Structures library
Procedural.h
1 #ifndef GEOM_PROCEDURAL_H
2 #define GEOM_PROCEDURAL_H
3 #include <vector>
4 #include <glm/common.hpp>
5 #include <GEOM/API.h>
6 
7 namespace geom
8 {
10  class GEOM_API UvSphereGenerator
11  {
12  public:
14  UvSphereGenerator(uint32_t smoothness = 8);
16  std::vector<glm::vec3> GenVertices(const glm::vec3 &center, float radius) const;
18  std::vector<glm::uvec3> GenIndices() const;
19  private:
20  uint32_t smoothness_{ 8 };
21  };
22 }
23 #endif /* !GEOM_PROCEDURAL_H */
Definition: Constructors.h:9
Generator of UV sphere geometry.
Definition: Procedural.h:10