summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/asymptote
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-04-07 16:52:56 +0000
committerKarl Berry <karl@freefriends.org>2016-04-07 16:52:56 +0000
commite1e1d6fa3224440612d3ad6595c413f88d552702 (patch)
treeeaa3301c9fecd1d01baa642b2e483fee4430bcee /Master/texmf-dist/doc/asymptote
parent0eefec13710bb4d6aff6838a6efc463912506ee9 (diff)
asymptote 2.37
git-svn-id: svn://tug.org/texlive/trunk@40303 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/asymptote')
-rw-r--r--Master/texmf-dist/doc/asymptote/CAD.pdfbin66815 -> 66753 bytes
-rw-r--r--Master/texmf-dist/doc/asymptote/TeXShopAndAsymptote.pdfbin32163 -> 32164 bytes
-rw-r--r--Master/texmf-dist/doc/asymptote/asy-latex.pdfbin194467 -> 194740 bytes
-rw-r--r--Master/texmf-dist/doc/asymptote/asyRefCard.pdfbin54958 -> 54949 bytes
-rw-r--r--Master/texmf-dist/doc/asymptote/asymptote.pdfbin1273183 -> 1288038 bytes
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/BezierTriangle.asy10
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/externalprc.tex3
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/fequlogo.asy2
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/filegraph.asy2
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/filesurface.asy2
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/genusthree.asy (renamed from Master/texmf-dist/doc/asymptote/examples/lemniscate.asy)7
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/genustwo.asy36
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/latexusage.tex4
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/leastsquares.asy2
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/secondaryaxis.asy2
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/tetra.asy12
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/threeviews.asy3
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/vertexshading.asy5
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/westnile.asy2
19 files changed, 79 insertions, 13 deletions
diff --git a/Master/texmf-dist/doc/asymptote/CAD.pdf b/Master/texmf-dist/doc/asymptote/CAD.pdf
index 100067e6231..41fbbc97347 100644
--- a/Master/texmf-dist/doc/asymptote/CAD.pdf
+++ b/Master/texmf-dist/doc/asymptote/CAD.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/asymptote/TeXShopAndAsymptote.pdf b/Master/texmf-dist/doc/asymptote/TeXShopAndAsymptote.pdf
index 5e369f69e61..fe6030b1ff3 100644
--- a/Master/texmf-dist/doc/asymptote/TeXShopAndAsymptote.pdf
+++ b/Master/texmf-dist/doc/asymptote/TeXShopAndAsymptote.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/asymptote/asy-latex.pdf b/Master/texmf-dist/doc/asymptote/asy-latex.pdf
index b8392efb5b8..707a3682690 100644
--- a/Master/texmf-dist/doc/asymptote/asy-latex.pdf
+++ b/Master/texmf-dist/doc/asymptote/asy-latex.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/asymptote/asyRefCard.pdf b/Master/texmf-dist/doc/asymptote/asyRefCard.pdf
index adc74a20d99..4dd99ef2fc3 100644
--- a/Master/texmf-dist/doc/asymptote/asyRefCard.pdf
+++ b/Master/texmf-dist/doc/asymptote/asyRefCard.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/asymptote/asymptote.pdf b/Master/texmf-dist/doc/asymptote/asymptote.pdf
index 3c24609c93f..36bc50b8c33 100644
--- a/Master/texmf-dist/doc/asymptote/asymptote.pdf
+++ b/Master/texmf-dist/doc/asymptote/asymptote.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/asymptote/examples/BezierTriangle.asy b/Master/texmf-dist/doc/asymptote/examples/BezierTriangle.asy
new file mode 100644
index 00000000000..2942dbf042f
--- /dev/null
+++ b/Master/texmf-dist/doc/asymptote/examples/BezierTriangle.asy
@@ -0,0 +1,10 @@
+import three;
+currentprojection=perspective(-2,5,1);
+
+size(10cm);
+
+surface s=surface((0,0,0)--(3,0,0)--(1.5,3*sqrt(3)/2,0)--cycle,
+ new triple[] {(1.5,sqrt(3)/2,2)});
+
+draw(s,red);
+
diff --git a/Master/texmf-dist/doc/asymptote/examples/externalprc.tex b/Master/texmf-dist/doc/asymptote/examples/externalprc.tex
index 7c488e78f9c..04718b86a11 100644
--- a/Master/texmf-dist/doc/asymptote/examples/externalprc.tex
+++ b/Master/texmf-dist/doc/asymptote/examples/externalprc.tex
@@ -7,8 +7,7 @@
\documentclass[12pt]{article}
\input cube.pre
\usepackage[bigfiles]{media9}
-\playbuttonfalse
-\RequirePackage{color,graphicx}
+\RequirePackage{asymptote,color,graphicx}
\begin{document}
\input cube.tex
\end{document}
diff --git a/Master/texmf-dist/doc/asymptote/examples/fequlogo.asy b/Master/texmf-dist/doc/asymptote/examples/fequlogo.asy
index e53e1831419..b928e42197b 100644
--- a/Master/texmf-dist/doc/asymptote/examples/fequlogo.asy
+++ b/Master/texmf-dist/doc/asymptote/examples/fequlogo.asy
@@ -7,7 +7,7 @@ import obj;
size(200,0);
size3(200);
-settings.render=8;
+if(settings.render < 0) settings.render=8;
texpreamble("\usepackage[T1]{fontenc}");
texpreamble("\usepackage{ccfonts,eulervm}");
diff --git a/Master/texmf-dist/doc/asymptote/examples/filegraph.asy b/Master/texmf-dist/doc/asymptote/examples/filegraph.asy
index 4b05c5bcbd7..0add531a3e0 100644
--- a/Master/texmf-dist/doc/asymptote/examples/filegraph.asy
+++ b/Master/texmf-dist/doc/asymptote/examples/filegraph.asy
@@ -3,7 +3,7 @@ import graph;
size(200,150,IgnoreAspect);
file in=input("filegraph.dat").line();
-real[][] a=in.dimension(0,0);
+real[][] a=in;
a=transpose(a);
real[] x=a[0];
diff --git a/Master/texmf-dist/doc/asymptote/examples/filesurface.asy b/Master/texmf-dist/doc/asymptote/examples/filesurface.asy
index eef9d37f494..b4817a05863 100644
--- a/Master/texmf-dist/doc/asymptote/examples/filesurface.asy
+++ b/Master/texmf-dist/doc/asymptote/examples/filesurface.asy
@@ -7,7 +7,7 @@ file in=input("filesurface.dat").line();
real[] x=in;
real[] y=in;
-real[][] f=in.dimension(0,0);
+real[][] f=in;
triple f(pair t) {
int i=round(t.x);
diff --git a/Master/texmf-dist/doc/asymptote/examples/lemniscate.asy b/Master/texmf-dist/doc/asymptote/examples/genusthree.asy
index b151e43c18b..b3b7eb7f2b2 100644
--- a/Master/texmf-dist/doc/asymptote/examples/lemniscate.asy
+++ b/Master/texmf-dist/doc/asymptote/examples/genusthree.asy
@@ -1,5 +1,3 @@
-settings.outformat = "png";;
-settings.render = 16;
size(8cm);
import smoothcontour3;
@@ -9,12 +7,17 @@ real erdos(pair z, int n) { return abs(z^n-1)^2 - 1; }
real h = 0.12;
+// Erdos lemniscate of order 3:
real lemn3(real x, real y) { return erdos((x,y), 3); }
+// "Inflate" the order 3 (planar) lemniscate into a
+// smooth surface:
real f(real x, real y, real z) {
return lemn3(x,y)^2 + (16*abs((x,y))^4 + 1) * (z^2 - h^2);
}
+// Draw the implicit surface on a box with diagonally opposite
+// corners at (-3,-3,-3), (3,3,3).
draw(implicitsurface(f,a=(-3,-3,-3),b=(3,3,3),overlapedges=true),
surfacepen=material(diffusepen=gray(0.5),emissivepen=gray(0.4),
specularpen=gray(0.1)));
diff --git a/Master/texmf-dist/doc/asymptote/examples/genustwo.asy b/Master/texmf-dist/doc/asymptote/examples/genustwo.asy
new file mode 100644
index 00000000000..0d346481d04
--- /dev/null
+++ b/Master/texmf-dist/doc/asymptote/examples/genustwo.asy
@@ -0,0 +1,36 @@
+size(10cm,0);
+import smoothcontour3;
+currentprojection=perspective((18,20,10));
+if(settings.render < 0) settings.render=8;
+
+real tuberadius = 0.69;
+
+// Convert to cylindrical coordinates to draw
+// a circle revolved about the z axis.
+real toruscontour(real x, real y, real z) {
+ real r = sqrt(x^2 + y^2);
+ return (r-2)^2 + z^2 - tuberadius^2;
+}
+
+// Take the union of the two tangent tori (by taking
+// the product of the functions defining them). Then
+// add (or subtract) a bit of noise to smooth things
+// out.
+real f(real x, real y, real z) {
+ real f1 = toruscontour(x - 2 - tuberadius, y, z);
+ real f2 = toruscontour(x + 2 + tuberadius, y, z);
+ return f1 * f2 - 0.1;
+}
+
+// The noisy function extends a bit farther than the union of
+// the two tori, so include a bit of extra space in the box.
+triple max = (2*(2+tuberadius), 2+tuberadius, tuberadius)
+ + (0.1, 0.1, 0.1);
+triple min = -max;
+
+// Draw the implicit surface.
+draw(implicitsurface(f, min, max, overlapedges=true,
+ nx=20, nz=5),
+ surfacepen=material(diffusepen=gray(0.6),
+ emissivepen=gray(0.3),
+ specularpen=gray(0.1)));
diff --git a/Master/texmf-dist/doc/asymptote/examples/latexusage.tex b/Master/texmf-dist/doc/asymptote/examples/latexusage.tex
index b70df067963..07b0e56a356 100644
--- a/Master/texmf-dist/doc/asymptote/examples/latexusage.tex
+++ b/Master/texmf-dist/doc/asymptote/examples/latexusage.tex
@@ -1,10 +1,10 @@
\documentclass[12pt]{article}
% Use this form to include EPS (latex) or PDF (pdflatex) files:
-\usepackage{asymptote}
+%\usepackage{asymptote}
% Use this form with latex or pdflatex to include inline LaTeX code by default:
-%\usepackage[inline]{asymptote}
+\usepackage[inline]{asymptote}
% Use this form with latex or pdflatex to create PDF attachments by default:
%\usepackage[attach]{asymptote}
diff --git a/Master/texmf-dist/doc/asymptote/examples/leastsquares.asy b/Master/texmf-dist/doc/asymptote/examples/leastsquares.asy
index cb2b8f3a42b..37477d58858 100644
--- a/Master/texmf-dist/doc/asymptote/examples/leastsquares.asy
+++ b/Master/texmf-dist/doc/asymptote/examples/leastsquares.asy
@@ -5,7 +5,7 @@ import stats;
file fin=input("leastsquares.dat").line();
-real[][] a=fin.dimension(0,0);
+real[][] a=fin;
a=transpose(a);
real[] t=a[0], rho=a[1];
diff --git a/Master/texmf-dist/doc/asymptote/examples/secondaryaxis.asy b/Master/texmf-dist/doc/asymptote/examples/secondaryaxis.asy
index 39f802f935d..27b89b9c384 100644
--- a/Master/texmf-dist/doc/asymptote/examples/secondaryaxis.asy
+++ b/Master/texmf-dist/doc/asymptote/examples/secondaryaxis.asy
@@ -8,7 +8,7 @@ file in=input(data).line().csv();
string[] titlelabel=in;
string[] columnlabel=in;
-real[][] a=in.dimension(0,0);
+real[][] a=in;
a=transpose(a);
real[] t=a[0], susceptible=a[1], infectious=a[2], dead=a[3], larvae=a[4];
real[] susceptibleM=a[5], exposed=a[6],infectiousM=a[7];
diff --git a/Master/texmf-dist/doc/asymptote/examples/tetra.asy b/Master/texmf-dist/doc/asymptote/examples/tetra.asy
new file mode 100644
index 00000000000..a20d27b8dbe
--- /dev/null
+++ b/Master/texmf-dist/doc/asymptote/examples/tetra.asy
@@ -0,0 +1,12 @@
+import graph3;
+unitsize(1cm);
+currentprojection=orthographic(10,5,5);
+triple O=(0,0,0),N=(0,0,10),A=(8.66,0,-5), B=(-4.33,7.5,-5),C=(-4.33,-7.5,-5);
+path3[] D=N--A--B--C--N--B^^A--C;
+draw(surface(A--B--C--cycle),.5*blue+.5*white+opacity(.5));
+draw(surface(N--B--C--cycle),.5*green+.5*white+opacity(.5));
+draw(surface(N--C--A--cycle),.5*yellow+.5*white+opacity(.5));
+draw(surface(N--A--B--cycle),.5*red+.5*white+opacity(.5));
+draw(D,blue+1bp);
+dot(D);dot(O);
+label("$O$",O,E);label("$N$",N,N);label("$A$",A,SE);label("$B$",B,E);label("$C$",C,W+S);
diff --git a/Master/texmf-dist/doc/asymptote/examples/threeviews.asy b/Master/texmf-dist/doc/asymptote/examples/threeviews.asy
index 1bcc36ae8d7..c723abd452b 100644
--- a/Master/texmf-dist/doc/asymptote/examples/threeviews.asy
+++ b/Master/texmf-dist/doc/asymptote/examples/threeviews.asy
@@ -4,11 +4,12 @@ picture pic;
unitsize(pic,5cm);
currentlight.viewport=false;
-settings.render=4;
+if(settings.render < 0) settings.render=4;
settings.toolbar=false;
viewportmargin=(1cm,1cm);
draw(pic,scale3(0.5)*unitsphere,green,render(compression=Low,merge=true));
+
draw(pic,Label("$x$",1),O--X);
draw(pic,Label("$y$",1),O--Y);
draw(pic,Label("$z$",1),O--Z);
diff --git a/Master/texmf-dist/doc/asymptote/examples/vertexshading.asy b/Master/texmf-dist/doc/asymptote/examples/vertexshading.asy
index 13821ec0058..a5555d66f70 100644
--- a/Master/texmf-dist/doc/asymptote/examples/vertexshading.asy
+++ b/Master/texmf-dist/doc/asymptote/examples/vertexshading.asy
@@ -7,3 +7,8 @@ currentprojection=perspective(4,5,5);
draw(surface(unitcircle3,new pen[] {red,green,blue,black}));
draw(surface(shift(Z)*unitsquare3,
new pen[] {red,green+opacity(0.5),blue,black}));
+draw(surface(shift(X)*((0,0,0)..controls (1,0,0) and (2,0,0)..(3,0,0)..
+ controls (2.5,sqrt(3)/2,0) and (2,sqrt(3),0)..
+ (1.5,3*sqrt(3)/2,0)..
+ controls (1,sqrt(3),0) and (0.5,sqrt(3)/2,0)..cycle),
+ new triple[] {(1.5,sqrt(3)/2,2)},new pen[] {red,green,blue}));
diff --git a/Master/texmf-dist/doc/asymptote/examples/westnile.asy b/Master/texmf-dist/doc/asymptote/examples/westnile.asy
index 7f63047983f..222bb38e05e 100644
--- a/Master/texmf-dist/doc/asymptote/examples/westnile.asy
+++ b/Master/texmf-dist/doc/asymptote/examples/westnile.asy
@@ -7,7 +7,7 @@ file in=input(data).line().csv();
string[] columnlabel=in;
-real[][] A=in.dimension(0,0);
+real[][] A=in;
A=transpose(A);
real[] number=A[0], survival=A[1];