while -> for

This commit is contained in:
Nico Kruithof 2006-07-03 07:48:25 +00:00
parent fff18dbc49
commit 3590b460e8
1 changed files with 2 additions and 2 deletions

View File

@ -1080,9 +1080,9 @@ remove_small_edges()
// NGHK: This may intrudoce rounding errors, since the quadratic surface // NGHK: This may intrudoce rounding errors, since the quadratic surface
// may change: // may change:
Tmc_Vertex_handle vh, vh_collapse_to; Tmc_Vertex_handle vh, vh_collapse_to;
Tmc_Finite_vertices_iterator vit = _tmc.finite_vertices_begin();
int nCollapsed=0; int nCollapsed=0;
while (Tmc_Finite_vertices_iterator vit != _tmc.finite_vertices_end()) { for (Tmc_Finite_vertices_iterator vit = _tmc.finite_vertices_begin();
vit != _tmc.finite_vertices_end(); ) {
vh = vit; vh = vit;
vit++; vit++;
if (is_collapsible(vh, vh_collapse_to,sq_length)) { if (is_collapsible(vh, vh_collapse_to,sq_length)) {