1 : #VRML V2.0 utf8
2 :
3 : WorldInfo {
4 : info "Author: Martin Petricek"
5 : title "Sibenice"
6 : }
7 :
8 : PROTO Wood [] {
9 : Appearance {
10 : material Material {
11 : diffuseColor 0.5 0.3 0
12 : }
13 : }
14 : }
15 :
16 : PROTO LightWood [] {
17 : Appearance {
18 : material Material {
19 : diffuseColor 0.7 0.4 0
20 : }
21 : }
22 : }
23 :
24 : PROTO WhiteWood [] {
25 : Appearance {
26 : material Material {
27 : diffuseColor 1 0.9 0.8
28 : }
29 : }
30 : }
31 :
32 : PROTO Rope [] {
33 : Appearance {
34 : material Material {
35 : diffuseColor 0.9 0.9 0
36 : }
37 : }
38 : }
39 :
40 : Transform {
41 : translation 0 1.5 0
42 : children Shape {
43 : appearance Wood {}
44 : geometry Box {
45 : size 0.3 3 0.3
46 : }
47 : }
48 : }
49 :
50 : Transform {
51 : translation 0 2.85 0.9
52 : children Shape {
53 : appearance Wood {}
54 : geometry Box {
55 : size 0.3 0.3 1.5
56 : }
57 : }
58 : }
59 :
60 : Transform {
61 : rotation 1 0 0 -0.785
62 : translation 0 2.55 0.4
63 : children Shape {
64 : appearance Wood {}
65 : geometry Box {
66 : size 0.2 0.2 0.9
67 : }
68 : }
69 : }
70 :
71 : Transform {
72 : translation 0 2.85 1.5
73 : children Shape {
74 : appearance Rope {}
75 : geometry Box {
76 : size 0.32 0.32 0.02
77 : }
78 : }
79 : }
80 :
81 : Transform {
82 : translation 0 1.65 1.5
83 : children Shape {
84 : appearance Rope {}
85 : geometry Box {
86 : size 0.02 2.4 0.02
87 : }
88 : }
89 : }
90 :
91 : Transform {
92 : translation 0 0.33 1.5
93 : children Shape {
94 : appearance Appearance {
95 : material Material {
96 : diffuseColor 0.3 0.3 0.3
97 : specularColor 1 1 1
98 : }
99 : }
100 : geometry Sphere {
101 : radius 0.15
102 : }
103 : }
104 : }
105 :
106 : PROTO Kuzelka [
107 : exposedField SFVec3f pos 0 0 0
108 : ] {
109 : Transform {
110 : translation IS pos
111 : children Shape {
112 : appearance WhiteWood{}
113 : geometry Extrusion {
114 : beginCap FALSE
115 : endCap TRUE
116 : creaseAngle 99
117 : scale [
118 : 0.06 0.06,
119 : 0.08 0.08,
120 : 0.06 0.06,
121 : 0.03 0.03,
122 : 0.03 0.03,
123 : 0.045 0.045,
124 : 0.05 0.05,
125 : 0.045 0.045,
126 : 0.03 0.03,
127 : 0.01 0.01]
128 : spine [
129 : 0 0.0 0,
130 : 0 0.1 0,
131 : 0 0.2 0
132 : 0 0.27 0
133 : 0 0.33 0
134 : 0 0.4 0
135 : 0 0.42 0
136 : 0 0.44 0
137 : 0 0.46 0
138 : 0 0.47 0
139 : ]
140 : crossSection [0.7 0.7, 1.0 0, 0.7 -0.7, 0 -1.0,
141 : -0.7 -0.7, -1.0 0, -0.7 0.7, 0 1.0
142 : 0.7 0.7]
143 : }
144 : }
145 : }
146 : }
147 :
148 : Transform {
149 : translation 0 0.025 1.5
150 : children [
151 : Shape {
152 : appearance LightWood{}
153 : geometry Box {
154 : size 1 0.05 1
155 : }
156 : }
157 : Kuzelka {pos -0.4 0 0}
158 : Kuzelka {pos 0.4 0 0}
159 : Transform {
160 : rotation 0 0.6 1 2
161 : translation -0.1 0 0.1
162 : center 0 0.1 0
163 : children Kuzelka {pos 0 0 0}
164 :
165 : }
166 :
167 : Kuzelka {pos -0.4 0 0.4}
168 : Kuzelka {pos 0.4 0 0.4}
169 : Kuzelka {pos 0 0 0.4}
170 : Kuzelka {pos -0.4 0 -0.4}
171 : Kuzelka {pos 0.4 0 -0.4}
172 : Kuzelka {pos 0 0 -0.4}
173 :
174 : ]
175 : }
176 :