[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:
committed by
abdullahtahiriyo
parent
852fd2b5d5
commit
fc05c6bae3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user