Skip to content

Commit

Permalink
turns off debug for oct adapt to metric
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Park authored and Mike Park committed Oct 13, 2022
1 parent dbe71cf commit cada31e
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions src/ref_oct_test.c
Expand Up @@ -162,8 +162,8 @@ int main(int argc, char *argv[]) {
RXS(ref_args_find(argc, argv, "--adapt", &pos), REF_NOT_FOUND, "arg search");
if (pos != REF_EMPTY && pos + 3 < argc) {
REF_OCT ref_oct;
char tec[1024];
REF_INT nleaf;
REF_BOOL debug = REF_FALSE;

RSS(ref_oct_create(&ref_oct), "make oct");
{
Expand All @@ -190,15 +190,24 @@ int main(int argc, char *argv[]) {
}
RSS(ref_grid_free(ref_grid), "free grid");
}
snprintf(tec, 1024, "%s-raw.tec", argv[pos + 3]);

RSS(ref_oct_nleaf(ref_oct, &nleaf), "count leaves");
printf("writing %d vox to %s from %s\n", nleaf, tec, argv[pos + 3]);
RSS(ref_oct_tec(ref_oct, tec), "tec");
if (debug) {
char tec[1024];
snprintf(tec, 1024, "%s-raw.tec", argv[pos + 3]);
printf("writing %d vox to %s from %s\n", nleaf, tec, argv[pos + 3]);
RSS(ref_oct_tec(ref_oct, tec), "tec");
} else {
printf("raw vox %d\n", nleaf);
}
RSS(ref_oct_gradation(ref_oct), "grad");
snprintf(tec, 1024, "%s-grad.tec", argv[pos + 3]);
RSS(ref_oct_nleaf(ref_oct, &nleaf), "count leaves");
printf("writing %d vox to %s from %s\n", nleaf, tec, argv[pos + 3]);
RSS(ref_oct_tec(ref_oct, tec), "tec");
if (debug) {
char tec[1024];
snprintf(tec, 1024, "%s-grad.tec", argv[pos + 3]);
printf("writing %d vox to %s from %s\n", nleaf, tec, argv[pos + 3]);
RSS(ref_oct_tec(ref_oct, tec), "tec");
}
printf("writing %d vox to %s\n", nleaf, argv[pos + 3]);
{
REF_GRID ref_grid;
Expand Down

0 comments on commit cada31e

Please sign in to comment.