#VRML V2.0 utf8 #Nima Oreizy. cs184-aj. SID:12469513 #cs184 lab exercise 2 #authored on WinNT 4.0 using Cosmo IE4 plug-in. #text formating thanks to emacs. # This relaxed world contains a patio table with 3 chairs and a # smaller cocktail table. A rectangular awning with 4 posts # covers the furniture. # Floor Transform { translation 1 -2.7 -3 children [ Shape { appearance Appearance { material Material { emissiveColor 0.6 0.6 0.2 # sand-like color } } geometry Cylinder { radius 11 height 0.005 } } ] } # The table in the center of the world DEF table Group { children [ # This is the table's glass top Shape { appearance DEF tableappearance Appearance { material Material { diffuseColor 0 0.2 0.7 transparency 0.5 } } geometry Cylinder { radius 2 height 0.1 } } # This is the table's metalic post Transform { translation 0 -1 0 children [ Shape { appearance DEF tableappearance Appearance { material Material { diffuseColor 1.0 1.0 1.0 } } geometry Cylinder { radius 0.2 height 2 } } ] } #This is the table's foot. An extrusion. Shape { appearance USE tableappearance geometry Extrusion { crossSection [ 1.0000 0.0000 # Coordinates of a unit CCW circle 0.9511 -0.3090 # generated with Matlab (20 samples) 0.8090 -0.5878 0.5878 -0.8090 0.3090 -0.9511 0.0000 -1.0000 -0.3090 -0.9511 -0.5878 -0.8090 -0.8090 -0.5878 -0.9511 -0.3090 -1.0000 0.0000 -0.9511 0.3090 -0.8090 0.5878 -0.5878 0.8090 -0.3090 0.9511 0.0000 1.0000 0.3090 0.9511 0.5878 0.8090 0.8090 0.5878 0.9511 0.3090 1.0000 0.0000 ] spine [ 0 -2.0 0 0 -2.1 0 0 -2.2 0 0 -2.3 0 0 -2.4 0 0 -2.5 0 0 -2.6 0 ] scale [ 0.20 0.20 0.21 0.21 0.23 0.23 0.28 0.28 0.49 0.49 0.9 0.9 1.5 1.5 ] beginCap FALSE endCap FALSE creaseAngle 0.9 solid FALSE } } ] } #A crystal platter on the table Transform { rotation 0 1 0 1.2 # rotate crystal about Y axis by 1.2 rads translation 1.0 0.05 -1.1 children [ Shape { appearance Appearance { material Material { diffuseColor 0 0.7 0.5 transparency 0.3 } } geometry Extrusion { crossSection [ 1.0000 0.0000 # Coordinates of a unit CCW circle 0.9511 -0.3090 # generated with Matlab (20 samples) 0.8090 -0.5878 0.5878 -0.8090 0.3090 -0.9511 0.0000 -1.0000 -0.3090 -0.9511 -0.5878 -0.8090 -0.8090 -0.5878 -0.9511 -0.3090 -1.0000 0.0000 -0.9511 0.3090 -0.8090 0.5878 -0.5878 0.8090 -0.3090 0.9511 0.0000 1.0000 0.3090 0.9511 0.5878 0.8090 0.8090 0.5878 0.9511 0.3090 1.0000 0.0000 ] spine [ 0 0.00 0 0 0.05 0 0 0.10 0 0 0.15 0 0 0.20 0 0 0.25 0 0 0.30 0 0 0.35 0 0 0.40 0 0 0.45 0 0 0.50 0 0 0.55 0 0 0.60 0 ] scale [ 0.20 0.40 0.05 0.10 0.05 0.10 0.05 0.10 0.05 0.10 0.15 0.30 0.20 0.40 0.25 0.50 0.30 0.60 0.35 0.70 0.40 0.80 0.45 0.90 0.50 1.00 ] beginCap TRUE endCap FALSE creaseAngle 0.9 solid FALSE } } ] } # This is the small table in the back Transform { scale 0.3 1.0 0.3 translation 2 0 -7 children [ USE table ] } # Default viewpoint Viewpoint { position 0 0 18 description "Front" } # Additional viewpoint from afar Viewpoint { position 0 8 20 description "Angled" orientation 1 0.2 0 -0.4 } # Additional viewpoint near center Viewpoint { position 0 0 7.5 description "Close Up" } Background { skyColor 0.5 0.5 0.7 } Inline { url "chair.wrl"} Inline { url "awning.wrl"}