Remove oldFuse funcion

oldFuse is deprecated since OCC 7.3
This commit is contained in:
Andrea
2025-05-18 17:46:07 +02:00
committed by Benjamin Nauck
parent f30fba7adb
commit 81097bbaf1
4 changed files with 1 additions and 54 deletions

View File

@@ -699,28 +699,6 @@ PyObject* TopoShapePy::multiFuse(PyObject *args) const
return makeShape(Part::OpCodes::Fuse, *getTopoShapePtr(), args);
}
PyObject* TopoShapePy::oldFuse(PyObject *args) const
{
PyObject *pcObj;
if (!PyArg_ParseTuple(args, "O!", &(TopoShapePy::Type), &pcObj))
return nullptr;
TopoDS_Shape shape = static_cast<TopoShapePy*>(pcObj)->getTopoShapePtr()->getShape();
try {
// Let's call algorithm computing a fuse operation:
TopoDS_Shape fusShape = this->getTopoShapePtr()->oldFuse(shape);
return new TopoShapePy(new TopoShape(fusShape));
}
catch (Standard_Failure& e) {
PyErr_SetString(PartExceptionOCCError, e.GetMessageString());
return nullptr;
}
catch (const std::exception& e) {
PyErr_SetString(PartExceptionOCCError, e.what());
return nullptr;
}
}
PyObject* TopoShapePy::common(PyObject *args) const
{
return makeShape(Part::OpCodes::Common, *getTopoShapePtr(), args);