diff options
Diffstat (limited to 'Master/texmf-dist/doc/asymptote/examples/projectelevation.asy')
-rw-r--r-- | Master/texmf-dist/doc/asymptote/examples/projectelevation.asy | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/asymptote/examples/projectelevation.asy b/Master/texmf-dist/doc/asymptote/examples/projectelevation.asy new file mode 100644 index 00000000000..6ffe5126633 --- /dev/null +++ b/Master/texmf-dist/doc/asymptote/examples/projectelevation.asy @@ -0,0 +1,17 @@ +import graph3; +import grid3; +import palette; + +currentprojection=orthographic(0.8,1,2); +size(400,300,IgnoreAspect); + +real f(pair z) {return cos(2*pi*z.x)*sin(2*pi*z.y);} + +surface s=surface(f,(-1/2,-1/2),(1/2,1/2),50,Spline); + +surface S=planeproject(unitsquare3)*s; +S.colors(palette(s.map(zpart),Rainbow())); +draw(S,nolight); +draw(s,lightgray+opacity(0.7)); + +grid3(XYZgrid); |