Skip to content

Commit e318575

Browse files
committed
[Qa] Attempt to escape runtime exceptions when OCC bails out generating a prism.
1 parent c4b39f4 commit e318575

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/ifcgeom/IfcGeomShapes.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,13 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcExtrudedAreaSolid* l, TopoDS_S
134134
}
135135

136136
if (shape.IsNull()) {
137-
shape = BRepPrimAPI_MakePrism(face, height*dir);
137+
try {
138+
shape = BRepPrimAPI_MakePrism(face, height*dir);
139+
}
140+
catch (const std::exception & e)
141+
{
142+
return (false);
143+
}
138144
}
139145

140146
shape.Move(trsf);

0 commit comments

Comments
 (0)