mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
Extra check for single-face IfcConnectedFaceSets. Fixes #181.
This commit is contained in:
@@ -173,7 +173,7 @@ bool IfcGeom::Kernel::create_solid_from_faces(const TopTools_ListOfShape& face_l
|
|||||||
try {
|
try {
|
||||||
builder.Perform();
|
builder.Perform();
|
||||||
shape = builder.SewedShape();
|
shape = builder.SewedShape();
|
||||||
valid_shell = BRepCheck_Analyzer(shape).IsValid() != 0;
|
valid_shell = BRepCheck_Analyzer(shape).IsValid() != 0 && count(shape, TopAbs_SHELL) > 0;
|
||||||
} catch (...) {}
|
} catch (...) {}
|
||||||
|
|
||||||
if (valid_shell) {
|
if (valid_shell) {
|
||||||
|
|||||||
Reference in New Issue
Block a user