0%

Bézier Curve

Curves

Hermite Curve

The parametric equation of curves is:

Derivate it:

Let $t=0$ and $t=1$, we get:

So, we take $P_0,P_0’,P_1,P_1’$ as:

so we get:

Thus,

After simplification:

Let $F_0(t)=2t^3-3t^2+1$, $F_1(t)=-2t^3+3t^2$, $G_0(t)=t^3-2t^2+t$, $G_1(t)=t^3-t^2$.

Let $M=\left[\begin{matrix}1&0&0&0\\0&0&1&0\\ -3&3& -2& -1 \\2& -2 &1&1\end{matrix}\right]$ , so we get: $P(t)=[1,t,t^2,t^3]M\left[\begin{matrix}1&0&0&0\\0&0&1&0\\ -3&3&-2&-1\\2&-2&1&1\end{matrix}\right]$

Bézier curve

The curve is defined by four points: the initial position and the terminating position i.e $P_0$ and $P_3$ respectively (which are called “anchors”) and two separate middle points i.e $P_1$ and $P_2$ (which are called “handles”) in our example.

Given distinct points $P_0$ and $P_1$, a linear Bézier curve is simply a straight line between those two points. The curve is given by

A quadratic Bézier curve is the path traced by the function $B(t)$, given points $P_0$, $P_1$, and $P_2$,

This can be written in a way that highlights the symmetry with respect to $P_1$:

Definition

给定空间 $n+1$ 个点的位置矢量 $P_i(i=0,1,2,…,n)$,则 Bézier 曲线可定义为:

where $B_{i,n}(t)$ is Bernstein basis polynomials of degree $n$ :