From c8202e38ad34a4daaf957e1e2f6272cb4384eb32 Mon Sep 17 00:00:00 2001 From: tomate44 Date: Sun, 6 Dec 2020 15:33:20 +0100 Subject: [PATCH] Part: add default values to GeomSurface.toBSpline() --- src/Mod/Part/App/GeometrySurfacePyImp.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/Part/App/GeometrySurfacePyImp.cpp b/src/Mod/Part/App/GeometrySurfacePyImp.cpp index 1866ae0d33..8caa982058 100644 --- a/src/Mod/Part/App/GeometrySurfacePyImp.cpp +++ b/src/Mod/Part/App/GeometrySurfacePyImp.cpp @@ -707,10 +707,10 @@ Py::String GeometrySurfacePy::getContinuity(void) const PyObject* GeometrySurfacePy::toBSpline(PyObject * args) { - double tol3d; - char *ucont, *vcont; - int maxDegU,maxDegV,maxSegm,prec=0; - if (!PyArg_ParseTuple(args, "dssiii|i",&tol3d,&ucont,&vcont, + double tol3d=Precision::Confusion(); + char *ucont="G2", *vcont="G2"; + int maxDegU=25,maxDegV=25,maxSegm=1e5,prec=0; + if (!PyArg_ParseTuple(args, "|dssiiii",&tol3d,&ucont,&vcont, &maxDegU,&maxDegV,&maxSegm,&prec)) return 0;