Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project!

## [PyX-checkins] pyx/examples circles.py,1.5,1.6

 [PyX-checkins] pyx/examples circles.py,1.5,1.6 From: Jörg Lehmann - 2004-08-29 19:35:45 ```Update of /cvsroot/pyx/pyx/examples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21980 Modified Files: circles.py Log Message: various fixes to examples due to new normpath constructor Index: circles.py =================================================================== RCS file: /cvsroot/pyx/pyx/examples/circles.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** circles.py 23 Feb 2004 16:29:54 -0000 1.5 --- circles.py 29 Aug 2004 19:35:35 -0000 1.6 *************** *** 1,15 **** from pyx import * ! circ1 = path.normpath(path.circle(0, 0, 1)) # you don't really need normpath, ! circ2 = path.normpath(path.circle(1, 1, 1)) # but its better to have it once ! # for those operations (circ1a, circ1b), (circ2a, circ2b) = circ1.intersect(circ2) intersection = (circ1.split([circ1a, circ1b])[0] << circ2.split([circ2b, circ2a])[0]) ! intersection.append(path.closepath()) union = (circ1.split([circ1a, circ1b])[1] << circ2.split([circ2b, circ2a])[1]) ! union.append(path.closepath()) c = canvas.canvas() --- 1,15 ---- from pyx import * ! circ1 = path.circle(0, 0, 1).normpath() # you don't really need normpath, ! circ2 = path.circle(1, 1, 1).normpath() # but its better to have it once ! # for those operations (circ1a, circ1b), (circ2a, circ2b) = circ1.intersect(circ2) intersection = (circ1.split([circ1a, circ1b])[0] << circ2.split([circ2b, circ2a])[0]) ! intersection[-1].close() union = (circ1.split([circ1a, circ1b])[1] << circ2.split([circ2b, circ2a])[1]) ! union[-1].close() c = canvas.canvas() ```

### Thread view

 [PyX-checkins] pyx/examples circles.py,1.5,1.6 From: Jörg Lehmann - 2004-08-29 19:35:45 ```Update of /cvsroot/pyx/pyx/examples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21980 Modified Files: circles.py Log Message: various fixes to examples due to new normpath constructor Index: circles.py =================================================================== RCS file: /cvsroot/pyx/pyx/examples/circles.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** circles.py 23 Feb 2004 16:29:54 -0000 1.5 --- circles.py 29 Aug 2004 19:35:35 -0000 1.6 *************** *** 1,15 **** from pyx import * ! circ1 = path.normpath(path.circle(0, 0, 1)) # you don't really need normpath, ! circ2 = path.normpath(path.circle(1, 1, 1)) # but its better to have it once ! # for those operations (circ1a, circ1b), (circ2a, circ2b) = circ1.intersect(circ2) intersection = (circ1.split([circ1a, circ1b])[0] << circ2.split([circ2b, circ2a])[0]) ! intersection.append(path.closepath()) union = (circ1.split([circ1a, circ1b])[1] << circ2.split([circ2b, circ2a])[1]) ! union.append(path.closepath()) c = canvas.canvas() --- 1,15 ---- from pyx import * ! circ1 = path.circle(0, 0, 1).normpath() # you don't really need normpath, ! circ2 = path.circle(1, 1, 1).normpath() # but its better to have it once ! # for those operations (circ1a, circ1b), (circ2a, circ2b) = circ1.intersect(circ2) intersection = (circ1.split([circ1a, circ1b])[0] << circ2.split([circ2b, circ2a])[0]) ! intersection[-1].close() union = (circ1.split([circ1a, circ1b])[1] << circ2.split([circ2b, circ2a])[1]) ! union[-1].close() c = canvas.canvas() ```