Andreas Matthias wrote: > clip1 = path.path( > path.moveto(0,0), > path.lineto(3,0)) > > clip2 = path.path( > path.moveto(3,0), > path.lineto(3,3)) > > clip3 = path.path( > path.moveto(3,3), > path.lineto(0,3)) > > clip4 = path.path( > path.moveto(0,3), > path.lineto(0,0)) > > clip = clip1+clip2+clip3+clip4 > > > Now path `clip' contains these unwanted moveto commands. But how > to remove them?
I have found a way: clip = clip1 clip.extend(clip2[1:len(clip2)]) clip.extend(clip3[1:len(clip3)]) clip.extend(clip4[1:len(clip4)]) Ciao Andreas ------------------------------------------------------------------------- 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
