44 #define MALLOC_46(x,t) (t *)malloc((x)*sizeof(t))
58 #define VEC_DOT_46(x,y) ((x)[X_46]*(y)[X_46] + (x)[Y_46]*(y)[Y_46] + (x)[Z_46]*(y)[Z_46])
60 #define FREE_46(x) if ((char *)(x) != NULL) free((char *)(x))
66 using namespace MNELIB;
77 a = MALLOC_46(s->ntri,
float);
78 b = MALLOC_46(s->ntri,
float);
79 c = MALLOC_46(s->ntri,
float);
80 act = MALLOC_46(s->ntri,
int);
82 for (
k = 0, tri = s->tris; k < s->ntri;
k++, tri++) {
83 a[
k] = VEC_DOT_46(tri->r12,tri->r12);
84 b[
k] = VEC_DOT_46(tri->r13,tri->r13);
85 c[
k] = VEC_DOT_46(tri->r12,tri->r13);