In the following example path `p' should be clipped by the
`clip' path, but `p' is missing as a whole. However, `p'
appears again if I delete one or two of the path.moveto
commands marked by <== in the `clip' path. What's going
on here? Why do these path.moveto commands disrupt the
clipping?
Ciao
Andreas
from pyx import *
clip = path.path(
path.moveto(0,0),
path.lineto(3,0),
path.moveto(3,0),# <==
path.lineto(3,3),
path.moveto(3,3),# <==
path.lineto(0,3),
path.lineto(0,0)
)
p = path.path(
path.moveto(-2,-1),
path.lineto(5,2)
)
c = canvas.canvas([canvas.clip(clip)])
c.stroke(p)
c.stroke(clip)
c.writeEPSfile("foo")
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user