Use noncyclic unitcircle in Circ.asy's source().
authorW. Trevor King <wking@drexel.edu>
Mon, 10 Aug 2009 21:46:53 +0000 (17:46 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 17 Sep 2009 16:49:35 +0000 (12:49 -0400)
This avoids the filling of cyclic paths in TwoTerminal.draw().

asymptote/Circ.asy

index dae2959639669d32d76ebb396ecf2caa037c4b77..f78507e1393fcc9b18d33ee93e477a271b600b07 100644 (file)
@@ -506,7 +506,7 @@ TwoTerminal source(pair beg, int type, real ang, string name, string val,
     len = 2ssize;
     lchar = 0.5ssize; lcharv = 0.5ssize;
     pLine.push((0,0)--(.5ssize,0));
-    pLine.push(shift((ssize,0))*scale(ssize/2)*unitcircle);
+    pLine.push(shift((ssize,0))*scale(ssize/2)*(E..N..W..S..E));
     pLine.push((1.5ssize,0)--(2ssize,0));
     if (type == AC) {
       pLine.push((2ssize/3,0ssize){NE}..{E}((1/3+.5)*ssize,.2ssize)..{SE}(ssize,0)..{E}((2/3+.5)*ssize,-.2ssize)..{NE}(4ssize/3,0));