Fail on empty face early

This commit is contained in:
Thomas Krijnen
2018-09-21 10:22:37 +02:00
parent 3840bd1154
commit bf4b5928dd
+5
View File
@@ -106,6 +106,11 @@
bool IfcGeom::Kernel::convert(const IfcSchema::IfcFace* l, TopoDS_Shape& face) {
IfcSchema::IfcFaceBound::list::ptr bounds = l->Bounds();
// Fail on this early as it can cause issues later on
if (bounds->size() == 0) {
return false;
}
Handle(Geom_Surface) face_surface;
const bool is_face_surface = l->is(IfcSchema::Type::IfcFaceSurface);