Commit 125bfeba authored by Matthias Möller's avatar Matthias Möller
Browse files

fix wrong count in the POLYGONS header

Thanks to Vladimir Chalupecky for the patch

closes #2038

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@18351 383ad7c9-94d9-4d36-a494-682f7c89f535
parent dc3f4dbf
......@@ -413,7 +413,7 @@ bool FileVTKPlugin::writeASCIIDataOfOpenMesh(std::ostream& _out, MeshT& _mesh )
typename MeshT::FaceIter end_fit = _mesh.faces_end();
typename MeshT::FaceVertexIter fvit;
int total_face_vertices = 0;
int total_face_vertices = _mesh.n_faces();
for (; fit != end_fit; ++fit) {
total_face_vertices += _mesh.valence(*fit);
}
......
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