Add Face.OuterWire and mark Face.Wire as deprecated
This commit is contained in:
@@ -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<char*>("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())
|
||||
|
||||
Reference in New Issue
Block a user