[metapost] reverse clip operation

Andreas Matthias andreas.matthias at tuwien.ac.at
Wed Sep 20 14:09:58 CEST 2006


Taco Hoekwater wrote:

> Andreas Matthias wrote:
>> % now clipping the connection line
>> path clip_p;
>> clip_p := (-99u,-99u) -- (99u,-99u) -- (99u,99u) -- (-99u,99u) -- cycle
>>    -- p -- cycle;   
> 
> Almost there:
> 
>   clip_p := (-99u,-99u) -- (99u,-99u) -- (99u,99u) -- (-99u,99u)
>      -- p  --(-99u,99u)  -- cycle;
> 

Hmm... For me this yields the same result. I am confused. Did I
mess up something?

> Be warned that the postscript interpreter will leave a single-pixel
> line standing, though (because of the coincident paths).

Oh, thanks, I haven't thought about that.

Ciao
Andreas


More information about the metapost mailing list