; Zarážedlo betonové
; ------------------
; (c) Derryck, 2011
; Originál se nachází v Brně
; Použity části modelu Vince Blacka

; ZARÁŽEDLO
CreateMeshBuilder,
AddVertex,-1.73 ,  0 ,  1.51,		1,0,0,
AddVertex,-1.73 ,  1.82 ,  1.29,	1,0,0,
AddVertex,-1.73 ,  1.82 ,  0.54,	1,0,0,
AddVertex,-1.73 ,  0 ,  0.54,		1,0,0,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture,zar_bok.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0.22, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,
AddVertex,-1.73 ,  0 ,  0.54 ,
AddVertex,-1.73 ,  1.82 ,  0.54 ,
AddVertex, 1.73 ,  1.82 ,  0.54 ,
AddVertex, 1.73 ,  0 ,  0.54 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture,zar_predek.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,
AddVertex,-0.2 ,  -0.2 ,  0.539 ,
AddVertex,-0.2 ,  0.2 ,  0.539 ,
AddVertex, 0.2 ,  0.2 ,  0.539 ,
AddVertex, 0.2 ,  -0.2 ,  0.539 ,
Rotate, 0,0,1,45
Translate,0,2.2,0.1
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture,posunzakazan.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,
SetDecalTransparentColor,0,0,0,

CreateMeshBuilder,
AddVertex,-0.2 ,  -0.2 ,  0.539 ,
AddVertex,-0.2 ,  0.2 ,  0.539 ,
AddVertex, 0.2 ,  0.2 ,  0.539 ,
AddVertex, 0.2 ,  -0.2 ,  0.539 ,
Rotate, 0,0,1,45
Translate,0,2.2,0.1
AddFace, 3,2,1,0
GenerateNormals,
LoadTexture,..\Lampa\poj_zadek.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder
Cylinder, 8, 0.02, 0.02, 0.5
Translate,0 ,  2.05 , 0.66 ,
LoadTexture,..\TractionMains\SloupII.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0 
SetTextureCoordinates,2,0.2,1 
SetTextureCoordinates,3,0.2,0 
SetTextureCoordinates,4,0.4,1 
SetTextureCoordinates,5,0.4,0 
SetTextureCoordinates,6,0.6,1 
SetTextureCoordinates,7,0.6,0 
SetTextureCoordinates,8,0.8,1 
SetTextureCoordinates,9,0.8,0 
SetTextureCoordinates,10,1,1
SetTextureCoordinates,11,1,0 
SetTextureCoordinates,12,0.8,1 
SetTextureCoordinates,13,0.8,0 
SetTextureCoordinates,14,0.6,1 
SetTextureCoordinates,15,0.6,0 

CreateMeshBuilder,
AddVertex,-1.3 ,  1.15 ,  0.42 ,
AddVertex,-1.3 ,  1.45 ,  0.42 ,
AddVertex, 1.35 ,  1.45 ,  0.42 ,
AddVertex, 1.35 ,  1.15 ,  0.42 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture,zar_lista.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,
AddVertex,-1.3 ,  1.15 ,  0.54 ,
AddVertex,-1.3 ,  1.45 ,  0.54 ,
AddVertex, -1.3 ,  1.45 ,  0.42 ,
AddVertex, -1.3 ,  1.15 ,  0.42 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture,zar_listaB.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,
AddVertex,1.35 ,  1.15 ,  0.54 ,
AddVertex,1.35 ,  1.45 ,  0.54 ,
AddVertex, 1.35 ,  1.45 ,  0.42 ,
AddVertex, 1.35 ,  1.15 ,  0.42 ,
AddFace,3,2,1,0
GenerateNormals,
LoadTexture,zar_listaB.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,
AddVertex,-1.3 ,  1.45 ,  0.42 ,
AddVertex,-1.3 ,  1.45 ,  0.54 ,
AddVertex, 1.35 ,  1.45 ,  0.54 ,
AddVertex, 1.35 ,  1.45 ,  0.42 ,
AddFace,0,1,2,3
GenerateNormals,
LoadTexture,zar_lista.png,
SetTextureCoordinates,0, 0.29, 1,
SetTextureCoordinates,1, 0.29, 0,
SetTextureCoordinates,2, 0.68, 0,
SetTextureCoordinates,3, 0.68, 1,

CreateMeshBuilder,
AddVertex,-1.3 ,  1.15 ,  0.42 ,
AddVertex,-1.3 ,  1.15 ,  0.54 ,
AddVertex, 1.35 ,  1.15 ,  0.54 ,
AddVertex, 1.35 ,  1.15 ,  0.42 ,
AddFace,3,2,1,0
GenerateNormals,
LoadTexture,zar_lista.png,
SetTextureCoordinates,0, 0.29, 1,
SetTextureCoordinates,1, 0.29, 0,
SetTextureCoordinates,2, 0.68, 0,
SetTextureCoordinates,3, 0.68, 1,

CreateMeshBuilder,
AddVertex, 1.73 ,  0 ,  0.54 ,
AddVertex, 1.73 ,  1.82 ,  0.54 ,
AddVertex, 1.73 ,  1.82 ,  1.29 ,
AddVertex, 1.73 ,  0 ,  1.51 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture,zar_bok.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0.22, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,
AddVertex,-1.73 ,  1.82 ,  0.54 ,
AddVertex,-1.73 ,  1.82 ,  1.29 ,
AddVertex, 1.73 ,  1.82 ,  1.29 ,
AddVertex, 1.73 ,  1.82 ,  0.54 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture,zar_zadek.png,
SetTextureCoordinates,0, 0, 0.75,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 0.75,

CreateMeshBuilder,
AddVertex, 1.73 ,  0 ,  1.51 , 0,0,-1
AddVertex, 1.73 ,  1.82 ,  1.29 , 0,0,-1
AddVertex,-1.73 ,  1.82 ,  1.29 , 0,0,-1
AddVertex,-1.73 ,  0 ,  1.51 , 0,0,-1
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture,zar_zadek.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,



; NÁRAZNÍK LEVÝ
CreateMeshBuilder,
AddVertex,-1.04 ,  1.17 ,  0.4 ,
AddVertex,-1.04 ,  1.43 ,  0.4 ,
AddVertex,-0.79 ,  1.43 ,  0.4 ,
AddVertex,-0.79 ,  1.17 ,  0.4 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture,zar_nar_drz.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,
AddVertex,-0.79 ,  1.17 ,  0.4 ,
AddVertex,-0.79 ,  1.43 ,  0.4 ,
AddVertex,-0.79 ,  1.43 ,  0.44 ,
AddVertex,-0.79 ,  1.17 ,  0.44 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture,zar_nar_drz_bok.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,
AddVertex,-1.04 ,  1.43 ,  0.4 ,
AddVertex,-1.04 ,  1.43 ,  0.44 ,
AddVertex,-0.79 ,  1.43 ,  0.44 ,
AddVertex,-0.79 ,  1.43 ,  0.4 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture,zar_nar_drz_vrch.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,
AddVertex,-1.04 ,  1.17 ,  0.44 ,
AddVertex,-1.04 ,  1.43 ,  0.44 ,
AddVertex,-1.04 ,  1.43 ,  0.4 ,
AddVertex,-1.04 ,  1.17 ,  0.4 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture,zar_nar_drz_bok.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,
AddVertex,-1.04 ,  1.17 ,  0.44 ,
AddVertex,-1.04 ,  1.17 ,  0.4 ,
AddVertex,-0.79 ,  1.17 ,  0.4 ,
AddVertex,-0.79 ,  1.17 ,  0.44 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture,zar_nar_drz_vrch.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder
Cylinder, 10, 0.09, 0.09, 0.15
Rotate, 0,1,0,-90
Rotate, 1,0,0,90
Translate,-0.91 ,  1.3 , 0.33 ,
LoadTexture,zar_nar_valec.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0 
SetTextureCoordinates,2,0.2,1 
SetTextureCoordinates,3,0.2,0 
SetTextureCoordinates,4,0.4,1 
SetTextureCoordinates,5,0.4,0 
SetTextureCoordinates,6,0.6,1 
SetTextureCoordinates,7,0.6,0 
SetTextureCoordinates,8,0.8,1 
SetTextureCoordinates,9,0.8,0 
SetTextureCoordinates,10,1,1
SetTextureCoordinates,11,1,0 
SetTextureCoordinates,12,0.8,1 
SetTextureCoordinates,13,0.8,0 
SetTextureCoordinates,14,0.6,1 
SetTextureCoordinates,15,0.6,0 
SetTextureCoordinates,16,0.4,1 
SetTextureCoordinates,17,0.4,0 
SetTextureCoordinates,18,0.2,1 
SetTextureCoordinates,19,0.2,0 


CreateMeshBuilder
Cylinder, 10, 0.1, 0.1, 0.25
Rotate, 0,1,0,-90
Rotate, 1,0,0,90
Translate,-0.91 ,  1.3 , 0.13 ,
LoadTexture,zar_nar_valec_t.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0 
SetTextureCoordinates,2,0.2,1 
SetTextureCoordinates,3,0.2,0 
SetTextureCoordinates,4,0.4,1 
SetTextureCoordinates,5,0.4,0 
SetTextureCoordinates,6,0.6,1 
SetTextureCoordinates,7,0.6,0 
SetTextureCoordinates,8,0.8,1 
SetTextureCoordinates,9,0.8,0 
SetTextureCoordinates,10,1,1
SetTextureCoordinates,11,1,0 
SetTextureCoordinates,12,0.8,1 
SetTextureCoordinates,13,0.8,0 
SetTextureCoordinates,14,0.6,1 
SetTextureCoordinates,15,0.6,0 
SetTextureCoordinates,16,0.4,1 
SetTextureCoordinates,17,0.4,0 
SetTextureCoordinates,18,0.2,1 
SetTextureCoordinates,19,0.2,0 

CreateMeshBuilder,
AddVertex,-1.15 ,  1.1 ,  0 ,
AddVertex,-1.15 ,  1.5 ,  0 ,
AddVertex,-0.67 ,  1.5 ,  0 ,
AddVertex,-0.67 ,  1.1 ,  0 ,
AddFace, 0, 1, 2, 3
AddFace, 3,2,1,0
GenerateNormals,
LoadTexture,zar_nar.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,
SetDecalTransparentColor,4,254,4 



; NÁRAZNÍK PRAVÝ
CreateMeshBuilder,
AddVertex, 0.79 ,  1.17 ,  0.4 ,
AddVertex, 0.79 ,  1.43 ,  0.4 ,
AddVertex, 1.04 ,  1.43 ,  0.4 ,
AddVertex, 1.04 ,  1.17 ,  0.4 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture,zar_nar_drz.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,
AddVertex, 1.04 ,  1.17 ,  0.4 ,
AddVertex, 1.04 ,  1.43 ,  0.4 ,
AddVertex, 1.04 ,  1.43 ,  0.44 ,
AddVertex, 1.04 ,  1.17 ,  0.44 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture,zar_nar_drz_bok.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,
AddVertex, 0.79 ,  1.43 ,  0.4 ,
AddVertex, 0.79 ,  1.43 ,  0.44 ,
AddVertex, 1.04 ,  1.43 ,  0.44 ,
AddVertex, 1.04 ,  1.43 ,  0.4 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture,zar_nar_drz_vrch.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,
AddVertex, 0.79 ,  1.17 ,  0.44 ,
AddVertex, 0.79 ,  1.43 ,  0.44 ,
AddVertex, 0.79 ,  1.43 ,  0.4 ,
AddVertex, 0.79 ,  1.17 ,  0.4 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture,zar_nar_drz_bok.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,
AddVertex, 0.79 ,  1.17 ,  0.44 ,
AddVertex, 0.79 ,  1.17 ,  0.4 ,
AddVertex, 1.04 ,  1.17 ,  0.4 ,
AddVertex, 1.04 ,  1.17 ,  0.44 ,
AddFace, 0, 1, 2, 3

GenerateNormals,
LoadTexture,zar_nar_drz_vrch.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder
Cylinder, 10, 0.09, 0.09, 0.15
Rotate, 0,1,0,-90
Rotate, 1,0,0,90
Translate,0.91 ,  1.3 , 0.33 ,
LoadTexture,zar_nar_valec.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0 
SetTextureCoordinates,2,0.2,1 
SetTextureCoordinates,3,0.2,0 
SetTextureCoordinates,4,0.4,1 
SetTextureCoordinates,5,0.4,0 
SetTextureCoordinates,6,0.6,1 
SetTextureCoordinates,7,0.6,0 
SetTextureCoordinates,8,0.8,1 
SetTextureCoordinates,9,0.8,0 
SetTextureCoordinates,10,1,1
SetTextureCoordinates,11,1,0 
SetTextureCoordinates,12,0.8,1 
SetTextureCoordinates,13,0.8,0 
SetTextureCoordinates,14,0.6,1 
SetTextureCoordinates,15,0.6,0 
SetTextureCoordinates,16,0.4,1 
SetTextureCoordinates,17,0.4,0 
SetTextureCoordinates,18,0.2,1 
SetTextureCoordinates,19,0.2,0 

CreateMeshBuilder
Cylinder, 10, 0.1, 0.1, 0.25
Rotate, 0, 1, 0, -90
Rotate, 1, 0, 0, 90
Translate,0.91 ,  1.3 , 0.13 ,
LoadTexture,zar_nar_valec_t.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0 
SetTextureCoordinates,2,0.2,1 
SetTextureCoordinates,3,0.2,0 
SetTextureCoordinates,4,0.4,1 
SetTextureCoordinates,5,0.4,0 
SetTextureCoordinates,6,0.6,1 
SetTextureCoordinates,7,0.6,0 
SetTextureCoordinates,8,0.8,1 
SetTextureCoordinates,9,0.8,0 
SetTextureCoordinates,10,1,1
SetTextureCoordinates,11,1,0 
SetTextureCoordinates,12,0.8,1 
SetTextureCoordinates,13,0.8,0 
SetTextureCoordinates,14,0.6,1 
SetTextureCoordinates,15,0.6,0 
SetTextureCoordinates,16,0.4,1 
SetTextureCoordinates,17,0.4,0 
SetTextureCoordinates,18,0.2,1 
SetTextureCoordinates,19,0.2,0 

CreateMeshBuilder,
AddVertex, 0.67 ,  1.1 ,  0 ,
AddVertex, 0.67 ,  1.5 ,  0 ,
AddVertex, 1.15 ,  1.5 ,  0 ,
AddVertex, 1.15 ,  1.1 ,  0 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,zar_nar.png,
SetTextureCoordinates,0, 1, 1,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 0, 0,
SetTextureCoordinates,3, 0, 1,
SetDecalTransparentColor,4,254,4 

