summaryrefslogtreecommitdiff
path: root/src/csgterm.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/csgterm.cc')
-rw-r--r--src/csgterm.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/csgterm.cc b/src/csgterm.cc
index 930a540..411cb12 100644
--- a/src/csgterm.cc
+++ b/src/csgterm.cc
@@ -229,3 +229,13 @@ QString CSGChain::dump()
return text;
}
+BoundingBox CSGChain::getBoundingBox() const
+{
+ BoundingBox bbox;
+ for (size_t i=0;i<polysets.size();i++) {
+ if (types[i] != CSGTerm::TYPE_DIFFERENCE) {
+ bbox.extend(polysets[i]->getBoundingBox());
+ }
+ }
+ return bbox;
+}
contact: Jan Huwald // Impressum