/* See {Triangle.h} */ #include /* Last edited on 2007-01-25 14:00:41 by stolfi */ #define Triangle_C_COPYRIGHT \ "Copyright © 2000,2007 Universidade Estadual de Campinas (UNICAMP)" #include #include #include #include #include #include #include Place_t MakeTriangle(void) { Place_t a = MakeWedge(); Place_t b = MakeWedge(); Place_t c = MakeWedge(); Wall_t f = PWall(a); Node_t u = MakeNode(); Node_t v = MakeNode(); Node_t w = MakeNode(); SetOrg(a, u); SetOrg(Clock(a),v); SetNextE(a,b); SetWallInfo(b,f); SetOrg(b,v); SetOrg(Clock(b),w); SetNextE(b,c); SetWallInfo(c,f); SetOrg(c, w); SetOrg(Clock(c), OrgV(a)); return a; } #define Triangle_C_author \ "Created by L. A. P. Lozada, 2000.\n" \ "Modification history:\n" \ " 26-01-2007 Converted to C by J. Stolfi."