Commit e4dc82d7 authored by Matthias Möller's avatar Matthias Möller

OM3 iterators

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17228 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 3fdb7524
......@@ -143,7 +143,7 @@ int FileOMPlugin::loadObject(QString _filename) {
// Count number of vertices for the current face
uint count = 0;
for ( PolyMesh::FaceVertexIter fv_it( *(object->mesh()),f_it); fv_it; ++fv_it )
for ( PolyMesh::FaceVertexIter fv_it( *(object->mesh()),*f_it); fv_it.is_valid(); ++fv_it )
++count;
// Check if it is a triangle. If not, this is really a poly mesh
......@@ -175,7 +175,7 @@ int FileOMPlugin::loadObject(QString _filename) {
// Count number of vertices for the current face
uint count = 0;
for ( PolyMesh::FaceVertexIter fv_it( *(object->mesh()),f_it); fv_it; ++fv_it )
for ( PolyMesh::FaceVertexIter fv_it( *(object->mesh()),*f_it); fv_it.is_valid(); ++fv_it )
++count;
// Check if it is a triangle. If not, this is really a poly mesh
......@@ -425,7 +425,7 @@ void FileOMPlugin::backupTextureCoordinates(MeshT& _mesh) {
_mesh.add_property(oldVertexCoords, "Original Per Vertex Texture Coords");
for (typename MeshT::VertexIter v_it = _mesh.vertices_begin(); v_it != _mesh.vertices_end(); ++v_it)
_mesh.property(oldVertexCoords, v_it) = _mesh.texcoord2D(v_it);
_mesh.property(oldVertexCoords, *v_it) = _mesh.texcoord2D(*v_it);
}
......@@ -437,7 +437,7 @@ void FileOMPlugin::backupTextureCoordinates(MeshT& _mesh) {
_mesh.add_property(oldHalfedgeCoords,"Original Per Face Texture Coords");
for (typename MeshT::HalfedgeIter he_it = _mesh.halfedges_begin(); he_it != _mesh.halfedges_end(); ++he_it)
_mesh.property(oldHalfedgeCoords, he_it) = _mesh.texcoord2D(he_it);
_mesh.property(oldHalfedgeCoords, *he_it) = _mesh.texcoord2D(*he_it);
}
}
......
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