Debian Codegraph @

texmf-dist/metapost/mp3d/animpoly.mp

raw
1 % Animation of polyhedra
2 % Example of use of 3d and poly packages
3 % METAPOST
4 % Denis Roegel, 17 August 2003
5
6 % package 3d
7 input 3d
8
9 % polyhedra definitions
10 input 3dpoly
11
12 % animations
13 input 3danim
14
15 % set scale
16 drawing_scale:=8cm;
17
18 %
19 filled_faces:=true; % default value
20 %filled_faces:=false;
21
22 %
23 %show_animation_parameters:=true; % default value is |false|
24
25 % animations
26 %animate_object("tetrahedron",1,100,100);
27 %animate_object("cube",1,100,100);
28 %animate_object("octahedron",1,100,100);
29 %animate_object("dodecahedron",1,100,100);
30 %animate_object("icosahedron",1,100,100);
31 %animate_two_objects("dodecahedron","icosahedron",1,100,100);
32 animate_three_objects("dodecahedron","icosahedron","octahedron",1,100,100);
33 %animate_two_identical_objects("dodecahedron",1,100,100);
34
35 end