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]);
}
}
}