summaryrefslogtreecommitdiff
path: root/Master/texmf/doc/asymptote/examples/join3.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf/doc/asymptote/examples/join3.asy')
-rw-r--r--Master/texmf/doc/asymptote/examples/join3.asy24
1 files changed, 24 insertions, 0 deletions
diff --git a/Master/texmf/doc/asymptote/examples/join3.asy b/Master/texmf/doc/asymptote/examples/join3.asy
new file mode 100644
index 00000000000..62d5faaaee6
--- /dev/null
+++ b/Master/texmf/doc/asymptote/examples/join3.asy
@@ -0,0 +1,24 @@
+import graph3;
+
+size(200);
+
+currentprojection=orthographic(500,-500,500);
+
+triple[] z=new triple[10];
+
+z[0]=(0,100,0); z[1]=(50,0,0); z[2]=(180,0,0);
+
+for(int n=3; n <= 9; ++n)
+ z[n]=z[n-3]+(200,0,0);
+
+path3 p=z[0]..z[1]---z[2]::{Y}z[3]
+&z[3]..z[4]--z[5]::{Y}z[6]
+&z[6]::z[7]---z[8]..{Y}z[9];
+
+draw(p,grey+linewidth(4mm)+opacity(0.5));
+
+xaxis3(Label(XY()*"$x$",align=-3Y),red,above=true);
+yaxis3(Label(XY()*"$y$",align=-3X),red,above=true);
+
+dot(z);
+