diff options
author | Karl Berry <karl@freefriends.org> | 2009-07-20 23:59:26 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-07-20 23:59:26 +0000 |
commit | c575a3e01c48c6807ff66e39df09c16ece08af60 (patch) | |
tree | c3bb87255b16358bb998849d2d83302bedea2e78 /Master/texmf/asymptote/tube.asy | |
parent | 3927b41be4f2831464a2c190c28042b7285dd91b (diff) |
asymptote 1.82
git-svn-id: svn://tug.org/texlive/trunk@14356 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/asymptote/tube.asy')
-rw-r--r-- | Master/texmf/asymptote/tube.asy | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Master/texmf/asymptote/tube.asy b/Master/texmf/asymptote/tube.asy index f62d3897adf..1f8ef950251 100644 --- a/Master/texmf/asymptote/tube.asy +++ b/Master/texmf/asymptote/tube.asy @@ -15,9 +15,9 @@ path3 roundedpath(path3 A, real r) guide3 rounded; triple before, after, indir, outdir; int len=length(A); - bool guideclosed=cyclic(A); + bool cyclic=cyclic(A); if(len < 2) {return A;}; - if(guideclosed) {rounded=point(point(A,0)--point(A,1),r);} + if(cyclic) {rounded=point(point(A,0)--point(A,1),r);} else {rounded=point(A,0);} for(int i=1; i < len; i=i+1) { before=point(point(A,i)--point(A,i-1),r); @@ -26,7 +26,7 @@ path3 roundedpath(path3 A, real r) outdir=dir(point(A,i)--point(A,i+1),1); rounded=rounded--before{indir}..{outdir}after; } - if(guideclosed) { + if(cyclic) { before=point(point(A,0)--point(A,len-1),r); indir=dir(point(A,len-1)--point(A,0),1); outdir=dir(point(A,0)--point(A,1),1); @@ -205,6 +205,7 @@ surface tube(path3 g, coloredpath section, pair M=max(section.p), m=min(section.p); real[] t=sample(g,max(M.x-m.x,M.y-m.y)/max(realEpsilon,abs(corner)), min(abs(relstep),1)); - t.cyclic(cyclic(g)); - return surface(rmf(g,t),section,T,cyclic(g)); + bool cyclic=cyclic(g); + t.cyclic(cyclic); + return surface(rmf(g,t),section,T,cyclic); } |