summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/three_surface.asy
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-04-16 17:27:26 +0000
committerKarl Berry <karl@freefriends.org>2017-04-16 17:27:26 +0000
commitfbb7e835bffb3653af5165cbcc62aef0df8bfe93 (patch)
tree556994e281f2760742f38823577c476dbcb84122 /Master/texmf-dist/asymptote/three_surface.asy
parentdf88f83b1126c57b3ca9b0371071f36caba3fbbf (diff)
asymptote 2.41 for TL17
git-svn-id: svn://tug.org/texlive/trunk@43843 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/asymptote/three_surface.asy')
-rw-r--r--Master/texmf-dist/asymptote/three_surface.asy17
1 files changed, 7 insertions, 10 deletions
diff --git a/Master/texmf-dist/asymptote/three_surface.asy b/Master/texmf-dist/asymptote/three_surface.asy
index c6d439e9fb0..6e10246c774 100644
--- a/Master/texmf-dist/asymptote/three_surface.asy
+++ b/Master/texmf-dist/asymptote/three_surface.asy
@@ -1273,13 +1273,15 @@ patch subpatch(patch s, pair a, pair b)
return patch(subpatch(s.P,a,b),s.straight,s.planar);
}
-// return an array containing an intersection times of path p and surface s.
+// return an array containing the times for one intersection of path p and
+// patch s.
real[] intersect(path3 p, patch s, real fuzz=-1)
{
return intersect(p,s.P,fuzz);
}
-// return an array containing an intersection times of path p and surface s.
+// return an array containing the times for one intersection of path p and
+// surface s.
real[] intersect(path3 p, surface s, real fuzz=-1)
{
for(int i=0; i < s.s.length; ++i) {
@@ -1402,14 +1404,9 @@ void draw3D(frame f, int type=0, patch s, triple center=O, material m,
if(prc())
PRCshininess=PRCshininess(m.shininess);
- if(s.triangular)
- drawbeziertriangle(f,s.P,center,s.straight && s.planar,m.p,
- m.opacity,m.shininess,PRCshininess,s.colors,
- interaction.type);
- else
- draw(f,s.P,center,s.straight && s.planar,m.p,m.opacity,m.shininess,
- PRCshininess,s.planar ? s.normal(0.5,0.5) : O,s.colors,
- interaction.type,prc);
+ (s.triangular ? drawbeziertriangle : draw)
+ (f,s.P,center,s.straight && s.planar,m.p,m.opacity,m.shininess,
+ PRCshininess,s.colors,interaction.type,prc);
}
// Draw triangles on a frame.