From 3b16fdafd2235e8bcaec0c2be06949f61bc4047d Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Tue, 6 Sep 2011 18:31:05 +0200 Subject: added some debug output diff --git a/tests/opencsgtest.cc b/tests/opencsgtest.cc index ebcfdd3..72f7488 100644 --- a/tests/opencsgtest.cc +++ b/tests/opencsgtest.cc @@ -155,9 +155,8 @@ int main(int argc, char *argv[]) return 1; } - csgInfo.root_norm_term = root_raw_term->link(); - // CSG normalization + csgInfo.root_norm_term = root_raw_term->link(); while (1) { CSGTerm *n = csgInfo.root_norm_term->normalize(); csgInfo.root_norm_term->unlink(); @@ -170,6 +169,7 @@ int main(int argc, char *argv[]) csgInfo.root_chain = new CSGChain(); csgInfo.root_chain->import(csgInfo.root_norm_term); + fprintf(stderr, "Normalized CSG tree has %d elements\n", csgInfo.root_chain->polysets.size()); if (csgInfo.highlight_terms.size() > 0) { cerr << "Compiling highlights (" << csgInfo.highlight_terms.size() << " CSG Trees)...\n"; -- cgit v0.10.1