diff --git a/facetopology.c b/facetopology.c index b4fc8a75..a819fa3a 100644 --- a/facetopology.c +++ b/facetopology.c @@ -190,8 +190,10 @@ static int faceintersection(int *a1, int *a2, int *b1, int *b2) } -#define meaningful_face !((a1[i] ==INT_MIN) && (b1[j] ==INT_MIN)) && \ - !((a1[i+1]==INT_MAX) && (b1[j+1]==INT_MAX)) +#define meaningful_face(i,j) \ + !((a1[i] ==INT_MIN) && (b1[j] ==INT_MIN)) && \ + !((a1[i+1]==INT_MAX) && (b1[j+1]==INT_MAX)) + /* work should be pointer to 2n ints initialised to zero . */ void findconnections(int n, int *pts[4], @@ -220,13 +222,18 @@ void findconnections(int n, int *pts[4], /* for (i=0; i<2*n; work[i++]=-1); */ for (i = 0; i