#2095 take into account face-face distance on operand a

This commit is contained in:
Thomas Krijnen
2022-03-19 10:49:51 +01:00
parent 3fa8fce994
commit 8fa5873e7e
+3
View File
@@ -5224,10 +5224,13 @@ bool IfcGeom::Kernel::boolean_operation(const TopoDS_Shape& a_input, const TopTo
PERF("boolean operation: result min face-face dist check"); PERF("boolean operation: result min face-face dist check");
if ((v = min_face_face_distance(r, 1.e-4)) < 1.e-4) { if ((v = min_face_face_distance(r, 1.e-4)) < 1.e-4) {
// #2095 Check if this distance wasn't already realized in the input first operand.
if (v < min_face_face_distance(a, 1.e-4)) {
reason = 2; reason = 2;
success = false; success = false;
} }
} }
}
skip_further_checks: skip_further_checks:
if (!success) { if (!success) {