mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Defensiveness against empty faces
This commit is contained in:
@@ -231,6 +231,9 @@ bool OpenCascadeKernel::convert(const taxonomy::sweep_along_curve::ptr scs, Topo
|
||||
} else {
|
||||
f0 = BRepBuilderAPI_MakeFace(w0).Face();
|
||||
f1 = BRepBuilderAPI_MakeFace(w1).Face();
|
||||
if (f0.IsNull() || f1.IsNull()) {
|
||||
return false;
|
||||
}
|
||||
mf0.reset(new BRepBuilderAPI_MakeFace(f0));
|
||||
mf1.reset(new BRepBuilderAPI_MakeFace(f1));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user