fix Triangle debug output
This commit is contained in:
parent
cd54f0dfe6
commit
8bd4d8e4d9
@ -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)
|
for (int j = 0; j < in.numberofsegments; j++, seg += 2)
|
||||||
printf("%d %d %d\n", j, *seg, *(seg+1));
|
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) {
|
if (0) {
|
||||||
free(in.segmentlist);
|
free(in.segmentlist);
|
||||||
free(in.holelist);
|
free(in.holelist);
|
||||||
@ -247,9 +251,6 @@ jint Java_org_oscim_jni_TriangleJNI_triangulate(JNIEnv *env, jclass c,
|
|||||||
|
|
||||||
in.numberofpoints--;
|
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
|
#ifdef TESTING
|
||||||
|
Loading…
x
Reference in New Issue
Block a user