diff options
Diffstat (limited to 'info/asymptote-manual-zh-cn/src/cube.asy')
-rw-r--r-- | info/asymptote-manual-zh-cn/src/cube.asy | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/info/asymptote-manual-zh-cn/src/cube.asy b/info/asymptote-manual-zh-cn/src/cube.asy new file mode 100644 index 0000000000..436e1e2729 --- /dev/null +++ b/info/asymptote-manual-zh-cn/src/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); |