1 : #VRML V2.0 utf8
2 :
3 : WorldInfo {
4 : info "Tomash Kazmar"
5 : title "Simple Table"
6 : }
7 :
8 : PROTO TableWood []
9 : {
10 : Appearance {
11 : material Material {
12 : diffuseColor .31 .25 .01
13 : specularColor .34 .05 .05
14 : emissiveColor .14 .12 0
15 : ambientIntensity .0467
16 : shininess .07
17 : }
18 : }
19 : }
20 :
21 : PROTO TableLeg []
22 : {
23 : Shape {
24 : geometry Cylinder {
25 : bottom TRUE
26 : top FALSE
27 : radius 0.035
28 : height 0.74
29 : }
30 : appearance TableWood {}
31 : }
32 : }
33 :
34 : PROTO Table [ ]
35 : {
36 : Group {
37 : children [
38 : Transform {
39 : children Shape {
40 : geometry Box {
41 : size 1.4 0.04 1.5
42 : }
43 : appearance TableWood {}
44 : }
45 : translation 0 0.74 0
46 : }
47 : Transform {
48 : translation 0 0.67 0.72
49 : children Shape {
50 : geometry DEF UnderF Box {
51 : size 1.3 0.1 0.04
52 : }
53 : appearance TableWood {}
54 : }
55 : }
56 : Transform {
57 : translation 0 0.67 -0.72
58 : children USE UnderF
59 : }
60 : Transform {
61 : rotation 0 1 0 1.57
62 : scale 1.136 1 1
63 : translation -0.67 0.67 0
64 : children USE UnderF
65 : }
66 : Transform {
67 : rotation 0 1 0 1.57
68 : scale 1.136 1 1
69 : translation 0.67 0.67 0
70 : children USE UnderF
71 : }
72 : Transform {
73 : children TableLeg {}
74 : translation -0.61 0.37 0.66
75 : }
76 : Transform {
77 : children TableLeg {}
78 : translation -0.61 0.37 -0.66
79 : }
80 : Transform {
81 : children TableLeg {}
82 : translation 0.61 0.37 0.66
83 : }
84 : Transform {
85 : children TableLeg {}
86 : translation 0.61 0.37 -0.66
87 : }
88 : ]
89 : }
90 : }
91 :
92 : Table {}