Limit retries for boolean op on OCCT 6.9 and higher

This commit is contained in:
Thomas Krijnen
2017-04-25 12:43:29 +02:00
parent 00c70fa8fb
commit d713b7e06a
+4 -1
View File
@@ -2554,7 +2554,10 @@ bool IfcGeom::Kernel::boolean_operation(const TopoDS_Shape& a, const TopTools_Li
}
delete builder;
if (!success) {
return boolean_operation(a, b, op, result, fuzziness * 10.);
const double new_fuzziness = fuzziness * 10.;
if (new_fuzziness + 1e-15 <= getValue(GV_PRECISION) * 1000.) {
return boolean_operation(a, b, op, result, new_fuzziness);
}
}
return success;
}