From 3336102b4631d15bfc621c65661c77b946b2de97 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 31 Jan 2012 17:30:46 +0000 Subject: [PATCH] No longer warn about 'empty' halfspace solids --- src/ifcgeom/IfcGeomShapes.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ifcgeom/IfcGeomShapes.cpp b/src/ifcgeom/IfcGeomShapes.cpp index e7b46c6b1c..47f5b134f9 100644 --- a/src/ifcgeom/IfcGeomShapes.cpp +++ b/src/ifcgeom/IfcGeomShapes.cpp @@ -164,9 +164,11 @@ bool IfcGeom::convert(const Ifc2x3::IfcBooleanClippingResult::ptr l, TopoDS_Shap return true; } - const float second_operand_volume = shape_volume(s2); - if ( second_operand_volume <= ALMOST_ZERO ) - Ifc::LogMessage("warning","Empty solid for:",l->SecondOperand()->entity); + if ( ! l->SecondOperand()->is(Ifc2x3::Type::IfcHalfSpaceSolid) ) { + const float second_operand_volume = shape_volume(s2); + if ( second_operand_volume <= ALMOST_ZERO ) + Ifc::LogMessage("warning","Empty solid for:",l->SecondOperand()->entity); + } shape = BRepAlgoAPI_Cut(s1,s2);