From f391b425baa5197e954799bcddab8bff42cf0906 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 6 Oct 2019 09:11:44 +0200 Subject: [PATCH] dilate as boolean --- src/ifcgeom/kernels/cgal/CgalKernel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcgeom/kernels/cgal/CgalKernel.cpp b/src/ifcgeom/kernels/cgal/CgalKernel.cpp index b14301762d..695333ef15 100644 --- a/src/ifcgeom/kernels/cgal/CgalKernel.cpp +++ b/src/ifcgeom/kernels/cgal/CgalKernel.cpp @@ -487,7 +487,7 @@ bool CgalKernel::preprocess_boolean_operand(const IfcUtil::IfcBaseClass* log_ref return false; } - if (false && dilate) { + if (dilate) { try { // @todo don't dilate in 3 dimensions but only in the XY plane, orthogonal to wall axis. result = CGAL::minkowski_sum_3(result, precision_cube_); @@ -571,7 +571,7 @@ bool CgalKernel::convert_impl(const taxonomy::boolean_result* br, ifcopenshell:: CGAL::Nef_polyhedron_3 nef; preprocess_boolean_operand(c->instance, entity_shape, nef, // Dilate boolean subtraction operands - (!first && br->operation == taxonomy::boolean_result::SUBTRACTION) ? precision_ : 0.); + (!first && br->operation == taxonomy::boolean_result::SUBTRACTION)); if (first) { a = nef;