summaryrefslogtreecommitdiff
path: root/Master/texmf/doc/asymptote/examples/cube.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf/doc/asymptote/examples/cube.asy')
-rw-r--r--Master/texmf/doc/asymptote/examples/cube.asy16
1 files changed, 16 insertions, 0 deletions
diff --git a/Master/texmf/doc/asymptote/examples/cube.asy b/Master/texmf/doc/asymptote/examples/cube.asy
new file mode 100644
index 00000000000..436e1e2729f
--- /dev/null
+++ b/Master/texmf/doc/asymptote/examples/cube.asy
@@ -0,0 +1,16 @@
+import three;
+dotgranularity=0; // Render dots as spheres.
+
+currentprojection=orthographic(5,4,2,center=true);
+
+size(5cm);
+size3(3cm,5cm,8cm);
+
+draw(unitbox);
+
+dot(unitbox,red);
+
+label("$O$",(0,0,0),NW);
+label("(1,0,0)",(1,0,0),S);
+label("(0,1,0)",(0,1,0),E);
+label("(0,0,1)",(0,0,1),Z);