[metapost] buildcycle

js stock jsstockage at gmail.com
Sun Apr 18 16:39:22 CEST 2010

Dear MetaPost users,

  I'm having troubles with the buildcycle macro. I tried to look around, but
found nothing helpful. It's just a simple source where I'd like the
intersection of the two cycles to be filled. It seems nothing is filled, but
actually (you can see it if you comment the "draw p; draw q;" line), a very
tiny portion of the figure seems to be returned by "buildcycle".
Any help would be much appreciated!


numeric a,b,c,d;
a=.5in; b=.7in; c=.3in; d=.5in;
z1=-z3=(a,0); z2=-z4=(0,b);
path p,q;
q=p shifted (-1cm,0);
draw p;
draw q;
fill buildcycle(p,q) withcolor black;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/metapost/attachments/20100418/9de085f4/attachment.html>

More information about the metapost mailing list