/* See {Square.h} */ #include /* Last edited on 2007-01-27 14:51:00 by stolfi */ #define Square_C_COPYRIGHT \ "Copyright © 2000,2007 Universidade Estadual de Campinas (UNICAMP)" #include #include #include #include #include #include #include Place_t MakeSquare() { Place_t a = MakeWedge(); Place_t b = MakeWedge(); Place_t c = MakeWedge(); Place_t d = MakeWedge(); Wall_t f = PWall(a); Node_t u = MakeNode(); Node_t v = MakeNode(); Node_t w = MakeNode(); Node_t x = MakeNode(); 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."