[Tex/LaTex] Draw non-uniform B-spline in Latex

tikz-pgf

I would like to draw the couple of spline curves in Latex. Is there anything I could use in tikz or other packages such that I could draw a spline curve by simply providing the control points value and knots vector?

Best Answer

The pgfmanual on CTAN describes curved path contructions in chapter 2.4 on page 31.

\begin{tikzpicture}
\filldraw [gray] (0,0) circle [radius=2pt]
(1,1) circle [radius=2pt]
(2,1) circle [radius=2pt]
(2,0) circle [radius=2pt];
\draw (0,0) .. controls (1,1) and (2,1) .. (2,0);
\end{tikzpicture}

enter image description here