From: Ian Jackson Date: Mon, 31 Dec 2007 03:36:28 +0000 (+0000) Subject: new vertex numbering for project too X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=moebius2.git;a=commitdiff_plain;h=2a4bf2376456c0650ffea5d89e4b4cf4763af1ad new vertex numbering for project too --- diff --git a/project.c b/project.c index 266237f..1ce6db6 100644 --- a/project.c +++ b/project.c @@ -63,14 +63,14 @@ static void generate_display_list(void) { ntris= 0; FOR_VERTEX(vb) { - /* We use the two triangles in the parallelogram vb, vb+e1, vb+e0, vb+e2. + /* We use the two triangles in the parallelogram vb, vb+e0, vb+e1, vb+e2. * We go round each triangle clockwise (although our surface is non- * orientable so it shouldn't matter). */ for (e=0; e<3; e++) ve[e]= EDGE_END2(vb,e); - if (ve[0]>=0) { - if (ve[1]>=0) addtriangle(vb,ve[0],ve[1]); - if (ve[2]>=0) addtriangle(vb,ve[2],ve[0]); + if (ve[1]>=0) { + if (ve[0]>=0) addtriangle(vb,ve[0],ve[1]); + if (ve[2]>=0) addtriangle(vb,ve[1],ve[2]); } } }