fix Triangle debug output

This commit is contained in:
Hannes Janetzek 2013-03-11 16:13:30 +01:00
parent cd54f0dfe6
commit 8bd4d8e4d9

View File

@ -193,6 +193,10 @@ jint Java_org_oscim_jni_TriangleJNI_triangulate(JNIEnv *env, jclass c,
for (int j = 0; j < in.numberofsegments; j++, seg += 2)
printf("%d %d %d\n", j, *seg, *(seg+1));
for (int j = 0; j < in.numberofholes; j++) {
printf("%d %f %f\n", j, in.holelist[j*2], in.holelist[j*2+1]);
}
if (0) {
free(in.segmentlist);
free(in.holelist);
@ -247,9 +251,6 @@ jint Java_org_oscim_jni_TriangleJNI_triangulate(JNIEnv *env, jclass c,
in.numberofpoints--;
}
for (int j = 0; j < in.numberofholes; j++) {
printf("%d %f %f\n", j, in.holelist[j*2], in.holelist[j*2+1]);
}
}
#ifdef TESTING