mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Fail on empty face early
This commit is contained in:
@@ -106,6 +106,11 @@
|
|||||||
bool IfcGeom::Kernel::convert(const IfcSchema::IfcFace* l, TopoDS_Shape& face) {
|
bool IfcGeom::Kernel::convert(const IfcSchema::IfcFace* l, TopoDS_Shape& face) {
|
||||||
IfcSchema::IfcFaceBound::list::ptr bounds = l->Bounds();
|
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;
|
Handle(Geom_Surface) face_surface;
|
||||||
const bool is_face_surface = l->is(IfcSchema::Type::IfcFaceSurface);
|
const bool is_face_surface = l->is(IfcSchema::Type::IfcFaceSurface);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user