Skip to content

Commit

Permalink
diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
camilleg committed Nov 23, 2021
1 parent fa35b0c commit ea9f37a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions si.c++
Original file line number Diff line number Diff line change
Expand Up @@ -224,15 +224,15 @@ bool init()
auto si2 = readSimplices(szFileSi, csi, csiAll);
if (!si2)
return false;
printf("old way counts: %d %d\n", csi, csiAll);
//printf("old way counts: %d %d\n", csi, csiAll);
sort_output(si2);

// callhull.c++ avoids tightly coupling hull.h to this file.
extern d_simplex* delaunay_tri(int, int, int&, int&);
si = delaunay_tri(d, cPoint, csi, csiAll);
if (!si)
return false;
printf("new way counts: %d %d\n", csi, csiAll);
//printf("new way counts: %d %d\n", csi, csiAll);
sort_output(si);

if (bcmp(si, si2, csiAll * sizeof(d_simplex)) != 0) {
Expand All @@ -246,7 +246,7 @@ bool init()
delete [] si2;
return false;
}
/*;; si=si2;*/ delete [] si2;
delete [] si2;
}

// printf("read %d true simplices, %d ray-simplices.\n", csi, csiAll-csi);
Expand Down

0 comments on commit ea9f37a

Please sign in to comment.