Skip to content

Commit

Permalink
Part: Enable BSpline creation from poles
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullahtahiriyo committed Jan 7, 2017
1 parent cb687b8 commit 8ea8699
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Mod/Part/App/BSplineCurvePyImp.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8ea8699

Please sign in to comment.