We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3840bd1 commit bf4b592Copy full SHA for bf4b592
src/ifcgeom/IfcGeomFaces.cpp
@@ -106,6 +106,11 @@
106
bool IfcGeom::Kernel::convert(const IfcSchema::IfcFace* l, TopoDS_Shape& face) {
107
IfcSchema::IfcFaceBound::list::ptr bounds = l->Bounds();
108
109
+ // Fail on this early as it can cause issues later on
110
+ if (bounds->size() == 0) {
111
+ return false;
112
+ }
113
+
114
Handle(Geom_Surface) face_surface;
115
const bool is_face_surface = l->is(IfcSchema::Type::IfcFaceSurface);
116
0 commit comments