| 1 |
\input preamble.tex |
| 2 |
|
| 3 |
% --------------------------------------------------------------------------- |
| 4 |
\begin{document} |
| 5 |
\begin{center} |
| 6 |
{\Huge \bf{Full Rational Quartic Bezier Curve}} |
| 7 |
\bigskip |
| 8 |
|
| 9 |
\begin{lapdf}(18,17.5)(-9,-8) |
| 10 |
\Setwidth(0.01) |
| 11 |
\Dash(1) |
| 12 |
\Polygon(-9,-6)(-8,+3)(+0,+8)(+8,+2)(+9,-6) \Stroke |
| 13 |
\Setwidth(0.02) |
| 14 |
\Dash(0) |
| 15 |
\Red |
| 16 |
\Rcurve(96)(-9,-6,+4)(-8,+3,+3)(+0,+8,+5)(8,+2,+3)(+9,-6,+4) \Stroke |
| 17 |
\Blue |
| 18 |
\Rcurve(96)(-9,-6,+4)(-8,+3,-3)(+0,+8,+5)(8,+2,-3)(+9,-6,+4) \Stroke |
| 19 |
\Black |
| 20 |
\Point(0)(-9,-6) |
| 21 |
\Point(1)(-8,+3) |
| 22 |
\Point(1)(+0,+8) |
| 23 |
\Point(1)(+8,+2) |
| 24 |
\Point(0)(+9,-6) |
| 25 |
\Text(-9.2,-5.8,tr){$P_0$} |
| 26 |
\Text(-8.2,+3.2,tr){$P_1$} |
| 27 |
\Text(+0.0,+8.2,bc){$P_2$} |
| 28 |
\Text(+8.2,+2.2,tl){$P_3$} |
| 29 |
\Text(+9.2,-5.8,tl){$P_4$} |
| 30 |
\end{lapdf} |
| 31 |
\end{center} |
| 32 |
\parskip0.2cm |
| 33 |
$P_1$ and $P_3$ of the blue curve have negative weights, but both curves |
| 34 |
share the same Bezier points and absolute weight values. Now we can see |
| 35 |
the complete Bezier curve. The proof for this needs some insight in |
| 36 |
projective geometry and it's rather involved, so I only give here the |
| 37 |
general rule for drawing complete rational Bezier curves: Make every odd |
| 38 |
weight negative and you'll get the complementary Bezier curve. |
| 39 |
|
| 40 |
You should notice that in this case the Bezier curve no longer lies in |
| 41 |
the convex hull of it's control polygon, because his is only holds if all |
| 42 |
weights are positive. It should also be mentioned that negative weights for |
| 43 |
other points can cause numerical problems, because the denominator can |
| 44 |
become zero. |
| 45 |
\end{document} |