[Sketcher] Create DSH for drawing B-splines by interpolation

Only creates 1-degree splines by describing knots.

This commit is part of a project funded by the Open Toolchain Foundation under the title "Open Toolchain Foundation - Curve drawing tool in Sketcher Workbench"
This commit is contained in:
Ajinkya Dahale
2023-02-20 07:47:43 +05:30
committed by abdullahtahiriyo
parent 852fd2b5d5
commit fc05c6bae3
4 changed files with 530 additions and 4 deletions

View File

@@ -317,10 +317,14 @@ int ConstraintPy::PyInit(PyObject* args, PyObject* /*kwd*/)
valid = true;
if(strstr(ConstraintType,"BSplineControlPoint")) {
if (strstr(ConstraintType,"BSplineControlPoint")) {
this->getConstraintPtr()->AlignmentType=BSplineControlPoint;
}
else {
else if (strstr(ConstraintType,"BSplineKnotPoint")) {
this->getConstraintPtr()->AlignmentType=BSplineKnotPoint;
}
else
{
this->getConstraintPtr()->AlignmentType=Undef;
valid = false;
}