summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/examples/animations
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-06-21 23:42:52 +0000
committerKarl Berry <karl@freefriends.org>2009-06-21 23:42:52 +0000
commit8542b3da905deccc50b1bd6d21c7474a29286b3f (patch)
treec9a21ed9311ad8f967c67d17efad475eef50c5c1 /Build/source/utils/asymptote/examples/animations
parent95be153f845a361eb22745faa0d1ce509eb18c39 (diff)
asymptote 1.77 sources
git-svn-id: svn://tug.org/texlive/trunk@13865 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/examples/animations')
-rw-r--r--Build/source/utils/asymptote/examples/animations/torusanimation.asy7
1 files changed, 5 insertions, 2 deletions
diff --git a/Build/source/utils/asymptote/examples/animations/torusanimation.asy b/Build/source/utils/asymptote/examples/animations/torusanimation.asy
index 9073ab2b56a..8370a0c25af 100644
--- a/Build/source/utils/asymptote/examples/animations/torusanimation.asy
+++ b/Build/source/utils/asymptote/examples/animations/torusanimation.asy
@@ -26,8 +26,11 @@ for(int i=0; i < n; ++i) {
p[i]=graph(g,0,1,operator ..);
}
-revolution torus=revolution(shift(R*X)*Circle(O,a,Y,32),Z);
-surface s=surface(torus);
+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));
+}
+
+surface s=surface(f,(0,0),(2pi,2pi),8,8,Spline);
for(int i=0; i < n; ++i){
picture fig;