COGS
Computer Graphics Structures library
Triangulation.h
1 /*
2  Copyright (C) Skeletex Research, s.r.o. - All Rights Reserved
3  Unauthorized copying of this file, via any medium is strictly prohibited
4  Proprietary and confidential
5 */
6 #ifndef COGS_TRIANGULATION_H
7 #define COGS_TRIANGULATION_H
8 #include <vector>
9 
10 #include <glm/gtc/type_ptr.hpp>
11 
12 #include <COGS/API.h>
13 
14 
15 namespace cogs
16 {
17 
22  class COGS_API Triangulation
23  {
24  public:
25  uint32_t GetFaceCount() const;
26  uint32_t GetIndexCount() const;
27 
28  void SetFaceCount(const uint32_t &new_count);
29  void SetIndexCount(const uint32_t &new_count);
30 
31  void SetFaces(const std::vector<glm::uvec3> &faces);
32 
33  std::vector<glm::uvec3> &GetFaces();
34  const std::vector<glm::uvec3> &GetFaces() const;
35 
36  uint32_t *GetIndices();
37  const uint32_t *GetIndices() const;
38 
39  private:
41  std::vector<glm::tvec3<uint32_t>> faces_;
42  };
43 
44 }
45 #endif /* !COGS_TRIANGULATION_H */
Namespace of "Computer Graphic Structures" library, which implement many core classes and structures...
Definition: AabbHierarchy.h:8
A Triangulation is a vector of faces (triplets of indices from a point-cloud).
Definition: Triangulation.h:22