And another one

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@909 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2013-08-07 11:59:44 +00:00
parent daea181b2f
commit e30da7ea10
17 changed files with 155 additions and 157 deletions

View File

@@ -50,9 +50,9 @@ mesh.add_face(face_vhandles);
// Find this edge and then flip it
for(TriMesh::EdgeIter it = mesh.edges_begin(); it != mesh.edges_end(); ++it) {
if(!mesh.is_boundary(it.handle())) {
if(!mesh.is_boundary(*it)) {
// Flip edge
mesh.flip(it.handle());
mesh.flip(*it);
}
}
@@ -116,11 +116,11 @@ mesh.add_face(face_vhandles);
// and vhandle[3]
for(PolyMesh::HalfedgeIter it = mesh.halfedges_begin(); it != mesh.halfedges_end(); ++it) {
if(to_vertex_handle(it.handle()) == vhandle[3] &&
from_vertex_handle(it.handle()) == vhandle[2]) {
if(to_vertex_handle(*it) == vhandle[3] &&
from_vertex_handle(*it) == vhandle[2]) {
// Collapse edge
mesh.collapse(it.handle());
mesh.collapse(*it);
break;
}
}