Removed some unused code
This commit is contained in:
parent
bef26b4580
commit
8f1e48a7c4
2 changed files with 5 additions and 24 deletions
|
|
@ -190,7 +190,7 @@ void CSGProducts::import(shared_ptr<CSGNode> csgnode, OpenSCADOperator type, CSG
|
|||
}
|
||||
}
|
||||
|
||||
std::string CSGProduct::dump(bool full) const
|
||||
std::string CSGProduct::dump() const
|
||||
{
|
||||
std::stringstream dump;
|
||||
dump << this->intersections.front().leaf->label;
|
||||
|
|
@ -202,14 +202,6 @@ std::string CSGProduct::dump(bool full) const
|
|||
BOOST_FOREACH(const CSGChainObject &csgobj, this->subtractions) {
|
||||
dump << " -" << csgobj.leaf->label;
|
||||
}
|
||||
|
||||
// FIXME:
|
||||
// if (full) {
|
||||
// dump << " polyset: \n" << obj.geom->dump() << "\n";
|
||||
// dump << " matrix: \n" << obj.matrix.matrix() << "\n";
|
||||
// dump << " color: \n" << obj.color << "\n";
|
||||
// }
|
||||
|
||||
return dump.str();
|
||||
}
|
||||
|
||||
|
|
@ -226,12 +218,12 @@ BoundingBox CSGProduct::getBoundingBox() const
|
|||
return bbox;
|
||||
}
|
||||
|
||||
std::string CSGProducts::dump(bool full) const
|
||||
std::string CSGProducts::dump() const
|
||||
{
|
||||
std::stringstream dump;
|
||||
|
||||
BOOST_FOREACH(const CSGProduct &product, this->products) {
|
||||
dump << "+" << product.dump(full) << "\n";
|
||||
dump << "+" << product.dump() << "\n";
|
||||
}
|
||||
return dump.str();
|
||||
}
|
||||
|
|
@ -242,17 +234,6 @@ BoundingBox CSGProducts::getBoundingBox() const
|
|||
BOOST_FOREACH(const CSGProduct &product, this->products) {
|
||||
bbox.extend(product.getBoundingBox());
|
||||
}
|
||||
|
||||
/* BOOST_FOREACH(const CSGChainObject &obj, this->objects) {
|
||||
if (obj.type != OPENSCAD_DIFFERENCE) {
|
||||
if (obj.geom) {
|
||||
BoundingBox psbox = obj.geom->getBoundingBox();
|
||||
if (!psbox.isNull()) {
|
||||
bbox.extend(obj.matrix * psbox);
|
||||
}
|
||||
}
|
||||
}
|
||||
} */
|
||||
return bbox;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ public:
|
|||
CSGProduct() {}
|
||||
~CSGProduct() {}
|
||||
|
||||
std::string dump(bool full = false) const;
|
||||
std::string dump() const;
|
||||
BoundingBox getBoundingBox() const;
|
||||
|
||||
std::vector<CSGChainObject> intersections;
|
||||
|
|
@ -113,7 +113,7 @@ public:
|
|||
~CSGProducts() {}
|
||||
|
||||
void import(shared_ptr<CSGNode> csgtree, OpenSCADOperator type = OPENSCAD_UNION, CSGNode::Flag flags = CSGNode::FLAG_NONE);
|
||||
std::string dump(bool full = false) const;
|
||||
std::string dump() const;
|
||||
BoundingBox getBoundingBox() const;
|
||||
|
||||
std::vector<CSGProduct> products;
|
||||
|
|
|
|||
Loading…
Reference in a new issue