fixed a bug in Triangulation_2.h make_hole()

fixed a bug in Triangulation_default_data_structure_2.h remove_down(Vertex* v)
This commit is contained in:
Mariette Yvinec 1998-11-13 16:30:03 +00:00
parent 2bae6bfc58
commit 4c9ab0570b
2 changed files with 5 additions and 3 deletions

View File

@ -762,7 +762,7 @@ void make_hole ( Vertex_handle v, list<Edge> & hole)
in = fn->index(f);
vv = f->vertex(cw(i));
if( vv->face()== f) vv->set_face(fn);
vv = fc->vertex(ccw(i));
vv = f->vertex(ccw(i));
if( vv->face()== f) vv->set_face(fn);
fn->set_neighbor(in, NULL);
hole.push_back(Edge(fn,in));

View File

@ -475,8 +475,10 @@ public:
list<Face* > to_delete;
list<Face* > to_downgrade;
Face_iterator fit = faces_begin();
for( ; fit != faces_end(); fit++){
if ( ! fit->has_vertex(v) ) { to_delete.push_back(&(*fit));}
else { to_downgrade.push_back(&(*fit));}
}
list<Face*>::iterator lfit = to_downgrade.begin();
int j;