Commit 3b457f95 authored by Nicolas Mellado's avatar Nicolas Mellado

Add Mesh::setFrom method

parent 0695db91
......@@ -141,6 +141,7 @@ public:
inline faceIterator faceEnd();
inline GLTri3DMesh();
inline void setFrom(const GLTri3DMesh& input);
inline void initVBO(bool initForPicking = true);
inline void clearVBO();
inline void draw();
......
......@@ -181,6 +181,12 @@ GLTri3DMesh::GLTri3DMesh()
}
void GLTri3DMesh::setFrom(const GLTri3DMesh &input){
_init = false;
_faces = input._faces;
_vertices = input._vertices;
}
void GLTri3DMesh::addFace(const std::vector<Vertex> &vertices){
assert(vertices.size() == 3);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment