[Sketcher] Add methods and tools for joining curves

Algorithm to join b-splines:
The code simple concatenates the knots, poles, weights, and knot multiplicities
together, removing data on the connection point of the second curve. Some
further study is needed to see if/when it will give an exact/good connection.

Icon courtesy @bitacovir.
This commit is contained in:
Ajinkya Dahale
2022-03-04 00:27:22 -05:00
committed by abdullahtahiriyo
parent f79c66dc33
commit 01866dfbfc
8 changed files with 795 additions and 2 deletions

View File

@@ -423,7 +423,8 @@ inline void SketcherAddWorkbenchBSplines<Gui::MenuItem>(Gui::MenuItem& bspline)
<< "Sketcher_BSplineDecreaseDegree"
<< "Sketcher_BSplineIncreaseKnotMultiplicity"
<< "Sketcher_BSplineDecreaseKnotMultiplicity"
<< "Sketcher_BSplineInsertKnot";
<< "Sketcher_BSplineInsertKnot"
<< "Sketcher_JoinCurves";
}
template <>
@@ -434,7 +435,8 @@ inline void SketcherAddWorkbenchBSplines<Gui::ToolBarItem>(Gui::ToolBarItem& bsp
<< "Sketcher_BSplineIncreaseDegree"
<< "Sketcher_BSplineDecreaseDegree"
<< "Sketcher_CompModifyKnotMultiplicity"
<< "Sketcher_BSplineInsertKnot";
<< "Sketcher_BSplineInsertKnot"
<< "Sketcher_JoinCurves";
}
template <typename T>