diff options
Diffstat (limited to 'src/csgterm.cc')
-rw-r--r-- | src/csgterm.cc | 10 |
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; +} |