Part: Enable BSpline creation from poles

This commit is contained in:
Abdullah Tahiri 2017-01-07 02:00:12 +01:00
parent cb687b8e74
commit 8ea8699d14

View File

@ -71,7 +71,16 @@ int BSplineCurvePy::PyInit(PyObject* args, PyObject* /*kwd*/)
return 0;
}
PyObject* obj;
// poles, [ periodic, degree, interpolate ]
obj = buildFromPoles(args);
if (obj != 0)
return 0;
PyErr_SetString(PyExc_TypeError, "B-Spline constructor accepts:\n"
"-- poles, [ periodic, degree, interpolate ]\n"
"-- empty parameter list\n");
return -1;
}