diff options
Diffstat (limited to 'Build/source/utils/asymptote/base/solids.asy')
-rw-r--r-- | Build/source/utils/asymptote/base/solids.asy | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Build/source/utils/asymptote/base/solids.asy b/Build/source/utils/asymptote/base/solids.asy index 09bccd32aa9..90f01dc935f 100644 --- a/Build/source/utils/asymptote/base/solids.asy +++ b/Build/source/utils/asymptote/base/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 { |