summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/bezulate.asy
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-04-07 16:52:56 +0000
committerKarl Berry <karl@freefriends.org>2016-04-07 16:52:56 +0000
commite1e1d6fa3224440612d3ad6595c413f88d552702 (patch)
treeeaa3301c9fecd1d01baa642b2e483fee4430bcee /Master/texmf-dist/asymptote/bezulate.asy
parent0eefec13710bb4d6aff6838a6efc463912506ee9 (diff)
asymptote 2.37
git-svn-id: svn://tug.org/texlive/trunk@40303 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/asymptote/bezulate.asy')
-rw-r--r--Master/texmf-dist/asymptote/bezulate.asy5
1 files changed, 3 insertions, 2 deletions
diff --git a/Master/texmf-dist/asymptote/bezulate.asy b/Master/texmf-dist/asymptote/bezulate.asy
index 60be8cb7045..38d35718d4a 100644
--- a/Master/texmf-dist/asymptote/bezulate.asy
+++ b/Master/texmf-dist/asymptote/bezulate.asy
@@ -2,7 +2,7 @@
private real fuzz=sqrtEpsilon;
real duplicateFuzz=1e-3; // Work around font errors.
-real maxrefinements=7;
+real maxrefinements=10;
private real[][] intersections(pair a, pair b, path p)
{
@@ -248,7 +248,8 @@ path subdivide(path p)
path q;
int l=length(p);
for(int i=0; i < l; ++i)
- q=q&subpath(p,i,i+0.5)&subpath(p,i+0.5,i+1);
+ q=q&(straight(p,i) ? subpath(p,i,i+1) :
+ subpath(p,i,i+0.5)&subpath(p,i+0.5,i+1));
return cyclic(p) ? q&cycle : q;
}