From f95ad29c7aed552b9cb1d3071ce6b75ed632bb08 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Thu, 19 Jan 2017 10:42:03 +0100 Subject: [PATCH] Extra check for single-face IfcConnectedFaceSets. Fixes #181. --- src/ifcgeom/IfcGeomFunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcgeom/IfcGeomFunctions.cpp b/src/ifcgeom/IfcGeomFunctions.cpp index 2e6e501771..aeb20536c0 100644 --- a/src/ifcgeom/IfcGeomFunctions.cpp +++ b/src/ifcgeom/IfcGeomFunctions.cpp @@ -173,7 +173,7 @@ bool IfcGeom::Kernel::create_solid_from_faces(const TopTools_ListOfShape& face_l try { builder.Perform(); shape = builder.SewedShape(); - valid_shell = BRepCheck_Analyzer(shape).IsValid() != 0; + valid_shell = BRepCheck_Analyzer(shape).IsValid() != 0 && count(shape, TopAbs_SHELL) > 0; } catch (...) {} if (valid_shell) {