From 4f280b13347953a4781de9cbcba39f6e9d4e98a7 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 12 Jun 2018 16:15:28 +0200 Subject: [PATCH] higher fuzz on half spaces --- src/ifcgeom/IfcGeomShapes.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ifcgeom/IfcGeomShapes.cpp b/src/ifcgeom/IfcGeomShapes.cpp index b3c09014f2..579d886a1b 100644 --- a/src/ifcgeom/IfcGeomShapes.cpp +++ b/src/ifcgeom/IfcGeomShapes.cpp @@ -549,7 +549,12 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcBooleanResult* l, TopoDS_Shape return false; } +#if OCC_VERSION_HEX < 0x60900 bool valid_result = boolean_operation(s1, s2, occ_op, shape); +#else + const double fuzz = is_halfspace ? getValue(GV_PRECISION) * 10. : -1.; + bool valid_result = boolean_operation(s1, s2, occ_op, shape, fuzz); +#endif if (op == IfcSchema::IfcBooleanOperator::IfcBooleanOperator_DIFFERENCE) { // In case of a subtraction, a check on volume is performed.