summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-09-06 16:31:05 (GMT)
committerMarius Kintel <marius@kintel.net>2011-09-06 16:31:05 (GMT)
commit3b16fdafd2235e8bcaec0c2be06949f61bc4047d (patch)
tree9f09dbca56502ba5d12d65be6bc54d832dd97d12 /tests
parenta1e36876a57c9235c4fb808f65bac0652361d4d4 (diff)
added some debug output
Diffstat (limited to 'tests')
-rw-r--r--tests/opencsgtest.cc4
1 files changed, 2 insertions, 2 deletions
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";
contact: Jan Huwald // Impressum