bool Bface::get_quad_verts(Bvert*& a, Bvert*& b, Bvert*& c, Bvert*& d) const { // Return CCW verts a, b, c, d as in the picture, orienting // things so that the weak edge runs NE as shown: // // d ---------- c = w->v2() ^ // | / | | // | / | | // | w / | tan1 tan2 | // | / | --------> | // | / f | | // |/ | // a ---------- b // = w->v1() // if (!is_quad()) return 0; Bedge* w = weak_edge(); Bface* f = w->ccw_face(w->v2()); a = w->v1(); b = f->next_vert_ccw(a); c = w->v2(); d = f->quad_vert(); return true; }