29.11.2012 Views

MetaFun - Pragma ADE

MetaFun - Pragma ADE

MetaFun - Pragma ADE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

18<br />

0<br />

1<br />

The following path is a closed one, and crosses the previously shown path.<br />

3<br />

2<br />

0 1<br />

With buildcycle we can combine two paths into one.<br />

0<br />

3<br />

4<br />

1<br />

2<br />

"z0..z1..z2"<br />

Welcome to MetaPost Constructing paths<br />

2<br />

"z0..z3..z1..cycle"<br />

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

We would refer readers to the METAFONT book and the METAPOST manual for an explanation of the<br />

intricacies of the buildcycle command. It is an extremely complicated command, and there is<br />

just not enough room here to do it justice. We suffice with saying that the paths should cross at<br />

least once before the buildcycle command can craft a combined path from two given paths. We<br />

encourage readers to experiment with this command.<br />

In order to demonstrate another technique of joining paths, we first draw a few strange paths. The<br />

last of these three graphics demonstrates the use of softjoin.<br />

0<br />

1<br />

3<br />

2<br />

"z0--z1..z2--z3"

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

Saved successfully!

Ooh no, something went wrong!