Part: replace PyObject_IsTrue with Base::asBoolean

This commit is contained in:
wmayer
2022-07-16 13:31:10 +02:00
parent 9c9d053147
commit b6494085b4
38 changed files with 141 additions and 161 deletions

View File

@@ -103,7 +103,7 @@ int BuildPlateSurfacePy::PyInit(PyObject* args, PyObject* kwds)
try {
std::unique_ptr<GeomPlate_BuildPlateSurface> ptr(new GeomPlate_BuildPlateSurface
(degree, nbPtsOnCur, nbIter, tol2d, tol3d, tolAng, tolCurv,
PyObject_IsTrue(anisotropy) ? Standard_True : Standard_False));
Base::asBoolean(anisotropy)));
if (surf) {
GeomSurface* surface = static_cast<GeometrySurfacePy*>(surf)->getGeomSurfacePtr();