diff --git a/src/Mod/Part/App/TopoShapeFacePy.xml b/src/Mod/Part/App/TopoShapeFacePy.xml index f958d0440..8d18c4a04 100644 --- a/src/Mod/Part/App/TopoShapeFacePy.xml +++ b/src/Mod/Part/App/TopoShapeFacePy.xml @@ -84,10 +84,17 @@ - The Wire of this face + The outer wire of this face +deprecated -- please use OuterWire + + + The outer wire of this face + + + diff --git a/src/Mod/Part/App/TopoShapeFacePyImp.cpp b/src/Mod/Part/App/TopoShapeFacePyImp.cpp index ab03bb14c..5bf9d7be7 100644 --- a/src/Mod/Part/App/TopoShapeFacePyImp.cpp +++ b/src/Mod/Part/App/TopoShapeFacePyImp.cpp @@ -548,7 +548,22 @@ Py::Tuple TopoShapeFacePy::getParameterRange(void) const return t; } +// deprecated Py::Object TopoShapeFacePy::getWire(void) const +{ + try { + Py::Object sys_out(PySys_GetObject(const_cast("stdout"))); + Py::Callable write(sys_out.getAttr("write")); + Py::Tuple arg(1); + arg.setItem(0, Py::String("Warning: Wire is deprecated, please use OuterWire\n")); + write.apply(arg); + } + catch (const Py::Exception&) { + } + return getOuterWire(); +} + +Py::Object TopoShapeFacePy::getOuterWire(void) const { const TopoDS_Shape& clSh = getTopoShapePtr()->_Shape; if (clSh.IsNull())