Option to disable boolean results (sets result to first operand)

This commit is contained in:
Thomas Krijnen
2020-11-24 16:58:05 +01:00
parent dd4902be18
commit b1c4481795
7 changed files with 35 additions and 2 deletions
+5
View File
@@ -604,6 +604,11 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcBooleanResult* l, TopoDS_Shape
return false;
}
if (getValue(GV_DISABLE_BOOLEAN_RESULT) > 0.0) {
shape = s1;
return true;
}
const double first_operand_volume = shape_volume(s1);
if (first_operand_volume <= ALMOST_ZERO) {
Logger::Message(Logger::LOG_WARNING, "Empty solid for:", l->FirstOperand());