SplineSurface.cpp 379 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
#include "SplineSurface.h"

SplineSurface::SplineSurface(std::vector<glm::vec3> cpoints, int numSamplesX,
                             int numSamplesY)
    : m_controlPoints(std::move(cpoints)) {}

const std::vector<glm::vec3>& SplineSurface::getVertices() {
    return m_vertices;
}
const std::vector<glm::vec3>& SplineSurface::getControlPoints() {
    return m_controlPoints;
}