1
Creating paths with MetaPost-like parameters
3
Some simple paths are created by prescribing five points on the path. The
4
curves between them are automatically chosen such that the result looks smooth. ...
6
Instead of constructing paths from their path elements, where all control
7
points must be given explicitly, we here specify only five points which must
8
lie on the path. The remaining control points are then internally determined by
9
the constraint that the curve should look smooth.
11
In the first curve, the geometrical constraints are the following. The three
12
interior points have a continuous tangent and a continuous curvature. The two
13
end points demand a curvature not too different from that at their neighbor
14
(second/fourth point).
16
For the closed curve, all points are of the continuous type.
18
! The algorithm for calculating the curves comes from MetaPost. In the syntax
19
of MetaPost, the above example corresponds to the commands
21
draw((0,0)..(2,1.33)..(1.3,3)..(0.33,2.33)..(1,1.67));
22
draw((0,0)..(2,1.33)..(1.3,3)..(0.33,2.33)..(1,1.67)..cycle);