0000895: Part.BSplineCurve: allow to set degree and mutliplicites when calling constructor.

This commit is contained in:
wmayer
2013-10-27 12:56:05 +01:00
parent 8aac094b06
commit a4b51145f2
2 changed files with 24 additions and 3 deletions

View File

@@ -904,7 +904,7 @@ PyObject* BSplineCurvePy::buildFromPolesMultsKnots(PyObject *args, PyObject *key
Base::Vector3d pnt = v.toVector();
occpoles(index++) = gp_Pnt(pnt.x,pnt.y,pnt.z);
}
//Calculate ne number of knots
//Calculate the number of knots
if (mults != Py_None && knots != Py_None) {
number_of_knots = PyObject_Length(mults);
if (PyObject_Length(knots) != number_of_knots) {
@@ -1006,8 +1006,8 @@ PyObject* BSplineCurvePy::buildFromPolesMultsKnots(PyObject *args, PyObject *key
Standard_CString msg = e->GetMessageString();
PyErr_SetString(PyExc_Exception, msg ? msg : "");
return 0;
}
}
}
PyObject* BSplineCurvePy::toBezier(PyObject *args)