generate non-overlapping groups

This commit is contained in:
Trammell Hudson 2014-12-31 13:08:54 +01:00
parent b48577c66c
commit 5a7f39067d

View File

@ -488,6 +488,9 @@ printf("</g>\n");
} }
/* Returns the angle between two triangles that share one edge.
* This allows for a coplanarity check.
*/
int int
coplanar_check( coplanar_check(
const stl_face_t * const f1, const stl_face_t * const f1,
@ -520,7 +523,7 @@ coplanar_check(
float dot = v3_dot(dx31, cross); float dot = v3_dot(dx31, cross);
int check = -EPS < dot && dot < +EPS; int check = -EPS < dot && dot < +EPS;
//fprintf( stderr, "%p %p %s\n", f1, f2, check ? "yes" : "no"); fprintf( stderr, "%p %p %s: %f\n", f1, f2, check ? "yes" : "no", dot);
return check; return check;
} }