Commit 3f539b38 authored by Mike Kremer's avatar Mike Kremer

Clear output vector when querying a copy of the mesh's vertices.

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@215 66977474-1d4b-4f09-8fe9-267525286df2
parent 64992de3
......@@ -162,6 +162,7 @@ public:
}
void clone_vertices(std::vector<VecT>& _copy) const {
_copy.clear();
_copy.reserve(vertices_.size());
std::copy(vertices_.begin(), vertices_.end(), std::back_inserter(_copy));
}
......
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