summaryrefslogtreecommitdiff
path: root/src/csgterm.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-08-18 16:28:39 (GMT)
committerMarius Kintel <marius@kintel.net>2012-08-18 16:28:39 (GMT)
commitd3a53dd546358da51f15fa2fb7d24919235d3256 (patch)
tree2b8aae821ded9a6afd713ce9814270fdf6e1667b /src/csgterm.cc
parentd87dd4821561fffec4d875a7f584fc25100b8d75 (diff)
parent42043dd97d8902c50dbd0b4ed4bde22b0104c88c (diff)
Merge pull request #178 from openscad/issue177
maintain order of polygons in evaluateCGALMesh to fix issue 177. add opt...
Diffstat (limited to 'src/csgterm.cc')
-rw-r--r--src/csgterm.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/csgterm.cc b/src/csgterm.cc
index 4e6912b..8b0c8a4 100644
--- a/src/csgterm.cc
+++ b/src/csgterm.cc
@@ -178,7 +178,7 @@ void CSGChain::import(shared_ptr<CSGTerm> term, CSGTerm::type_e type)
}
}
-std::string CSGChain::dump()
+std::string CSGChain::dump(bool full=false)
{
std::stringstream dump;
@@ -193,6 +193,11 @@ std::string CSGChain::dump()
else if (types[i] == CSGTerm::TYPE_INTERSECTION)
dump << " *";
dump << labels[i];
+ if (full) {
+ dump << " polyset: \n" << polysets[i]->dump() << "\n";
+ dump << " matrix: \n" << matrices[i].matrix() << "\n";
+ dump << " color: \n" << colors[i] << "\n";
+ }
}
dump << "\n";
return dump.str();
contact: Jan Huwald // Impressum