#VRML V2.0 utf8 PROTO Railing [ ] { Transform { translation -15 0 0 rotation 0 0 1 1.57 children [ Shape { appearance Appearance { material Material { diffuseColor 1 1 0 } } geometry Cylinder { radius 0.05 height 20 } } ] } } PROTO GlasRailing [ ] { Viewpoint { position 0 0 5 } NavigationInfo { type "EXAMINE" } # ---------------------------- # # PROTO's worden nu aangemaakt # # ---------------------------- # PROTO Paaltje [ ] { Transform { # De paal zelf translation 0 0.05 0 children [ Shape { appearance Appearance { texture ImageTexture { url "textures/Paaltje.jpg" } } geometry Box { size 0.1 1.22 0.1 } } ] } Transform { # Blokje waar paal op staat translation 0 -0.6 0 children [ Shape { appearance Appearance { material Material { diffuseColor 0.2 0.3 0.3 } } geometry Box { size 0.3 0.1 0.3 } } ] } # ---------------------- # # Schroefjes in paalvoet # # ---------------------- # Transform { # Schroefje 1 translation 0.1 -0.55 0.1 children [ Shape { appearance Appearance { material Material { diffuseColor 1 1 1 } } geometry Cylinder { height 0.01 radius 0.03 } } ] } Transform { # Schroefje 2 translation -0.1 -0.55 -0.1 children [ Shape { appearance Appearance { material Material { diffuseColor 1 1 1 } } geometry Cylinder { height 0.01 radius 0.03 } } ] } Transform { translation 0 0.6 -0.055 children [ DEF TussenBlokje Shape { geometry Box { size 0.01 0.1 0.01 } } ] } Transform { translation 0 0.27 -0.055 children [ USE TussenBlokje ] } Transform { translation 0 -0.08 -0.055 children [ USE TussenBlokje ] } Transform { translation 0 -0.4 -0.055 children [ USE TussenBlokje ] } Transform { translation 0 0.05 -0.09 scale 1 12 6 children [ USE TussenBlokje ] } Transform { translation 0 0.65 -0.1 children [ Shape { appearance Appearance { material Material { diffuseColor 0.5 0.5 1 } } geometry Cylinder { radius 0.02 height 0.1 } } ] } # --------------- # # Glasplaathouder # # --------------- # Transform { translation 0.1 0.45 0 children [ DEF GlasHouder1 Shape { appearance Appearance { texture ImageTexture { url "textures/Glashouder1.jpg" } } geometry Box { size 0.1 0.1 0.05 } } ] } Transform { translation -0.1 0.45 0 children [ DEF GlasHouder2 Shape { appearance Appearance { texture ImageTexture { url "textures/Glashouder2.jpg" } } geometry Box { size 0.1 0.1 0.05 } } ] } Transform { translation 0.1 -0.45 0 children [ USE GlasHouder1 ] } Transform { translation -0.1 -0.45 0 children [ USE GlasHouder2 ] } # --------- # # Glasplaat # # --------- # Transform { translation 2.5 0.05 0 children [ Shape { appearance Appearance { material Material { diffuseColor 0 0.3 0.5 transparency 0.6 } } geometry Box { size 4.80 1.15 0.01 } } ] } } # -------------------------------- # # Maak de paaltjes op het perron 1 # # -------------------------------- # Transform { translation 0 1.38 -2 # Railing ligt nu netjes op het mini-paaltje children [ Railing {} ] } Transform { translation -25 0.65 -1.9 children [ Paaltje {} ] } Transform { translation -20 0.65 -1.9 children [ Paaltje {} ] } Transform { translation -15 0.65 -1.9 children [ Paaltje {} ] } Transform { translation -10 0.65 -1.9 children [ Paaltje {} ] } # -------------------------------- # # Maak de paaltjes op het perron 2 # # -------------------------------- # Transform { translation 0 1.38 16 children [ Railing {} ] } Transform { rotation 0 1 0 3.14 translation -20 0.65 15.9 children [ Paaltje {} ] } Transform { rotation 0 1 0 3.14 translation -15 0.65 15.9 children [ Paaltje {} ] } Transform { rotation 0 1 0 3.14 translation -10 0.65 15.9 children [ Paaltje {} ] } Transform { rotation 0 1 0 3.14 translation -5 0.65 15.9 children [ Paaltje {} ] } } PROTO LosPaaltje [ ] { Transform { # De paal zelf translation 0 0.05 0 children [ Shape { appearance Appearance { texture ImageTexture { url "textures/Paaltje.jpg" } } geometry Box { size 0.1 1.22 0.1 } } ] } Transform { # Blokje waar paal op staat translation 0 -0.6 0 children [ Shape { appearance Appearance { material Material { diffuseColor 0.2 0.3 0.3 } } geometry Box { size 0.3 0.1 0.3 } } ] } # ---------------------- # # Schroefjes in paalvoet # # ---------------------- # Transform { # Schroefje 1 translation 0.1 -0.55 0.1 children [ Shape { appearance Appearance { material Material { diffuseColor 1 1 1 } } geometry Cylinder { height 0.01 radius 0.03 } } ] } Transform { # Schroefje 2 translation -0.1 -0.55 -0.1 children [ Shape { appearance Appearance { material Material { diffuseColor 1 1 1 } } geometry Cylinder { height 0.01 radius 0.03 } } ] } Transform { translation 0 0.6 -0.055 children [ DEF TussenBlokje Shape { geometry Box { size 0.01 0.1 0.01 } } ] } Transform { translation 0 0.27 -0.055 children [ USE TussenBlokje ] } Transform { translation 0 -0.08 -0.055 children [ USE TussenBlokje ] } Transform { translation 0 -0.4 -0.055 children [ USE TussenBlokje ] } Transform { translation 0 0.05 -0.09 scale 1 12 6 children [ USE TussenBlokje ] } Transform { translation 0 0.65 -0.1 children [ Shape { appearance Appearance { material Material { diffuseColor 0.5 0.5 1 } } geometry Cylinder { radius 0.02 height 0.1 } } ] } # --------------- # # Glasplaathouder # # --------------- # Transform { translation 0.1 0.45 0 children [ DEF GlasHouder1 Shape { appearance Appearance { texture ImageTexture { url "textures/Glashouder1.jpg" } } geometry Box { size 0.1 0.1 0.05 } } ] } Transform { translation -0.1 0.45 0 children [ DEF GlasHouder2 Shape { appearance Appearance { texture ImageTexture { url "textures/Glashouder2.jpg" } } geometry Box { size 0.1 0.1 0.05 } } ] } Transform { translation 0.1 -0.45 0 children [ USE GlasHouder1 ] } Transform { translation -0.1 -0.45 0 children [ USE GlasHouder2 ] } } PROTO LosseGlasplaat [ ] { # --------- # # Glasplaat # # --------- # Transform { translation 2.5 0.05 0 children [ Shape { appearance Appearance { material Material { diffuseColor 0 0.3 0.5 transparency 0.6 } } geometry Box { size 4.80 1.15 0.01 } } ] } } PROTO LosseGlasplaatSchuin [ ] { # ----------------- # # Schuine Glasplaat # # ----------------- # Transform { # Maak schuine glasplaat aan translation 4.75 -0.5 -3 rotation 0 1 0 -1.57 children [ Shape { # Glasplaat 1 appearance Appearance { material Material { diffuseColor 0 0.3 0.5 transparency 0.6 } } geometry IndexedFaceSet { coord Coordinate { point [ -0.01 0 0, 0 0 0, 0 0.8 5, -0.01 0.8 5 -0.01 1.1 0, 0 1.1 0, 0 1.9 5, -0.01 1.9 5 ] } 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 } } ] } } PROTO FietsGlasRailing [ ] { NavigationInfo { type "EXAMINE" } Transform { children [ LosseGlasplaatSchuin {} ] } Transform { translation 4.85 0 -3 children [ LosPaaltje {} ] } Transform { translation 4.92 0 -3 scale 0.2 1 1 children [ LosseGlasplaat {} ] } Transform { translation 6 0 -3 children [ LosPaaltje {} ] } Transform { translation 6.35 -0.75 0 children [ LosseGlasplaatSchuin {} ] } # ---------------------- # # Railing voor fietsbaan # # ---------------------- # Transform { translation 6.15 0.55 -3.1 rotation 0 0 1 -0.15 scale 0.25 1 1 children [ Railing {} ] } Transform { translation 6.3 0.75 -3.1 scale 0.06 1 1 children [ Railing {} ] } Transform { translation 12.4 -0.23 -3.1 rotation 0 0 1 -0.15 scale 0.26 1 1 children [ Railing {} ] } } #GlasRailing {} FietsGlasRailing {}