Extra check for single-face IfcConnectedFaceSets. Fixes #181.

This commit is contained in:
Thomas Krijnen
2017-01-19 10:42:03 +01:00
parent 93c2f93c44
commit f95ad29c7a
+1 -1
View File
@@ -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) {