diff options
Diffstat (limited to 'Master/texmf-dist/asymptote/solids.asy')
-rw-r--r-- | Master/texmf-dist/asymptote/solids.asy | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Master/texmf-dist/asymptote/solids.asy b/Master/texmf-dist/asymptote/solids.asy index 09bccd32aa9..90f01dc935f 100644 --- a/Master/texmf-dist/asymptote/solids.asy +++ b/Master/texmf-dist/asymptote/solids.asy @@ -300,7 +300,8 @@ struct revolution { path3 p1=subpath(p,0,t); path3 p2=subpath(p,t,length(p)); if(length(p1) > 0 && - abs(midpoint(p1)-camera) <= abs(midpoint(p2)-camera)) { + (length(p2) == 0 || + abs(midpoint(p1)-camera) <= abs(midpoint(p2)-camera))) { s.longitudinal.front.push(p1); s.longitudinal.back.push(p2); } else { |