Part: Add overloaded methods of GeomBSplineCurve::approximate

This commit is contained in:
wmayer
2024-04-03 10:43:06 +02:00
committed by wwmayer
parent e64af14325
commit 7a7c0081c3
4 changed files with 114 additions and 20 deletions

View File

@@ -828,8 +828,8 @@ PyObject* BSplineCurvePy::approximate(PyObject *args, PyObject *kwds)
else
c = GeomAbs_C2;
bool ok = this->getGeomBSplineCurvePtr()->approximate(tol3d, segMax, degMax, c);
return Py_BuildValue("O", (ok ? Py_True : Py_False));
this->getGeomBSplineCurvePtr()->approximate(tol3d, segMax, degMax, c);
Py_Return;
}
// Approximate a list of points