0022867: EDF GEOM: Regression with MakeFace

This commit is contained in:
vsr 2015-02-17 17:24:29 +03:00
parent f1efea0146
commit 7cb44e9fe0

View File

@ -175,7 +175,7 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(TFunction_Logbook& log) const
Standard_NullObject::Raise Standard_NullObject::Raise
("Shape for face construction is not closed"); ("Shape for face construction is not closed");
} }
else if (aShapeBase.ShapeType() == TopAbs_EDGE && aShapeBase.Closed()) { else if (aShapeBase.ShapeType() == TopAbs_EDGE && BRep_Tool::IsClosed(aShapeBase)) {
BRepBuilderAPI_MakeWire MW; BRepBuilderAPI_MakeWire MW;
MW.Add(TopoDS::Edge(aShapeBase)); MW.Add(TopoDS::Edge(aShapeBase));
if (!MW.IsDone()) { if (!MW.IsDone()) {