SplineSurface.h 475 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef BEZIERSURFACE_H
#define BEZIERSURFACE_H

#include <glm/glm.hpp>
#include <memory>
#include <vector>

class SplineSurface {
  public:
    SplineSurface(std::vector<glm::vec3> cpoints, int numSamplesX,
                  int numSamplesY);

    const std::vector<glm::vec3>& getVertices();
    const std::vector<glm::vec3>& getControlPoints();

  protected:
    std::vector<glm::vec3> m_controlPoints;
    std::vector<glm::vec3> m_vertices;
};

#endif // BEZIERSURFACE_H