~ubuntu-branches/debian/sid/pyx/sid

« back to all changes in this revision

Viewing changes to gallery/path/knot.txt

  • Committer: Bazaar Package Importer
  • Author(s): Stuart Prescott
  • Date: 2011-05-20 00:13:52 UTC
  • mto: (9.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20110520001352-odcuqpdezuusbbw1
Tags: upstream-0.11.1
ImportĀ upstreamĀ versionĀ 0.11.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Paths with constant distance
 
2
 
 
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. ...
 
6
 
 
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.
 
10
 
 
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.
 
14
 
 
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.