29.11.2012 Views

MetaFun - Pragma ADE

MetaFun - Pragma ADE

MetaFun - Pragma ADE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

20<br />

The new (sub)path is a new path with its own points that start numbering at zero. The next graphic<br />

shows both the original and the subpath from point 1 upto 3.<br />

0<br />

4<br />

10<br />

32<br />

"(z0..z1..z2..z3..cycle)"<br />

"subpath(1,3)"<br />

Welcome to MetaPost Constructing paths<br />

21<br />

In spite of what you may think, a point is not fixed. This is why in METAPOST a point along a path is<br />

officially called a time. The next example demonstrates that we can specify any time on the path.<br />

0<br />

4<br />

2<br />

1<br />

31<br />

0<br />

2<br />

"(z0..z1..z2..z3..cycle)"<br />

"subpath(2.45,3.85)"<br />

Often we want to take a slice starting at a specific point. This is provided by cutafter and its<br />

companion cutbefore. Watch out, this time we use a non--cyclic path.<br />

0<br />

1<br />

3<br />

2<br />

"(z0..z1..z2..z3)"<br />

When you use cutafter and cutbefore it really helps if you know in what direction the path runs.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!