/* See {Square.h} */ #include /* Last edited on 2007-02-03 23:05:11 by stolfi */ #define Square_C_COPYRIGHT \ "Copyright © 2000,2007 Universidade Estadual de Campinas (UNICAMP)" #include #include #include #include #include #include Place_t MakeSquare() { Place_t a = WedgeBase(MakeWedge()); Place_t b = WedgeBase(MakeWedge()); Place_t c = WedgeBase(MakeWedge()); Place_t d = WedgeBase(MakeWedge()); Wall_t f = PWall(a); Node_t u = MakeNode(0); Node_t v = MakeNode(1); Node_t w = MakeNode(2); Node_t x = MakeNode(3); PWedge(a)->num = 0; SetOrg(a, u); SetOrg(Clock(a),v); PWedge(b)->num = 0; SetNextE(a,b); SetWallInfo(b,f); SetOrg(b,v); SetOrg(Clock(b),w); PWedge(c)->num = 0; SetNextE(b,c); SetWallInfo(c,f); SetOrg(c, w); SetOrg(Clock(c), x); PWedge(d)->num = 0; SetNextE(c,d); SetWallInfo(d,f); SetOrg(d, x); SetOrg(Clock(d), OrgV(a)); return a; } #define Square_C_author \ "Created by L. A. P. Lozada, 2000."