Simplified loop

This commit is contained in:
Jan Möbius
2023-08-23 09:10:03 +02:00
parent a18b0d8c5a
commit 785cdb2f91

View File

@@ -494,11 +494,8 @@ void PolyConnectivity::delete_vertex(VertexHandle _vh, bool _delete_isolated_ver
// delete collected faces // delete collected faces
std::vector<FaceHandle>::iterator fh_it(face_handles.begin()), for (auto delete_fh_it : face_handles)
fh_end(face_handles.end()); delete_face(delete_fh_it, _delete_isolated_vertices);
for (; fh_it!=fh_end; ++fh_it)
delete_face(*fh_it, _delete_isolated_vertices);
status(_vh).set_deleted(true); status(_vh).set_deleted(true);
} }