summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/asymptote/examples/cube.asy
blob: acfecfdd7d40590ef963e4c14b30539ccb25c03e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import three;

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);