* orientable so it shouldn't matter). Picking the parallelogram
* to our right avoids getting it wrong at the join.
*/
+//if ((vb & YMASK) > Y1) continue;
+//if ((vb & XMASK) > 2) continue;
for (e=0; e<V6; e++) ve[e]= EDGE_END2(vb,e);
assert(ve[0]>=0);
if (ve[5]>=0) addtriangle(vb,ve[0],ve[5]);
+//continue;
if (ve[1]>=0) addtriangle(vb,ve[1],ve[0]);
}
if (vertex_in_triangles[v] != expd) {
fprintf(stderr,"vertex %02x used for %d triangles, expected %d\n",
v, vertex_in_triangles[v], expd);
- abort();
+// abort();
}
}
vertex_in_triangles_checked= 1;
static int dl_compare(const void *tav, const void *tbv) {
int i;
const Triangle *const *tap= tav, *ta= *tap;
- const Triangle *const *tbp= tbp, *tb= *tbp;
+ const Triangle *const *tbp= tbv, *tb= *tbp;
double za=0, zb=0;
for (i=0; i<3; i++) {
za += ta->vertex[i][2];
int i;
for (i=0; i<3; i++) {
- double *v= t->vertex[i];
+ const double *v= t->vertex[i];
double x= v[0];
double y= v[1];
double z= v[2];