diff options
Diffstat (limited to 'Master/texmf/doc/asymptote/examples/parametricsurface.asy')
-rw-r--r-- | Master/texmf/doc/asymptote/examples/parametricsurface.asy | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Master/texmf/doc/asymptote/examples/parametricsurface.asy b/Master/texmf/doc/asymptote/examples/parametricsurface.asy new file mode 100644 index 00000000000..d020bbe6e7f --- /dev/null +++ b/Master/texmf/doc/asymptote/examples/parametricsurface.asy @@ -0,0 +1,22 @@ +import graph3; + +size(200,0); +currentprojection=orthographic(4,0,2); + +real R=2; +real a=1.9; + +triple f(pair t) { + return ((R+a*cos(t.y))*cos(t.x),(R+a*cos(t.y))*sin(t.x),a*sin(t.y)); +} + +pen p=rgb(0.2,0.5,0.7); + +// surface only +//draw(surface(f,(0,0),(2pi,2pi),30,15)); + +// mesh only +//draw(surface(f,(0,0),(2pi,2pi),30,15),nullpen,meshpen=p); + +// surface & mesh +draw(surface(f,(0,0),(2pi,2pi),30,15),lightgray,meshpen=p); |