add a cyclic link example
[PyX/mjg.git] / gallery / path / knot.txt
blob3aaea3b07a33bef0b260a84c74455e1ba7d0e5b2
1 Paths with constant distance
3 The example shows how to create paths with constant distance. This is achieved
4 with the aid of `deformer.parallel`, which has already been used in the above
5 example. ...
7 The first part of the example code is only for creating the middle line of the
8 knot. In order to obtain a nicely curved rope, we smooth the such defined curve
9 a bit.
11 The individual parts of the knot must be stroked in a very specific way in
12 order to achieve the correct overlapping of the knot. To this end, we split the
13 base curve into five pieces.
15 The key element of the example is the use of `deformer.parallel` which creates
16 the curves with constant distance from the base curve. We apply the deformer
17 four times, thus creating the outline path of two individual ropes, which
18 parallel follow the shape of the knot.