summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/bezulate.asy
diff options
context:
space:
mode:
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;
}