X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=moebius2.git;a=blobdiff_plain;f=mgraph.h;h=3995d463ed0bda1160791fa997d2da40fde6ea66;hp=24b02dc97318d6e8fc76316cac21f659ae90a3fd;hb=2a4bf2376456c0650ffea5d89e4b4cf4763af1ad;hpb=62710d55de09f02e31a9fc2cc7e3ec5de44651e4 diff --git a/mgraph.h b/mgraph.h index 24b02dc..3995d46 100644 --- a/mgraph.h +++ b/mgraph.h @@ -35,18 +35,12 @@ * * We label edges as follows: * - * \0 /1 + * e: \2 /1 * \ / * ___ 0 __ - * 2 1 3 + * 3 1 0 * / \ * 4/ 5\ - * - * (This numbering permits the order-4 nodes at the strip's edge - * to have a contiguous edge numbering 2..5 or 0..3.) - * - * When we iterate over edges, we iterate first over vertices and then - * over edges 0 to 2, disregarding edges 3 to 5. */ #ifndef MGRAPH_H @@ -69,16 +63,15 @@ #define Y1 (1 << YSHIFT) #define YMASK ((Y-1) << YSHIFT) +#define DIM (N*D3) + #define V6 6 #define FOR_VERTEX(v) \ for ((v)=0; (v)