summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/examples
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-09-28 22:01:49 +0000
committerKarl Berry <karl@freefriends.org>2009-09-28 22:01:49 +0000
commit4ffd67ef7a9a1a465d2a8cc35a785edb149de24a (patch)
tree3d4edc7989e1207e31f6df6da1cb6cc1172a0cd1 /Build/source/utils/asymptote/examples
parente2e3d91772c578b56fb93aa7c6b6e519034ae2a1 (diff)
asymptote 1.87
git-svn-id: svn://tug.org/texlive/trunk@15535 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/examples')
-rw-r--r--Build/source/utils/asymptote/examples/animations/wavepacket.asy1
-rw-r--r--Build/source/utils/asymptote/examples/billboard.asy11
-rw-r--r--Build/source/utils/asymptote/examples/impact.asy1
-rw-r--r--Build/source/utils/asymptote/examples/p-orbital.asy16
-rw-r--r--Build/source/utils/asymptote/examples/slidedemo.asy2
-rw-r--r--Build/source/utils/asymptote/examples/stereoscopic.asy11
-rw-r--r--Build/source/utils/asymptote/examples/threeviews.asy17
7 files changed, 48 insertions, 11 deletions
diff --git a/Build/source/utils/asymptote/examples/animations/wavepacket.asy b/Build/source/utils/asymptote/examples/animations/wavepacket.asy
index 72d35e59c84..006fbce1543 100644
--- a/Build/source/utils/asymptote/examples/animations/wavepacket.asy
+++ b/Build/source/utils/asymptote/examples/animations/wavepacket.asy
@@ -1,4 +1,5 @@
// Author : Philippe Ivaldi
+// http://www.piprime.fr/
// 2006/11/10
import animation;
diff --git a/Build/source/utils/asymptote/examples/billboard.asy b/Build/source/utils/asymptote/examples/billboard.asy
new file mode 100644
index 00000000000..13cc69bc7df
--- /dev/null
+++ b/Build/source/utils/asymptote/examples/billboard.asy
@@ -0,0 +1,11 @@
+import three;
+
+// Billboard support in PRC is not yet implemented.
+settings.outformat="eps";
+
+size(100);
+
+draw(unitbox);
+
+label("Billboard",X,red,Billboard);
+label("Fixed",Y,blue);
diff --git a/Build/source/utils/asymptote/examples/impact.asy b/Build/source/utils/asymptote/examples/impact.asy
index b58d381f26a..d9039697779 100644
--- a/Build/source/utils/asymptote/examples/impact.asy
+++ b/Build/source/utils/asymptote/examples/impact.asy
@@ -1,4 +1,5 @@
// Contributed by Philippe Ivaldi.
+// http://www.piprime.fr/
import graph3 ;
import contour;
diff --git a/Build/source/utils/asymptote/examples/p-orbital.asy b/Build/source/utils/asymptote/examples/p-orbital.asy
index 570d3f86b57..d8b22bc2982 100644
--- a/Build/source/utils/asymptote/examples/p-orbital.asy
+++ b/Build/source/utils/asymptote/examples/p-orbital.asy
@@ -1,9 +1,9 @@
-import graph3;
-import palette;
-size(200);
-currentprojection=orthographic(6,8,2);
+import graph3;
+import palette;
+size(200);
+currentprojection=orthographic(6,8,2);
-real c0=0.1;
+real c0=0.1;
real f(real r) {return r*(1-r/6)*exp(-r/3);}
@@ -21,8 +21,8 @@ bool cond(pair t) {return f(t.x) != 0;}
real R=abs((20,20,20));
surface s=surface(f,(0,0),(R,2pi),100,8,Spline,cond);
-s.colors(palette(s.map(abs),Gradient(palegreen,heavyblue)));
-draw(s);
-draw(zscale3(-1)*s);
+s.colors(palette(s.map(abs),Gradient(palegreen,heavyblue)));
+draw(s);
+draw(zscale3(-1)*s);
axes3("$x$","$y$","$z$",Arrow3);
diff --git a/Build/source/utils/asymptote/examples/slidedemo.asy b/Build/source/utils/asymptote/examples/slidedemo.asy
index 1668ade5fde..c57c60adf7e 100644
--- a/Build/source/utils/asymptote/examples/slidedemo.asy
+++ b/Build/source/utils/asymptote/examples/slidedemo.asy
@@ -108,7 +108,7 @@ draw(pic,F3(r)--(1,f(r),0),red);
real x=(1+r)/2;
draw(pic,"$r$",(x,0,0)--(x,f(r),0),X+0.2Z,red,Arrow3);
draw(pic,arc(1.1X,0.4,90,90,3,-90),Arrow3);
-add(pic.fit(8.5cm));
+add(pic.fit(0,14cm));
title("\mbox{Asymptote: 2D \& 3D Vector Graphics Language}");
asyinclude("logo3");
diff --git a/Build/source/utils/asymptote/examples/stereoscopic.asy b/Build/source/utils/asymptote/examples/stereoscopic.asy
new file mode 100644
index 00000000000..639333ec476
--- /dev/null
+++ b/Build/source/utils/asymptote/examples/stereoscopic.asy
@@ -0,0 +1,11 @@
+import three;
+
+currentprojection=perspective(50*dir(70,15));
+
+picture pic;
+unitsize(pic,1cm);
+
+draw(pic,xscale3(10)*unitcube,yellow,blue);
+
+addStereoViews(pic);
+
diff --git a/Build/source/utils/asymptote/examples/threeviews.asy b/Build/source/utils/asymptote/examples/threeviews.asy
index 39f9ed4464e..05c89e650ca 100644
--- a/Build/source/utils/asymptote/examples/threeviews.asy
+++ b/Build/source/utils/asymptote/examples/threeviews.asy
@@ -1,13 +1,26 @@
import three;
picture pic;
-size(pic,200);
+unitsize(pic,5cm);
+
currentlight.viewport=false;
settings.render=4;
+settings.toolbar=false;
+viewportmargin=(1cm,1cm);
draw(pic,scale3(0.5)*unitsphere,green);
draw(pic,Label("$x$",1),O--X);
draw(pic,Label("$y$",1),O--Y);
draw(pic,Label("$z$",1),O--Z);
-addViews(pic);
+// Europe and Asia:
+//addViews(pic,ThreeViewsFR);
+//addViews(pic,SixViewsFR);
+
+// United Kingdom, United States, Canada, and Australia:
+addViews(pic,ThreeViewsUS);
+//addViews(pic,SixViewsUS);
+
+// Front, Top, Right,
+// Back, Bottom, Left:
+//addViews(pic,SixViews);