DISABLE_OPENING_SUBTRACTIONS and DISABLE_OBJECT_PLACEMENT settings for create_shape() / create_brep_data()

This commit is contained in:
Thomas Krijnen
2014-04-17 10:50:42 +02:00
parent a4c3fdfd18
commit d91e5d31f6
3 changed files with 17 additions and 11 deletions
+5 -2
View File
@@ -91,15 +91,18 @@ namespace IfcParse {
return f;
}
std::string create_shape(IfcParse::IfcUntypedEntity* e) {
std::string create_shape(IfcParse::IfcUntypedEntity* e, unsigned int settings = 0) {
if (!e->is(IfcSchema::Type::IfcProduct)) throw IfcException("Entity is not an IfcProduct");
IfcSchema::IfcProduct* ifc_product = (IfcSchema::IfcProduct*) e;
return IfcGeom::create_brep_data(ifc_product);
return IfcGeom::create_brep_data(ifc_product, settings);
}
void clean() {
IfcGeom::Cache::Purge();
}
const int DISABLE_OPENING_SUBTRACTIONS = 1 << 0;
const int DISABLE_OBJECT_PLACEMENT = 1 << 1;
}
std::ostream& operator<< (std::ostream& os, const IfcParse::IfcFile& f);