python: apply const method annotations to impls.

This commit is contained in:
Jacob Oursland
2025-04-16 20:29:19 -07:00
parent 7046f908f4
commit 5c251e73ac
69 changed files with 508 additions and 515 deletions

View File

@@ -188,7 +188,7 @@ Py::Object TopoShapeSolidPy::getOuterShell() const
return shape2pyshape(res);
}
PyObject* TopoShapeSolidPy::getMomentOfInertia(PyObject *args)
PyObject* TopoShapeSolidPy::getMomentOfInertia(PyObject *args) const
{
PyObject *p,*d;
if (!PyArg_ParseTuple(args, "O!O!",&Base::VectorPy::Type,&p
@@ -211,7 +211,7 @@ PyObject* TopoShapeSolidPy::getMomentOfInertia(PyObject *args)
}
}
PyObject* TopoShapeSolidPy::getRadiusOfGyration(PyObject *args)
PyObject* TopoShapeSolidPy::getRadiusOfGyration(PyObject *args) const
{
PyObject *p,*d;
if (!PyArg_ParseTuple(args, "O!O!",&Base::VectorPy::Type,&p
@@ -234,7 +234,7 @@ PyObject* TopoShapeSolidPy::getRadiusOfGyration(PyObject *args)
}
}
PyObject* TopoShapeSolidPy::offsetFaces(PyObject *args)
PyObject* TopoShapeSolidPy::offsetFaces(PyObject *args) const
{
PyObject *obj;
Standard_Real offset;