Commit 91c92143 authored by Mike Kremer's avatar Mike Kremer
Browse files

Added clone and swap functions for vertex data.

git-svn-id: 66977474-1d4b-4f09-8fe9-267525286df2
parent 44f514b4
......@@ -161,6 +161,19 @@ public:
return p;
void cloneVertices(std::vector<VecT>& _copy) const {
std::copy(vertices_.begin(), vertices_.end(), std::back_inserter(_copy));
void swapVertices(std::vector<VecT>& _copy) {
if(_copy.size() != vertices_.size()) {
std::cerr << "Vertex vectors differ in size!" << std::endl;
std::swap(vertices_, _copy);
std::vector<VecT> vertices_;
Supports Markdown
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