#VRML V2.0 utf8 PROTO Prullenbak [ ] { Transform { translation -5 0 0 rotation 1 0 0 1.57 children [ Shape { appearance Appearance { material Material { diffuseColor 0.9 0.9 0.2 } texture ImageTexture { url "textures/Prullenbak.jpg" } } geometry IndexedFaceSet { coord Coordinate { point [ -1 0 0.7, 0 0 0.7, 0 0 -0.7, -1 0 -0.7 -1 0.5 0.7, 0 0.5 0.7, 0 1 -0.7, -1 1 -0.7 ] } coordIndex [ 0 4 7 3 -1 0 1 2 3 -1 0 1 5 4 -1 1 2 6 5 -1 4 5 6 7 -1 2 3 7 6 -1 ] solid FALSE } } ] } Transform { translation -6 0.7 1 children [ Shape { appearance Appearance { texture ImageTexture { url "textures/Prullenbakgat.jpg" } } geometry IndexedFaceSet { coord Coordinate { point [ 0 0 0, 1 0 0, 1 0 -1, 0 0 -1 # Grondvlak 0 0.5 -0.25, 1 0.5 -0.25, 1 0.3 -1, 0 0.3 -1 # Topvlak ] } coordIndex [ 0 4 7 3 -1 4 5 6 7 -1 0 1 2 3 -1 0 1 5 4 -1 1 2 6 5 -1 2 3 7 6 -1 ] solid FALSE } } ] } Transform { # Prullenbak houder translation -6.15 -0.3 0.3 children [ DEF Houder Shape { appearance Appearance { texture ImageTexture { url "textures/Prullenbakmetaal.jpg" } } geometry Cylinder { height 2.75 radius 0.09 } } ] } Transform { translation -4.85 -0.3 0.3 children [ USE Houder ] } Transform { translation -5.5 1.1 0.3 rotation 0 0 1 1.57 scale 1 0.45 1 children [ USE Houder ] } Transform { translation -4.85 1.1 0.3 children [ DEF Bol Shape { appearance Appearance { texture ImageTexture { url "textures/Prullenbakmetaal.jpg" } } geometry Sphere { radius 0.1 } } ] } Transform { translation -6.15 1.1 0.3 children [ USE Bol ] } Transform { # Voetje translation -4.85 -1.6 0.3 children [ DEF Voetje Shape { appearance Appearance { material Material { diffuseColor 0.6 0.7 0.7 } } geometry Cylinder { radius 0.25 height 0.1 } } ] } Transform { translation -6.15 -1.6 0.3 children [ USE Voetje ] } } PROTO Lamp [ ] { Shape { appearance Appearance { material Material { } } geometry Box { size 0.25 4 0.25 } } Transform { translation 0 2 0.5 children [ Shape { appearance Appearance { material Material { transparency 0.5 } } geometry Sphere { radius 0.5 } } ] } } PROTO Metrobord [ ] { PROTO Vierkant [ ] { Transform { # Vierkant blok translation 0 2 0 children [ Shape { appearance Appearance { texture ImageTexture { url "textures/Bordsign1.jpg" } } geometry Box { size 1 1 1 } } ] } # --------------------------- # # Maak randen om vierkant aan # # --------------------------- # Transform { translation 0 2.5 0.51 rotation 0 0 1 1.57 children [ DEF Omlijning Shape { appearance Appearance { material Material { diffuseColor 0 0.4 0.5 } } geometry Cylinder { radius 0.01 height 1 } } ] } Transform { translation 0 1.5 0.51 rotation 0 0 1 1.57 children [ USE Omlijning ] } Transform { translation 0.5 2 0.51 children [ USE Omlijning ] } Transform { translation -0.5 2 0.51 children [ USE Omlijning ] } Transform { translation 0 2.5 -0.51 rotation 0 0 1 1.57 children [ USE Omlijning ] } Transform { translation 0 1.5 -0.51 rotation 0 0 1 1.57 children [ USE Omlijning ] } Transform { translation 0.5 2 -0.51 children [ USE Omlijning ] } Transform { translation -0.5 2 -0.51 children [ USE Omlijning ] } Transform { translation -0.5 2.5 0 rotation 1 0 0 1.57 children [ USE Omlijning ] } Transform { translation -0.5 1.5 0 rotation 1 0 0 1.57 children [ USE Omlijning ] } Transform { translation 0.5 2.5 0 rotation 1 0 0 1.57 children [ USE Omlijning ] } Transform { translation 0.5 1.5 0 rotation 1 0 0 1.57 children [ USE Omlijning ] } } # ------------------------------------- # # Nu wordt de gehele paal geconstrueerd # # ------------------------------------- # Transform { # Paal translation 2 0 0 children [ Shape { appearance Appearance { material Material { diffuseColor 0.6 0.6 0.6 } } geometry Box { size 0.25 4 0.25 } } ] } Transform { # Vierkant translation 2 0 0 rotation 0 1 0 0.78 children [ Vierkant {} ] } Transform { # Ronde voetje translation 2 -2 0 children [ Shape { appearance Appearance { material Material { diffuseColor 0.6 0.7 0.7 } } geometry Cylinder { radius 0.25 height 0.1 } } ] } } PROTO Haltebord [ ] { Transform { # Paal 1 translation -1.8 -0.25 0 children [ DEF Paal Shape { appearance Appearance { texture ImageTexture { url "textures/Haltebord2.jpg" } } geometry Box { size 0.1 3.5 0.1 } } ] } Transform { # Paal 2 translation -4.2 -0.25 0 children [ USE Paal ] } Transform { # Bord tussen palen translation -3 1.25 0 children [ Shape { appearance Appearance { texture ImageTexture { url "textures/Haltebord1.jpg" } } geometry Box { size 2.2 0.5 0.2 } } ] } Transform { # Ronde voetje paal 1 translation -1.8 -2 0 children [ DEF Voetje Shape { appearance Appearance { material Material { diffuseColor 0.6 0.7 0.7 } } geometry Cylinder { radius 0.25 height 0.1 } } ] } Transform { # Ronde voetje paal 2 translation -4.2 -2 0 children [ USE Voetje ] } Transform { # Schroefjes in bord translation -4.18 1.4 0 rotation 0 0 1 1.57 children [ DEF Schroefje Shape { appearance Appearance { material Material { diffuseColor 0.6 0.6 0 } } geometry Cylinder { radius 0.02 height 0.25 } } ] } Transform { translation -1.82 1.4 0 rotation 0 0 1 1.57 children [ USE Schroefje ] } Transform { translation -4.18 1.1 0 rotation 0 0 1 1.57 children [ USE Schroefje ] } Transform { translation -1.82 1.1 0 rotation 0 0 1 1.57 children [ USE Schroefje ] } } PROTO Aankomstbord [ field MFString url [] ] { Transform { # Hoofdpaal translation 4 -0.15 0 children [ Shape { appearance Appearance { material Material { diffuseColor 0.7 0.7 0.7 } texture ImageTexture { } } geometry Box { size 0.25 3.7 0.25 } } ] } Transform { # Ronde voetje van hoofdpaal translation 4 -2 0 children [ Shape { appearance Appearance { material Material { diffuseColor 0.6 0.7 0.7 } } geometry Cylinder { radius 0.25 height 0.1 } } ] } Transform { # Het vlak boven glasvenster translation 4 1.45 0.8 children [ DEF Vlak Shape { appearance Appearance { material Material { diffuseColor 0.2 0.2 0.4 } } geometry Box { size 0.75 0.05 2.2 } } ] } Transform { # Vlak onder glasvenster translation 4 1.15 0.8 children [ USE Vlak ] } Transform { # Glasvenster translation 4.3 1.3 1.05 children [ DEF Glas Shape { appearance Appearance { material Material { transparency 0.7 } } geometry Box { size 0.05 0.3 1.6 } } ] } Transform { # Glasvenster translation 3.7 1.3 1.05 children [ USE Glas ] } Transform { # Blok tussen glas in waar de tijd op staat translation 4 1.3 1.05 children [ Shape { appearance Appearance { texture ImageTexture { url IS url } material Material { } } geometry Box { size 0.4 0.25 1.6 } } ] } Transform { # Voorblok translation 4 1.3 1.88 children [ DEF Blok Shape { appearance Appearance { material Material { diffuseColor 0.2 0.2 0.4 } } geometry Box { size 0.75 0.3 0.05 } } ] } Transform { # Achterblok translation 4 1.3 0 scale 1 1 12 children [ USE Blok ] } } PROTO AankomstbordCS5 [ ] { Transform { center 4 0 0 rotation 0 1 0 3.14 children [ Aankomstbord { url "textures/AankomsttijdCS5.jpg" } ] } } PROTO AankomstbordCS51 [ ] { Transform { center 4 0 0 rotation 0 1 0 3.14 children [ Aankomstbord { url "textures/AankomsttijdCS51.jpg" } ] } } PROTO AankomstbordAveen5 [ ] { Aankomstbord { url "textures/AankomsttijdAveen5.jpg" } } PROTO AankomstbordAveen51 [ ] { Aankomstbord { url "textures/AankomsttijdAveen51.jpg" } } Lamp {} Metrobord {} Haltebord {} Prullenbak {} #AankomstbordCS51{} AankomstbordAveen5{}