fix Triangle debug output

This commit is contained in:
Hannes Janetzek
2013-10-09 01:55:56 +02:00
parent cd54f0dfe6
commit 8bd4d8e4d9
+4 -3
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