void Foam::CV2D::external_flip(Face_handle& f, int i) { Face_handle n = f->neighbor(i); if ( CGAL::ON_POSITIVE_SIDE != side_of_oriented_circle(n, f->vertex(i)->point()) ) return; flip(f, i); i = n->index(f->vertex(i)); external_flip(n, i); }
void Foam::CV2D::fast_restore_Delaunay(Vertex_handle vh) { int i; Face_handle f = vh->face(), next, start(f); do { i=f->index(vh); if (!is_infinite(f)) { if (!internal_flip(f, cw(i))) external_flip(f, i); if (f->neighbor(i) == start) start = f; } f = f->neighbor(cw(i)); } while (f != start); }