summaryrefslogtreecommitdiff
path: root/graphics/asymptote/base/three_surface.asy
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/base/three_surface.asy')
-rw-r--r--graphics/asymptote/base/three_surface.asy2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/asymptote/base/three_surface.asy b/graphics/asymptote/base/three_surface.asy
index 7d64ad22d7..77bdc6a998 100644
--- a/graphics/asymptote/base/three_surface.asy
+++ b/graphics/asymptote/base/three_surface.asy
@@ -546,7 +546,7 @@ path[] regularize(path p, bool checkboundary=true)
path g=subpath(p,t,t+length(p));
int L=length(g);
pair z=point(g,0);
- real[] T=intersections(g,z,z+I*dir);
+ real[] T=intersections(g,z,z+I*abs(z)*dir);
for(int i=0; i < T.length; ++i) {
real cut=T[i];
if(cut > sqrtEpsilon && cut < L-sqrtEpsilon) {