; Vůz AB českých drah (rekonstrukce z vlastních textur)
; -----------------------------------------------------
; (c) Vince Black, 2008
;
; Textury byly použity z vlastních fotografií z různých vozů. 

; --- SKŘÍŇ ------------------------------------------------------------------------------------------------------------------------------------
; bok levý					
CreateMeshBuilder,						
AddVertex,-1.34 ,  1.06 ,  12.1 ,
AddVertex,-1.34 ,  3.18 ,  12.1 ,
AddVertex,-1.44 ,  3.18 ,  10.9 ,
AddVertex,-1.44 ,  3.18 , -10.95 ,
AddVertex,-1.34 ,  3.18 , -12.1 ,
AddVertex,-1.34 ,  1.06 , -12.1 ,
AddVertex,-1.44 ,  1.06 , -10.95 ,
AddVertex,-1.44 ,  1.06 ,  10.9 ,
AddFace, 0, 1, 2, 7						
AddFace, 7, 2, 3, 6						
AddFace, 6, 3, 4, 5						
GenerateNormals,						
LoadTexture,vag_CD_AB_bok_l.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 0.05, 0,						
SetTextureCoordinates,3, 0.95, 0,	
SetTextureCoordinates,4, 1, 0,	
SetTextureCoordinates,5, 1, 1,	
SetTextureCoordinates,6, 0.95, 1,	
SetTextureCoordinates,7, 0.05, 1,	
SetDecalTransparentColor,0,0,0,

; bok pravý						
CreateMeshBuilder,
AddVertex, 1.34 ,  1.06 , -12.1 ,
AddVertex, 1.34 ,  3.18 , -12.1 ,
AddVertex, 1.44 ,  3.18 , -10.95 ,
AddVertex, 1.44 ,  3.18 ,  10.9 ,
AddVertex, 1.34 ,  3.18 ,  12.1 ,
AddVertex, 1.34 ,  1.06 ,  12.1 ,
AddVertex, 1.44 ,  1.06 ,  10.9 ,
AddVertex, 1.44 ,  1.06 , -10.95 ,
AddFace, 0, 1, 2, 7						
AddFace, 7, 2, 3, 6						
AddFace, 6, 3, 4, 5						
GenerateNormals,						
LoadTexture,vag_CD_AB_bok_p.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 0.05, 0,						
SetTextureCoordinates,3, 0.95, 0,	
SetTextureCoordinates,4, 1, 0,	
SetTextureCoordinates,5, 1, 1,	
SetTextureCoordinates,6, 0.95, 1,	
SetTextureCoordinates,7, 0.05, 1,	
SetDecalTransparentColor,0,0,0,						

; držadlo - přední levé
CreateMeshBuilder,						
AddVertex,-1.45 ,  1.26 , -10.85 ,
AddVertex,-1.45 ,  1.96 , -10.85 ,
AddVertex,-1.45 ,  1.96 , -10.92 ,
AddVertex,-1.45 ,  1.26 , -10.92 ,
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_drzadlo_p.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,	

; držadlo - přední pravé
CreateMeshBuilder,						
AddVertex, 1.45 ,  1.26 , -10.85 ,
AddVertex, 1.45 ,  1.96 , -10.85 ,
AddVertex, 1.45 ,  1.96 , -10.92 ,
AddVertex, 1.45 ,  1.26 , -10.92 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_drzadlo_l.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,	

; držadlo - zadní levé
CreateMeshBuilder,						
AddVertex,-1.45 ,  1.26 ,  10.82 ,
AddVertex,-1.45 ,  1.96 ,  10.82 ,
AddVertex,-1.45 ,  1.96 ,  10.75 ,
AddVertex,-1.45 ,  1.26 ,  10.75 ,
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_drzadlo_l.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,	

; držadlo - zadní pravé
CreateMeshBuilder,						
AddVertex, 1.45 ,  1.26 ,  10.85 ,
AddVertex, 1.45 ,  1.96 ,  10.85 ,
AddVertex, 1.45 ,  1.96 ,  10.78 ,
AddVertex, 1.45 ,  1.26 ,  10.78 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_drzadlo_p.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,	


; cedule odkud - kam
CreateMeshBuilder,						
AddVertex,-1.45 ,  1.45 ,  10.5 ,
AddVertex,-1.45 ,  1.85 ,  10.5 ,
AddVertex,-1.45 ,  1.85 ,  9.8 ,
AddVertex,-1.45 ,  1.45 ,  9.8 ,
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_cedule.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,	

CreateMeshBuilder,						
AddVertex, 1.45 ,  1.5 ,  9.9 ,
AddVertex, 1.45 ,  1.9 ,  9.9 ,
AddVertex, 1.45 ,  1.9 ,  10.6 ,
AddVertex, 1.45 ,  1.5 ,  10.6 ,
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_cedule.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,				

; čelní stěna - půlkruh levý
CreateMeshBuilder,						
AddVertex,-1.34 ,  3.18 , -12.1 ,
AddVertex,-1.32 ,  3.27 , -12.1 ,
AddVertex,-1.28 ,  3.43 , -12.1 ,
AddVertex,-1.18 ,  3.61 , -12.1 ,
AddVertex,-1.08 ,  3.72 , -12.1 ,
AddVertex,-0.97 ,  3.83 , -12.1 ,
AddVertex,-0.83 ,  3.93 , -12.1 ,
AddVertex,-0.63 ,  4.04 , -12.1 ,
AddVertex,-0.5 ,  4.11 , -12.1 ,
AddVertex,-0.36 ,  4.17 , -12.1 ,
AddVertex,-0.2 ,  4.21 , -12.1 ,
AddVertex,-0.07 ,  4.22 , -12.1 ,
AddVertex, 0 ,  4.23 , -12.1 ,
AddVertex, 0 ,  3.18 , -12.1 ,
AddVertex,-0.36 ,  3.18 , -12.1 ,
AddVertex,-0.83 ,  3.18 , -12.1 ,
AddVertex,-1.18 ,  3.18 , -12.1 ,
AddFace2, 0, 1, 2, 3, 16
AddFace2, 16, 3, 4, 5, 6, 15
AddFace2, 15, 5, 6, 7, 8, 9, 14
AddFace2, 14, 9, 10, 11, 12, 13
GenerateNormals,
LoadTexture,vag_CD_AB_pulkruh.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0.02, 0.99,						
SetTextureCoordinates,2, 0.04, 0.98,						
SetTextureCoordinates,3, 0.12, 0.94,	
SetTextureCoordinates,4, 0.19, 0.89,	
SetTextureCoordinates,5, 0.28, 0.82,	
SetTextureCoordinates,6, 0.38, 0.71,	
SetTextureCoordinates,7, 0.53, 0.62,	
SetTextureCoordinates,8, 0.63, 0.51,	
SetTextureCoordinates,9, 0.73, 0.41,	
SetTextureCoordinates,10, 0.85, 0.24,	
SetTextureCoordinates,11, 0.95, 0.09,	
SetTextureCoordinates,12, 1, 0,	
SetTextureCoordinates,13, 1, 1,	
SetTextureCoordinates,14, 0.73, 1,	
SetTextureCoordinates,15, 0.38, 1,	
SetTextureCoordinates,16, 0.12, 1,	

; čelní stěna - půlkruh pravý
CreateMeshBuilder,
AddVertex, 0 ,  3.18 , -12.1 ,
AddVertex, 0 ,  4.23 , -12.1 ,
AddVertex, 0.07 ,  4.22 , -12.1 ,
AddVertex, 0.2 ,  4.21 , -12.1 ,
AddVertex, 0.36 ,  4.17 , -12.1 ,
AddVertex, 0.5 ,  4.11 , -12.1 ,
AddVertex, 0.63 ,  4.04 , -12.1 ,
AddVertex, 0.83 ,  3.93 , -12.1 ,
AddVertex, 0.97 ,  3.83 , -12.1 ,
AddVertex, 1.08 ,  3.72 , -12.1 ,
AddVertex, 1.18 ,  3.61 , -12.1 ,
AddVertex, 1.28 ,  3.43 , -12.1 ,
AddVertex, 1.32 ,  3.27 , -12.1 ,
AddVertex, 1.34 ,  3.18 , -12.1 ,
AddVertex, 1.18 ,  3.18 , -12.1 ,
AddVertex, 0.83 ,  3.18 , -12.1 ,
AddVertex, 0.36 ,  3.18 , -12.1 ,
AddFace, 0, 1, 2, 3, 4, 16
AddFace, 16, 4, 5, 6, 7, 15
AddFace, 15, 7, 8, 9, 10, 14
AddFace, 14, 10, 11, 12 ,13
GenerateNormals,
LoadTexture,vag_CD_AB_pulkruh.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 0.02, 0.09,						
SetTextureCoordinates,3, 0.04, 0.24,	
SetTextureCoordinates,4, 0.12, 0.41,	
SetTextureCoordinates,5, 0.19, 0.51,	
SetTextureCoordinates,6, 0.28, 0.62,	
SetTextureCoordinates,7, 0.38, 0.71,	
SetTextureCoordinates,8, 0.53, 0.82,	
SetTextureCoordinates,9, 0.63, 0.89,	
SetTextureCoordinates,10, 0.73, 0.94,	
SetTextureCoordinates,11, 0.85, 0.98,	
SetTextureCoordinates,12, 0.95, 0.99,	
SetTextureCoordinates,13, 1, 1,	
SetTextureCoordinates,14, 0.73, 1,	
SetTextureCoordinates,15, 0.38, 1,	
SetTextureCoordinates,16, 0.12, 1,	
						
; čelní stěna						
CreateMeshBuilder,						
AddVertex,-1.345 ,  1.22 , -12.1 ,
AddVertex,-1.345 ,  3.21 , -12.1 ,
AddVertex, 1.345 ,  3.21 , -12.1 ,
AddVertex, 1.345 ,  1.22 , -12.1 ,
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_celo.bmp,						
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,

; čelní stěna - dveře
CreateMeshBuilder,						
AddVertex,-0.51 ,  1.22 , -11.91 ,
AddVertex,-0.51 ,  3.195 , -11.91 ,
AddVertex, 0.51 ,  3.195 , -11.91 ,
AddVertex, 0.51 ,  1.22 , -11.91 ,
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_dvere.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	

; "výplň" kolem čelních dveří
CreateMeshBuilder,						
AddVertex,-0.5 ,  1.22 , -12.11 ,
AddVertex,-0.5 ,  3.19 , -12.11 ,
AddVertex,-0.5 ,  3.19 , -11.91 ,
AddVertex,-0.5 ,  1.22 , -11.91 ,
AddFace, 0, 1, 2, 3
SetColor,3,64,26,
CreateMeshBuilder,						
AddVertex,-0.5 ,  3.19 , -12.11 ,
AddVertex,-0.5 ,  3.19 , -11.91 ,
AddVertex, 0.5 ,  3.19 , -11.91 ,
AddVertex, 0.5 ,  3.19 , -12.11 ,
AddFace2, 0, 1, 2, 3
SetColor,3,64,26,
CreateMeshBuilder,						
AddVertex, 0.5 ,  1.22 , -11.91 ,
AddVertex, 0.5 ,  3.19 , -11.91 ,
AddVertex, 0.5 ,  3.19 , -12.11 ,
AddVertex, 0.5 ,  1.22 , -12.11 ,
AddFace, 0, 1, 2, 3
SetColor,3,64,26,

; guma - přední levá
CreateMeshBuilder,						
AddVertex,-0.8 ,  1.23 , -12.1 ,
AddVertex,-0.8 ,  3.15 , -12.1 ,
AddVertex,-0.75 ,  3.2 , -12.25 ,
AddVertex,-0.55 ,  3.2 , -12.25 ,
AddVertex,-0.5 ,  3.15 , -12.1 ,
AddVertex,-0.5 ,  1.23 , -12.1 ,
AddVertex,-0.55 ,  1.23 , -12.25 ,
AddVertex,-0.75 ,  1.23 , -12.25 ,
AddFace, 0, 1, 2, 7
AddFace, 7, 2, 3, 6
AddFace, 6, 3, 4, 5
GenerateNormals,
LoadTexture,vag_CD_AB_guma_l.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 0.33, 0,						
SetTextureCoordinates,3, 0.66, 0,						
SetTextureCoordinates,4, 1, 0,						
SetTextureCoordinates,5, 1, 1,						
SetTextureCoordinates,6, 0.66, 1,						
SetTextureCoordinates,7, 0.33, 1,

; guma - přední pravá
CreateMeshBuilder,						
AddVertex, 0.5 ,  1.23 , -12.1 ,
AddVertex, 0.5 ,  3.2 , -12.1 ,
AddVertex, 0.55 ,  3.2 , -12.25 ,
AddVertex, 0.75 ,  3.2 , -12.25 ,
AddVertex, 0.8 ,  3.15 , -12.1 ,
AddVertex, 0.8 ,  1.23 , -12.1 ,
AddVertex, 0.75 ,  1.23 , -12.25 ,
AddVertex, 0.55 ,  1.23 , -12.25 ,
AddFace, 0, 1, 2, 7
AddFace, 7, 2, 3, 6
AddFace, 6, 3, 4, 5
GenerateNormals,						
LoadTexture,vag_CD_AB_guma_p.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 0.33, 0,						
SetTextureCoordinates,3, 0.66, 0,						
SetTextureCoordinates,4, 1, 0,						
SetTextureCoordinates,5, 1, 1,						
SetTextureCoordinates,6, 0.66, 1,						
SetTextureCoordinates,7, 0.33, 1,						

; guma - přední horní
CreateMeshBuilder,						
AddVertex,-0.85 ,  3.15 , -12.1 ,
AddVertex,-0.85 ,  3.2 , -12.25 ,
AddVertex,-0.75 ,  3.4 , -12.25 ,
AddVertex,-0.75 ,  3.45 , -12.1 ,
AddVertex, 0.75 ,  3.45 , -12.1 ,
AddVertex, 0.75 ,  3.4 , -12.25 ,
AddVertex, 0.85 ,  3.2 , -12.25 ,
AddVertex, 0.85 ,  3.15 , -12.1 ,
AddFace2, 0, 1, 6, 7
AddFace2, 1, 2, 5, 6
AddFace2, 2, 3, 4, 5
GenerateNormals,						
LoadTexture,vag_CD_AB_guma.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 0.33, 0,						
SetTextureCoordinates,3, 0.66, 0,						
SetTextureCoordinates,4, 1, 0,						
SetTextureCoordinates,5, 1, 1,						
SetTextureCoordinates,6, 0.66, 1,						
SetTextureCoordinates,7, 0.33, 1,
CreateMeshBuilder,						
AddVertex,-0.85 ,  3.15 , -12.11 ,
AddVertex,-0.75 ,  3.45 , -12.11 ,
AddVertex, 0.75 ,  3.45 , -12.11 ,
AddVertex, 0.85 ,  3.15 , -12.11 ,
AddFace, 0, 1, 2, 3						
SetColor,16,14,17,

; přikrytí horní gumy
CreateMeshBuilder,						
AddVertex,-0.73 ,  3.42 , -12.21 ,
AddVertex,-0.73 ,  3.48 , -12.13 ,
AddVertex,-0.73 ,  3.6 , -12.11 ,
AddVertex, 0.73 ,  3.6 , -12.11 ,
AddVertex, 0.73 ,  3.48 , -12.13 ,
AddVertex, 0.73 ,  3.42 , -12.21 ,
AddFace, 0, 1, 4, 5
AddFace, 1, 2, 3, 4
GenerateNormals,						
LoadTexture,vag_CD_AB_guma_top.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0.4,						
SetTextureCoordinates,2, 0, 0,						
SetTextureCoordinates,3, 1, 0,	
SetTextureCoordinates,4, 1, 0.4,	
SetTextureCoordinates,5, 1, 1,	

; světla - čelní levá					
CreateMeshBuilder,						
AddVertex,-1.02 ,  1.76 , -12.11 ,
AddVertex,-1.02 ,  1.98 , -12.11 ,
AddVertex,-0.8 ,  1.98 , -12.11 ,
AddVertex,-0.8 ,  1.76 , -12.11 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_svetlo.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,
CreateMeshBuilder,						
AddVertex,-1.1 ,  1.41 , -12.11 ,
AddVertex,-1.1 ,  1.48 , -12.11 ,
AddVertex,-1.02 ,  1.48 , -12.11 ,
AddVertex,-1.02 ,  1.41 , -12.11 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_svetlo2.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	

; světla - čelní pravá						
CreateMeshBuilder,						
AddVertex, 0.8 ,  1.76 , -12.11 ,
AddVertex, 0.8 ,  1.98 , -12.11 ,
AddVertex, 1.02 ,  1.98 , -12.11 ,
AddVertex, 1.02 ,  1.76 , -12.11 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_svetlo.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,
CreateMeshBuilder,						
AddVertex, 1.02 ,  1.41 , -12.11 ,
AddVertex, 1.02 ,  1.48 , -12.11 ,
AddVertex, 1.1 ,  1.48 , -12.11 ,
AddVertex, 1.1 ,  1.41 , -12.11 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_svetlo2.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

; spřáhla - přední					
CreateMeshBuilder,						
AddVertex,-0.65 ,  0.45 , -11.91 ,
AddVertex,-0.65 ,  1.15 , -11.91 ,
AddVertex, 0.65 ,  1.15 , -11.91 ,
AddVertex, 0.65 ,  0.45 , -11.91 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_sprahla.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,
				
; zadní stěna						
CreateMeshBuilder,						
AddVertex, 1.345 ,  3.21 ,  12.1 ,
AddVertex,-1.345 ,  3.21 ,  12.1 ,
AddVertex,-1.345 ,  1.22 ,  12.1 ,
AddVertex, 1.345 ,  1.22 ,  12.1 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_celo.bmp,						
SetTextureCoordinates,0, 0, 0,						
SetTextureCoordinates,1, 1, 0,						
SetTextureCoordinates,2, 1, 1,						
SetTextureCoordinates,3, 0, 1,	
SetDecalTransparentColor,0,0,0,

; zadní stěna - dveře
CreateMeshBuilder,						
AddVertex,-0.51 ,  1.22 ,  11.91 ,
AddVertex,-0.51 ,  3.195 ,  11.91 ,
AddVertex, 0.51 ,  3.195 ,  11.91 ,
AddVertex, 0.51 ,  1.22 ,  11.91 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_dvere.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

; "výplň" kolem zadních dveří
CreateMeshBuilder,						
AddVertex, 0.5 ,  1.22 ,  12.11 ,
AddVertex, 0.5 ,  3.19 ,  12.11 ,
AddVertex, 0.5 ,  3.19 ,  11.91 ,
AddVertex, 0.5 ,  1.22 ,  11.91 ,
AddFace, 0, 1, 2, 3
SetColor,3,64,26,
CreateMeshBuilder,						
AddVertex,-0.5 ,  3.19 ,  12.11 ,
AddVertex,-0.5 ,  3.19 ,  11.91 ,
AddVertex, 0.5 ,  3.19 ,  11.91 ,
AddVertex, 0.5 ,  3.19 ,  12.11 ,
AddFace2, 0, 1, 2, 3
SetColor,3,64,26,
CreateMeshBuilder,						
AddVertex,-0.5 ,  1.22 ,  11.91 ,
AddVertex,-0.5 ,  3.19 ,  11.91 ,
AddVertex,-0.5 ,  3.19 ,  12.11 ,
AddVertex,-0.5 ,  1.22 ,  12.11 ,
AddFace, 0, 1, 2, 3
SetColor,3,64,26,
		
; zadní stěna - půlkruh levý
CreateMeshBuilder,						
AddVertex,-1.34 ,  3.18 ,  12.1 ,
AddVertex,-1.32 ,  3.27 ,  12.1 ,
AddVertex,-1.28 ,  3.43 ,  12.1 ,
AddVertex,-1.18 ,  3.61 ,  12.1 ,
AddVertex,-1.08 ,  3.72 ,  12.1 ,
AddVertex,-0.97 ,  3.83 ,  12.1 ,
AddVertex,-0.83 ,  3.93 ,  12.1 ,
AddVertex,-0.63 ,  4.04 ,  12.1 ,
AddVertex,-0.5 ,  4.11 ,  12.1 ,
AddVertex,-0.36 ,  4.17 ,  12.1 ,
AddVertex,-0.2 ,  4.21 ,  12.1 ,
AddVertex,-0.07 ,  4.22 ,  12.1 ,
AddVertex, 0 ,  4.23 ,  12.1 ,
AddVertex, 0 ,  3.18 ,  12.1 ,
AddVertex,-0.36 ,  3.18 ,  12.1 ,
AddVertex,-0.83 ,  3.18 ,  12.1 ,
AddVertex,-1.18 ,  3.18 ,  12.1 ,
AddFace2, 0, 1, 2, 3, 16
AddFace2, 16, 3, 4, 5, 6, 15
AddFace2, 15, 5, 6, 7, 8, 9, 14
AddFace2, 14, 9, 10, 11, 12, 13
GenerateNormals,
LoadTexture,vag_CD_AB_pulkruh.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0.02, 0.99,						
SetTextureCoordinates,2, 0.04, 0.98,						
SetTextureCoordinates,3, 0.12, 0.94,	
SetTextureCoordinates,4, 0.19, 0.89,	
SetTextureCoordinates,5, 0.28, 0.82,	
SetTextureCoordinates,6, 0.38, 0.71,	
SetTextureCoordinates,7, 0.53, 0.62,	
SetTextureCoordinates,8, 0.63, 0.51,	
SetTextureCoordinates,9, 0.73, 0.41,	
SetTextureCoordinates,10, 0.85, 0.24,	
SetTextureCoordinates,11, 0.95, 0.09,	
SetTextureCoordinates,12, 1, 0,	
SetTextureCoordinates,13, 1, 1,	
SetTextureCoordinates,14, 0.73, 1,	
SetTextureCoordinates,15, 0.38, 1,	
SetTextureCoordinates,16, 0.12, 1,	

; zadní stěna - půlkruh pravý
CreateMeshBuilder,
AddVertex, 0 ,  3.18 ,  12.1 ,
AddVertex, 0 ,  4.23 ,  12.1 ,
AddVertex, 0.07 ,  4.22 ,  12.1 ,
AddVertex, 0.2 ,  4.21 ,  12.1 ,
AddVertex, 0.36 ,  4.17 ,  12.1 ,
AddVertex, 0.5 ,  4.11 ,  12.1 ,
AddVertex, 0.63 ,  4.04 ,  12.1 ,
AddVertex, 0.83 ,  3.93 ,  12.1 ,
AddVertex, 0.97 ,  3.83 ,  12.1 ,
AddVertex, 1.08 ,  3.72 ,  12.1 ,
AddVertex, 1.18 ,  3.61 ,  12.1 ,
AddVertex, 1.28 ,  3.43 ,  12.1 ,
AddVertex, 1.32 ,  3.27 ,  12.1 ,
AddVertex, 1.34 ,  3.18 ,  12.1 ,
AddVertex, 1.18 ,  3.18 ,  12.1 ,
AddVertex, 0.83 ,  3.18 ,  12.1 ,
AddVertex, 0.36 ,  3.18 ,  12.1 ,
AddFace2, 0, 1, 2, 3, 4, 16
AddFace2, 16, 4, 5, 6, 7, 15
AddFace2, 15, 7, 8, 9, 10, 14
AddFace2, 14, 10, 11, 12 ,13
GenerateNormals,
LoadTexture,vag_CD_AB_pulkruh.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 0.02, 0.09,						
SetTextureCoordinates,3, 0.04, 0.24,	
SetTextureCoordinates,4, 0.12, 0.41,	
SetTextureCoordinates,5, 0.19, 0.51,	
SetTextureCoordinates,6, 0.28, 0.62,	
SetTextureCoordinates,7, 0.38, 0.71,	
SetTextureCoordinates,8, 0.53, 0.82,	
SetTextureCoordinates,9, 0.63, 0.89,	
SetTextureCoordinates,10, 0.73, 0.94,	
SetTextureCoordinates,11, 0.85, 0.98,	
SetTextureCoordinates,12, 0.95, 0.99,	
SetTextureCoordinates,13, 1, 1,	
SetTextureCoordinates,14, 0.73, 1,	
SetTextureCoordinates,15, 0.38, 1,	
SetTextureCoordinates,16, 0.12, 1,

; guma - zadní pravá
CreateMeshBuilder,						
AddVertex,-0.5 ,  1.23 ,  12.1 ,
AddVertex,-0.5 ,  3.2 ,  12.1 ,
AddVertex,-0.55 ,  3.2 ,  12.25 ,
AddVertex,-0.75 ,  3.2 ,  12.25 ,
AddVertex,-0.8 ,  3.15 ,  12.1 ,
AddVertex,-0.8 ,  1.23 ,  12.1 ,
AddVertex,-0.75 ,  1.23 ,  12.25 ,
AddVertex,-0.55 ,  1.23 ,  12.25 ,
AddFace, 0, 1, 2, 7
AddFace, 7, 2, 3, 6
AddFace, 6, 3, 4, 5
GenerateNormals,						
LoadTexture,vag_CD_AB_guma_p.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 0.33, 0,						
SetTextureCoordinates,3, 0.66, 0,						
SetTextureCoordinates,4, 1, 0,						
SetTextureCoordinates,5, 1, 1,						
SetTextureCoordinates,6, 0.66, 1,						
SetTextureCoordinates,7, 0.33, 1,

; guma - zadní levá
CreateMeshBuilder,						
AddVertex, 0.8 ,  1.23 ,  12.1 ,
AddVertex, 0.8 ,  3.15 ,  12.1 ,
AddVertex, 0.75 ,  3.2 ,  12.25 ,
AddVertex, 0.55 ,  3.2 ,  12.25 ,
AddVertex, 0.5 ,  3.2 ,  12.1 ,
AddVertex, 0.5 ,  1.23 ,  12.1 ,
AddVertex, 0.55 ,  1.23 ,  12.25 ,
AddVertex, 0.75 ,  1.23 ,  12.25 ,
AddFace, 0, 1, 2, 7
AddFace, 7, 2, 3, 6
AddFace, 6, 3, 4, 5
GenerateNormals,						
LoadTexture,vag_CD_AB_guma_l.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 0.33, 0,						
SetTextureCoordinates,3, 0.66, 0,						
SetTextureCoordinates,4, 1, 0,						
SetTextureCoordinates,5, 1, 1,						
SetTextureCoordinates,6, 0.66, 1,						
SetTextureCoordinates,7, 0.33, 1,						

; guma - zadní horní
CreateMeshBuilder,						
AddVertex, 0.85 ,  3.15 ,  12.1 ,
AddVertex, 0.85 ,  3.2 ,  12.25 ,
AddVertex, 0.75 ,  3.4 ,  12.25 ,
AddVertex, 0.75 ,  3.45 ,  12.1 ,
AddVertex,-0.75 ,  3.45 ,  12.1 ,
AddVertex,-0.75 ,  3.4 ,  12.25 ,
AddVertex,-0.85 ,  3.2 ,  12.25 ,
AddVertex,-0.85 ,  3.15 ,  12.1 ,
AddFace2, 0, 1, 6, 7
AddFace2, 1, 2, 5, 6
AddFace2, 2, 3, 4, 5
GenerateNormals,						
LoadTexture,vag_CD_AB_guma.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 0.33, 0,						
SetTextureCoordinates,3, 0.66, 0,						
SetTextureCoordinates,4, 1, 0,						
SetTextureCoordinates,5, 1, 1,						
SetTextureCoordinates,6, 0.66, 1,						
SetTextureCoordinates,7, 0.33, 1,
CreateMeshBuilder,						
AddVertex, 0.85 ,  3.15 ,  12.11 ,
AddVertex, 0.75 ,  3.45 ,  12.11 ,
AddVertex,-0.75 ,  3.45 ,  12.11 ,
AddVertex,-0.85 ,  3.15 ,  12.11 ,
AddFace, 0, 1, 2, 3						
SetColor,16,14,17,

; přikrytí zadní horní gumy
CreateMeshBuilder,						
AddVertex, 0.73 ,  3.42 ,  12.21 ,
AddVertex, 0.73 ,  3.48 ,  12.12 ,
AddVertex, 0.73 ,  3.6 ,  12.1 ,
AddVertex,-0.73 ,  3.6 ,  12.1 ,
AddVertex,-0.73 ,  3.48 ,  12.12 ,
AddVertex,-0.73 ,  3.42 ,  12.21 ,
AddFace, 0, 1, 4, 5
AddFace, 1, 2, 3, 4
GenerateNormals,						
LoadTexture,vag_CD_AB_guma_top.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0.4,						
SetTextureCoordinates,2, 0, 0,						
SetTextureCoordinates,3, 1, 0,	
SetTextureCoordinates,4, 1, 0.4,	
SetTextureCoordinates,5, 1, 1,	

; světla - zadní levá					
CreateMeshBuilder,						
AddVertex,-1.02 ,  1.76 ,  12.11 ,
AddVertex,-1.02 ,  1.98 ,  12.11 ,
AddVertex,-0.8 ,  1.98 ,  12.11 ,
AddVertex,-0.8 ,  1.76 ,  12.11 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_svetlo.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,
CreateMeshBuilder,						
AddVertex,-1.1 ,  1.41 ,  12.11 ,
AddVertex,-1.1 ,  1.48 ,  12.11 ,
AddVertex,-1.02 ,  1.48 ,  12.11 ,
AddVertex,-1.02 ,  1.41 ,  12.11 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_svetlo2.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	

; světla - zadní pravá						
CreateMeshBuilder,						
AddVertex, 0.8 ,  1.76 ,  12.11 ,
AddVertex, 0.8 ,  1.98 ,  12.11 ,
AddVertex, 1.02 ,  1.98 ,  12.11 ,
AddVertex, 1.02 ,  1.76 ,  12.11 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_svetlo.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,
CreateMeshBuilder,						
AddVertex, 1.02 ,  1.41 ,  12.11 ,
AddVertex, 1.02 ,  1.48 ,  12.11 ,
AddVertex, 1.1 ,  1.48 ,  12.11 ,
AddVertex, 1.1 ,  1.41 ,  12.11 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_svetlo2.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	

; spřáhla - zadní				
CreateMeshBuilder,						
AddVertex,-0.65 ,  0.45 ,  11.91 ,
AddVertex,-0.65 ,  1.15 ,  11.91 ,
AddVertex, 0.65 ,  1.15 ,  11.91 ,
AddVertex, 0.65 ,  0.45 ,  11.91 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_sprahla.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,				

; prostor kolem předních schůdků a nárazníků
CreateMeshBuilder,						
AddVertex,-1.44 ,  0.96 , -10.95 ,
AddVertex,-1.44 ,  1.26 , -10.95 ,
AddVertex,-1.04 ,  1.26 , -10.95 ,
AddVertex,-1.04 ,  1.26 , -11.85 ,
AddVertex, 1.04 ,  1.26 , -11.85 ,
AddVertex, 1.04 ,  1.26 , -10.95 ,
AddVertex, 1.44 ,  1.26 , -10.95 ,
AddVertex, 1.44 ,  0.96 , -10.95 ,
AddVertex, 1.04 ,  0.96 , -10.95 ,
AddVertex, 1.04 ,  0.96 , -11.85 ,
AddVertex,-1.04 ,  0.96 , -11.85 ,
AddVertex,-1.04 ,  0.96 , -10.95 ,
AddFace2, 0, 1, 2, 11
AddFace2, 11 ,2, 3, 10
AddFace2, 10, 3, 4, 9
AddFace2, 9, 4, 5, 8
AddFace2, 8, 5, 6, 7
SetColor,19,34,31

; štítek - přední levý
CreateMeshBuilder,						
AddVertex,-1.05 ,  1.06 , -11 ,
AddVertex,-1.05 ,  1.25 , -11 ,
AddVertex,-1.05 ,  1.25 , -11.75 ,
AddVertex,-1.05 ,  1.06 , -11.75 ,
AddFace, 0, 1, 2, 3	
GenerateNormals,						
LoadTexture,vag_CD_AB_stitek.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

; výkroj nad schůdky - přední levý
CreateMeshBuilder,						
AddVertex,-1.42 ,  1.23 , -11.14 ,
AddVertex,-1.42 ,  1.36 , -11.14 ,
AddVertex,-1.041 ,  1.36 , -11.2 ,
AddVertex,-1.041 ,  1.36 , -11.65 ,
AddVertex,-1.37 ,  1.36 , -11.71 ,
AddVertex,-1.37 ,  1.23 , -11.71 ,
AddVertex,-1.041 ,  1.26 , -11.65 ,
AddVertex,-1.041 ,  1.26 , -11.2 ,
AddFace, 0, 1, 2, 7	
AddFace, 7, 2, 3, 6	
AddFace, 6, 3, 4, 5	
GenerateNormals,						
LoadTexture,vag_CD_AB_vykroj.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 0.2, 0,						
SetTextureCoordinates,3, 0.8, 0,
SetTextureCoordinates,4, 1, 0,
SetTextureCoordinates,5, 1, 1,
SetTextureCoordinates,6, 0.8, 1,
SetTextureCoordinates,7, 0.2, 1,

; štítek - přední pravý
CreateMeshBuilder,						
AddVertex, 1.05 ,  1.06 , -11.75 ,
AddVertex, 1.05 ,  1.25 , -11.75 ,
AddVertex, 1.05 ,  1.25 , -11 ,
AddVertex, 1.05 ,  1.06 , -11 ,
AddFace, 0, 1, 2, 3	
GenerateNormals,						
LoadTexture,vag_CD_AB_stitek_cd.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

; výkroj nad schůdky - přední pravý
CreateMeshBuilder,						
AddVertex, 1.37 ,  1.23 , -11.71 ,
AddVertex, 1.37 ,  1.36 , -11.71 ,
AddVertex, 1.041 ,  1.36 , -11.65 ,
AddVertex, 1.041 ,  1.36 , -11.2 ,
AddVertex, 1.42 ,  1.36 , -11.14 ,
AddVertex, 1.42 ,  1.23 , -11.14 ,
AddVertex, 1.041 ,  1.26 , -11.2 ,
AddVertex, 1.041 ,  1.26 , -11.65 ,
AddFace, 0, 1, 2, 7	
AddFace, 7, 2, 3, 6	
AddFace, 6, 3, 4, 5	
GenerateNormals,						
LoadTexture,vag_CD_AB_vykroj.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 0.2, 0,						
SetTextureCoordinates,3, 0.8, 0,
SetTextureCoordinates,4, 1, 0,
SetTextureCoordinates,5, 1, 1,
SetTextureCoordinates,6, 0.8, 1,
SetTextureCoordinates,7, 0.2, 1,

; prostor kolem zadních schůdků a nárazníků
CreateMeshBuilder,						
AddVertex, 1.44 ,  0.96 ,  10.9 ,
AddVertex, 1.44 ,  1.26 ,  10.9 ,
AddVertex, 1.04 ,  1.26 ,  10.9 ,
AddVertex, 1.04 ,  1.26 ,  11.8 ,
AddVertex,-1.04 ,  1.26 ,  11.8 ,
AddVertex,-1.04 ,  1.26 ,  10.9 ,
AddVertex,-1.44 ,  1.26 ,  10.9 ,
AddVertex,-1.44 ,  0.96 ,  10.9 ,
AddVertex,-1.04 ,  0.96 ,  10.9 ,
AddVertex,-1.04 ,  0.96 ,  11.8 ,
AddVertex, 1.04 ,  0.96 ,  11.8 ,
AddVertex, 1.04 ,  0.96 ,  10.9 ,
AddFace2, 0, 1, 2, 11
AddFace2, 11, 2, 3, 10
AddFace2, 10, 3, 4, 9
AddFace2, 9, 4, 5, 8
AddFace2, 8, 5, 6, 7
SetColor, 19, 34, 31,

; štítky - zadní levý
CreateMeshBuilder,						
AddVertex,-1.05 ,  1.06 ,  11.7 ,
AddVertex,-1.05 ,  1.25 ,  11.7 ,
AddVertex,-1.05 ,  1.25 ,  10.95 ,
AddVertex,-1.05 ,  1.06 ,  10.95 ,
AddFace, 0, 1, 2, 3	
GenerateNormals,						
LoadTexture,vag_CD_AB_stitek_cd.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

; výkroj nad schůdky - zadní levý
CreateMeshBuilder,						
AddVertex,-1.37 ,  1.23 ,  11.68 ,
AddVertex,-1.37 ,  1.36 ,  11.68 ,
AddVertex,-1.041 ,  1.36 ,  11.59 ,
AddVertex,-1.041 ,  1.36 ,  11.15 ,
AddVertex,-1.42 ,  1.36 ,  11.09 ,
AddVertex,-1.42 ,  1.23 ,  11.09 ,
AddVertex,-1.041 ,  1.26 ,  11.15 ,
AddVertex,-1.041 ,  1.26 ,  11.59 ,
AddFace, 0, 1, 2, 7	
AddFace, 7, 2, 3, 6	
AddFace, 6, 3, 4, 5	
GenerateNormals,						
LoadTexture,vag_CD_AB_vykroj.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 0.2, 0,						
SetTextureCoordinates,3, 0.8, 0,
SetTextureCoordinates,4, 1, 0,
SetTextureCoordinates,5, 1, 1,
SetTextureCoordinates,6, 0.8, 1,
SetTextureCoordinates,7, 0.2, 1,

; štítek - zadní pravý
CreateMeshBuilder,						
AddVertex, 1.05 ,  1.06 ,  10.9 ,
AddVertex, 1.05 ,  1.25 ,  10.9 ,
AddVertex, 1.05 ,  1.25 ,  11.65 ,
AddVertex, 1.05 ,  1.06 ,  11.65 ,
AddFace, 0, 1, 2, 3	
GenerateNormals,						
LoadTexture,vag_CD_AB_stitek.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

; výkroj nad schůdky - zadní pravý
CreateMeshBuilder,						
AddVertex, 1.42 ,  1.23 ,  11.09 ,
AddVertex, 1.42 ,  1.36 ,  11.09 ,
AddVertex, 1.041 ,  1.36 ,  11.15 ,
AddVertex, 1.041 ,  1.36 ,  11.59 ,
AddVertex, 1.37 ,  1.36 ,  11.69 ,
AddVertex, 1.37 ,  1.23 ,  11.69 ,
AddVertex, 1.041 ,  1.26 ,  11.59 ,
AddVertex, 1.041 ,  1.26 ,  11.15 ,
AddFace, 0, 1, 2, 7	
AddFace, 7, 2, 3, 6	
AddFace, 6, 3, 4, 5	
GenerateNormals,						
LoadTexture,vag_CD_AB_vykroj.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 0.2, 0,						
SetTextureCoordinates,3, 0.8, 0,
SetTextureCoordinates,4, 1, 0,
SetTextureCoordinates,5, 1, 1,
SetTextureCoordinates,6, 0.8, 1,
SetTextureCoordinates,7, 0.2, 1,

; podlaha
CreateMeshBuilder,						
AddVertex,-1.44 ,  1.06 , -10.95 ,
AddVertex,-1.44 ,  1.06 ,  10.9 ,
AddVertex, 1.44 ,  1.06 ,  10.9 ,
AddVertex, 1.44 ,  1.06 , -10.95 ,
AddFace2, 0, 1, 2, 3						
SetColor,16,14,17,						

; --- SCHŮDKY - PŘEDNÍ ------------------------------------------------------------------------------------------------------------------------------------

; držáky schůdků - levé
CreateMeshBuilder,						
AddVertex,-1.24 ,  0.61 , -11 ,
AddVertex,-1.04 ,  1.01 , -11 ,
AddVertex,-1.04 ,  1.01 , -11.05 ,
AddVertex,-1.24 ,  0.61 , -11.05 ,
AddFace2, 0, 1, 2, 3						
SetColor,35,40,34,
CreateMeshBuilder,						
AddVertex,-1.24 ,  0.61 , -11.55 ,
AddVertex,-1.04 ,  1.01 , -11.55 ,
AddVertex,-1.04 ,  1.01 , -11.6 ,
AddVertex,-1.24 ,  0.61 , -11.6 ,
AddFace2, 0, 1, 2, 3						
SetColor,35,40,34,

; první schůdek - levý
CreateMeshBuilder,						
AddVertex,-1.19 ,  1.09 , -11.75 ,
AddVertex,-1.19 ,  1.09 , -10.95 ,
AddVertex,-1.04 ,  1.09 , -10.95 ,
AddVertex,-1.04 ,  1.09 , -11.75 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_AB_schod.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,
AddVertex,-1.19 ,  1.08 , -11.75 ,
AddVertex,-1.19 ,  1.08 , -10.95 ,
AddVertex,-1.04 ,  1.08 , -10.95 ,
AddVertex,-1.04 ,  1.08 , -11.75 ,
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex,-1.19 ,  1.06 , -10.95 ,
AddVertex,-1.19 ,  1.09 , -10.95 ,
AddVertex,-1.19 ,  1.09 , -11.75 ,
AddVertex,-1.19 ,  1.06 , -11.75 ,
AddFace2, 0, 1, 2, 3
SetColor,52,52,52

; druhý schůdek - levý
CreateMeshBuilder,						
AddVertex,-1.29 ,  0.84 , -11.76 ,
AddVertex,-1.29 ,  0.84 , -10.9 ,
AddVertex,-1.14 ,  0.84 , -10.9 ,
AddVertex,-1.14 ,  0.84 , -11.76 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_AB_schod.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,
AddVertex,-1.29 ,  0.83 , -11.76 ,
AddVertex,-1.29 ,  0.83 , -10.9 ,
AddVertex,-1.14 ,  0.83 , -10.9 ,
AddVertex,-1.14 ,  0.83 , -11.76 ,
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex,-1.29 ,  0.81 , -10.9 ,
AddVertex,-1.29 ,  0.84 , -10.9 ,
AddVertex,-1.29 ,  0.84 , -11.76 ,
AddVertex,-1.29 ,  0.81 , -11.76 ,
AddFace2, 0, 1, 2, 3
SetColor,52,52,52

; třetí schůdek - levý
CreateMeshBuilder,						
AddVertex,-1.44 ,  0.63 , -11.8 ,
AddVertex,-1.44 ,  0.63 , -10.85 ,
AddVertex,-1.24 ,  0.63 , -10.85 ,
AddVertex,-1.24 ,  0.63 , -11.8 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_AB_schod.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,
AddVertex,-1.44 ,  0.62 , -11.75 ,
AddVertex,-1.44 ,  0.62 , -10.8 ,
AddVertex,-1.24 ,  0.62 , -10.8 ,
AddVertex,-1.24 ,  0.62 , -11.75 ,
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex,-1.44 ,  0.6 , -10.85 ,
AddVertex,-1.44 ,  0.63 , -10.85 ,
AddVertex,-1.44 ,  0.63 , -11.8 ,
AddVertex,-1.44 ,  0.6 , -11.8 ,
AddFace2, 0, 1, 2, 3
SetColor,52,52,52


; držáky schůdků - levé
CreateMeshBuilder,						
AddVertex, 1.24 ,  0.61 , -11.05 ,
AddVertex, 1.04 ,  1.01 , -11.05 ,
AddVertex, 1.04 ,  1.01 , -11 ,
AddVertex, 1.24 ,  0.61 , -11 ,
AddFace2, 0, 1, 2, 3					
SetColor,35,40,34,
CreateMeshBuilder,						
AddVertex, 1.24 ,  0.61 , -11.6 ,
AddVertex, 1.04 ,  1.01 , -11.6 ,
AddVertex, 1.04 ,  1.01 , -11.55 ,
AddVertex, 1.24 ,  0.61 , -11.55 ,
AddFace2, 0, 1, 2, 3						
SetColor,35,40,34,


; první schůdek - pravý
CreateMeshBuilder,						
AddVertex, 1.04 ,  1.09 , -11.75 ,
AddVertex, 1.04 ,  1.09 , -10.95 ,
AddVertex, 1.19 ,  1.09 , -10.95 ,
AddVertex, 1.19 ,  1.09 , -11.75 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_AB_schod.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,
AddVertex, 1.04 ,  1.08 , -11.75 ,
AddVertex, 1.04 ,  1.08 , -10.95 ,
AddVertex, 1.19 ,  1.08 , -10.95 ,
AddVertex, 1.19 ,  1.08 , -11.75 ,
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex, 1.19 ,  1.06 , -10.95 ,
AddVertex, 1.19 ,  1.09 , -10.95 ,
AddVertex, 1.19 ,  1.09 , -11.75 ,
AddVertex, 1.19 ,  1.06 , -11.75 ,
AddFace2, 0, 1, 2, 3
SetColor,52,52,52	

; druhý schůdek - pravý
CreateMeshBuilder,						
AddVertex, 1.14 ,  0.84 , -11.76 ,
AddVertex, 1.14 ,  0.84 , -10.9 ,
AddVertex, 1.29 ,  0.84 , -10.9 ,
AddVertex, 1.29 ,  0.84 , -11.76 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_AB_schod.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,
AddVertex, 1.14 ,  0.83 , -11.76 ,
AddVertex, 1.14 ,  0.83 , -10.9 ,
AddVertex, 1.29 ,  0.83 , -10.9 ,
AddVertex, 1.29 ,  0.83 , -11.76 ,
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex, 1.29 ,  0.81 , -10.9 ,
AddVertex, 1.29 ,  0.84 , -10.9 ,
AddVertex, 1.29 ,  0.84 , -11.76 ,
AddVertex, 1.29 ,  0.81 , -11.76 ,
AddFace2, 0, 1, 2, 3
SetColor,52,52,52

; třetí schůdek - levý
CreateMeshBuilder,						
AddVertex, 1.24 ,  0.63 , -11.8 ,
AddVertex, 1.24 ,  0.63 , -10.85 ,
AddVertex, 1.44 ,  0.63 , -10.85 ,
AddVertex, 1.44 ,  0.63 , -11.8 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_AB_schod.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,
AddVertex, 1.24 ,  0.62 , -11.75 ,
AddVertex, 1.24 ,  0.62 , -10.8 ,
AddVertex, 1.44 ,  0.62 , -10.8 ,
AddVertex, 1.44 ,  0.62 , -11.75 ,
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex, 1.44 ,  0.6 , -10.85 ,
AddVertex, 1.44 ,  0.63 , -10.85 ,
AddVertex, 1.44 ,  0.63 , -11.8 ,
AddVertex, 1.44 ,  0.6 , -11.8 ,
AddFace2, 0, 1, 2, 3
SetColor,52,52,52


; --- SCHŮDKY - ZADNÍ ------------------------------------------------------------------------------------------------------------------------------------

; držáky schůdků - levé
CreateMeshBuilder,						
AddVertex,-1.24 ,  0.61 ,  11.55 ,
AddVertex,-1.04 ,  1.01 ,  11.55 ,
AddVertex,-1.04 ,  1.01 ,  11.6 ,
AddVertex,-1.24 ,  0.61 ,  11.6 ,
AddFace2, 0, 1, 2, 3						
SetColor,35,40,34,
CreateMeshBuilder,						
AddVertex,-1.24 ,  0.61 ,  11 ,
AddVertex,-1.04 ,  1.01 ,  11 ,
AddVertex,-1.04 ,  1.01 ,  10.95 ,
AddVertex,-1.24 ,  0.61 ,  10.95 ,
AddFace2, 0, 1, 2, 3						
SetColor,35,40,34,

; první schůdek - levý
CreateMeshBuilder,						
AddVertex,-1.19 ,  1.09 ,  10.9 ,
AddVertex,-1.19 ,  1.09 ,  11.7 ,
AddVertex,-1.04 ,  1.09 ,  11.7 ,
AddVertex,-1.04 ,  1.09 ,  10.9 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_AB_schod.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,
AddVertex,-1.19 ,  1.08 ,  10.9 ,
AddVertex,-1.19 ,  1.08 ,  11.7 ,
AddVertex,-1.04 ,  1.08 ,  11.7 ,
AddVertex,-1.04 ,  1.08 ,  10.9 ,
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex,-1.19 ,  1.06 ,  11.7 ,
AddVertex,-1.19 ,  1.09 ,  11.7 ,
AddVertex,-1.19 ,  1.09 ,  10.9 ,
AddVertex,-1.19 ,  1.06 ,  10.9 ,
AddFace2, 0, 1, 2, 3
SetColor,52,52,52

; druhý schůdek - levý
CreateMeshBuilder,						
AddVertex,-1.29 ,  0.84 ,  10.89 ,
AddVertex,-1.29 ,  0.84 ,  11.75 ,
AddVertex,-1.14 ,  0.84 ,  11.75 ,
AddVertex,-1.14 ,  0.84 ,  10.89 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_AB_schod.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,
AddVertex,-1.29 ,  0.83 ,  10.89 ,
AddVertex,-1.29 ,  0.83 ,  11.75 ,
AddVertex,-1.14 ,  0.83 ,  11.75 ,
AddVertex,-1.14 ,  0.83 ,  10.89 ,
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex,-1.29 ,  0.81 ,  11.75 ,
AddVertex,-1.29 ,  0.84 ,  11.75 ,
AddVertex,-1.29 ,  0.84 ,  10.89 ,
AddVertex,-1.29 ,  0.81 ,  10.89 ,
AddFace2, 0, 1, 2, 3
SetColor,52,52,52

; třetí schůdek - levý
CreateMeshBuilder,						
AddVertex,-1.44 ,  0.63 ,  10.85 ,
AddVertex,-1.44 ,  0.63 ,  11.8 ,
AddVertex,-1.24 ,  0.63 ,  11.8 ,
AddVertex,-1.24 ,  0.63 ,  10.85 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_AB_schod.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,
AddVertex,-1.44 ,  0.62 ,  10.85 ,
AddVertex,-1.44 ,  0.62 ,  11.8 ,
AddVertex,-1.24 ,  0.62 ,  11.8 ,
AddVertex,-1.24 ,  0.62 ,  10.85 ,
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex,-1.44 ,  0.6 ,  11.8 ,
AddVertex,-1.44 ,  0.63 ,  11.8 ,
AddVertex,-1.44 ,  0.63 ,  10.85 ,
AddVertex,-1.44 ,  0.6 ,  10.85 ,
AddFace2, 0, 1, 2, 3
SetColor,52,52,52


; držáky schůdků - pravé
CreateMeshBuilder,						
AddVertex, 1.24 ,  0.61 ,  10.95 ,
AddVertex, 1.04 ,  1.01 ,  10.95 ,
AddVertex, 1.04 ,  1.01 ,  11 ,
AddVertex, 1.24 ,  0.61 ,  11 ,
AddFace2, 0, 1, 2, 3						
SetColor,35,40,34,
CreateMeshBuilder,						
AddVertex, 1.24 ,  0.61 ,  11.5 ,
AddVertex, 1.04 ,  1.01 ,  11.5 ,
AddVertex, 1.04 ,  1.01 ,  11.55 ,
AddVertex, 1.24 ,  0.61 ,  11.55 ,
AddFace2, 0, 1, 2, 3						
SetColor,35,40,34,

; první schůdek - levý
CreateMeshBuilder,						
AddVertex, 1.04 ,  1.09 ,  10.9 ,
AddVertex, 1.04 ,  1.09 ,  11.7 ,
AddVertex, 1.19 ,  1.09 ,  11.7 ,
AddVertex, 1.19 ,  1.09 ,  10.9 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_AB_schod.bmp,						
SetTextureCoordinates,0, 0, 1,					
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,
AddVertex, 1.04 ,  1.08 ,  10.9 ,
AddVertex, 1.04 ,  1.08 ,  11.7 ,
AddVertex, 1.19 ,  1.08 ,  11.7 ,
AddVertex, 1.19 ,  1.08 ,  10.9 ,
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex, 1.19 ,  1.06 ,  11.7 ,
AddVertex, 1.19 ,  1.09 ,  11.7 ,
AddVertex, 1.19 ,  1.09 ,  10.9 ,
AddVertex, 1.19 ,  1.06 ,  10.9 ,
AddFace2, 0, 1, 2, 3
SetColor,52,52,52

; druhý schůdek - levý
CreateMeshBuilder,						
AddVertex, 1.14 ,  0.84 ,  10.89 ,
AddVertex, 1.14 ,  0.84 ,  11.75 ,
AddVertex, 1.29 ,  0.84 ,  11.75 ,
AddVertex, 1.29 ,  0.84 ,  10.89 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_AB_schod.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,
AddVertex, 1.14 ,  0.83 ,  10.89 ,
AddVertex, 1.14 ,  0.83 ,  11.75 ,
AddVertex, 1.29 ,  0.83 ,  11.75 ,
AddVertex, 1.29 ,  0.83 ,  10.89 ,
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex, 1.29 ,  0.81 ,  11.75 ,
AddVertex, 1.29 ,  0.84 ,  11.75 ,
AddVertex, 1.29 ,  0.84 ,  10.89 ,
AddVertex, 1.29 ,  0.81 ,  10.89 ,
AddFace2, 0, 1, 2, 3
SetColor,52,52,52

; třetí schůdek - levý
CreateMeshBuilder,						
AddVertex, 1.24 ,  0.63 ,  10.85 ,
AddVertex, 1.24 ,  0.63 ,  11.8 ,
AddVertex, 1.44 ,  0.63 ,  11.8 ,
AddVertex, 1.44 ,  0.63 ,  10.85 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_AB_schod.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	
SetDecalTransparentColor,0,0,0,
AddVertex, 1.24 ,  0.62 ,  10.85 ,
AddVertex, 1.24 ,  0.62 ,  11.8 ,
AddVertex, 1.44 ,  0.62 ,  11.8 ,
AddVertex, 1.44 ,  0.62 ,  10.85 ,
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex, 1.44 ,  0.6 ,  11.8 ,
AddVertex, 1.44 ,  0.63 ,  11.8 ,
AddVertex, 1.44 ,  0.63 ,  10.85 ,
AddVertex, 1.44 ,  0.6 ,  10.85 ,
AddFace2, 0, 1, 2, 3
SetColor,52,52,52


; --- PODVOZEK ------------------------------------------------------------------------------------------------------------------------------------
; přední lišta přední nápravy
CreateMeshBuilder,						
AddVertex,-1 ,  0.68 , -10.76 ,
AddVertex,-1 ,  0.9 , -10.76 ,
AddVertex, 1 ,  0.9 , -10.76 ,
AddVertex, 1 ,  0.68 , -10.76 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_lista.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 4, 0,						
SetTextureCoordinates,3, 4, 1,

; levý bok přední nápravy
CreateMeshBuilder,						
AddVertex,-1 ,  0.2 , -6.62 ,
AddVertex,-1 ,  1.07 , -6.62 ,
AddVertex,-1 ,  1.07 , -10.76 ,
AddVertex,-1 ,  0.2 , -10.76 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_naprava.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,
SetDecalTransparentColor,0,0,0,	

; pravý bok přední nápravy
CreateMeshBuilder,						
AddVertex, 1 ,  0.2 , -6.62 ,
AddVertex, 1 ,  1.07 , -6.62 ,
AddVertex, 1 ,  1.07 , -10.76 ,
AddVertex, 1 ,  0.2 , -10.76 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_naprava.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,
SetDecalTransparentColor,0,0,0,	

; přední náprava - přední dvojkolí
CreateMeshBuilder,
Cylinder, 70, 0.07, 0.07, 1.9
Rotate, 0, 0, 1, 90
Translate, 0 ,  0.5 , -9.95 ,
SetColor,75, 59, 52

; přední náprava - zadní dvojkolí

CreateMeshBuilder,
Cylinder, 70, 0.07, 0.07, 1.9
Rotate, 0, 0, 1, 90
Translate, 0 ,  0.5 , -7.45 ,
SetColor,75, 59, 52

; zadní lišta přední nápravy
CreateMeshBuilder,						
AddVertex,-1 ,  0.68 , -6.62 ,
AddVertex,-1 ,  0.9 , -6.62 ,
AddVertex, 1 ,  0.9 , -6.62 ,
AddVertex, 1 ,  0.68 , -6.62 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_lista.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 4, 0,						
SetTextureCoordinates,3, 4, 1,

; skříň 1 (dvojitá)
CreateMeshBuilder,						
AddVertex,-1 ,  0.45 , -6.03 ,
AddVertex,-1 ,  1.07 , -6.03 ,
AddVertex,-0.6 ,  1.07 , -6.03 ,
AddVertex,-0.6 ,  0.45 , -6.03 ,
AddFace, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex,-1 ,  0.45 , -4.03 ,
AddVertex,-1 ,  1.07 , -4.03 ,
AddVertex,-1 ,  1.07 , -6.03 ,
AddVertex,-1 ,  0.45 , -6.03 ,
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_skrin1.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,						
AddVertex,-0.6 ,  0.45 , -4.03 ,
AddVertex,-0.6 ,  1.07 , -4.03 ,
AddVertex,-0.6 ,  1.07 , -6.03 ,
AddVertex,-0.6 ,  0.45 , -6.03 ,
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex,-1 ,  0.45 , -4.06 ,
AddVertex,-1 ,  1.07 , -4.06 ,
AddVertex,-0.6 ,  1.07 , -4.03 ,
AddVertex,-0.6 ,  0.45 , -4.03 ,
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,

; skříň malá napravo
CreateMeshBuilder,						
AddVertex, 0.85 ,  0.45 , -5.95 ,
AddVertex, 0.85 ,  1.07 , -5.95 ,
AddVertex, 1 ,  1.07 , -5.95 ,
AddVertex, 1 ,  0.45 , -5.95 ,
AddFace, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex, 1 ,  0.45 , -5.95 ,
AddVertex, 1 ,  1.07 , -5.95 ,
AddVertex, 1 ,  1.07 , -5.25 ,
AddVertex, 1 ,  0.45 , -5.25 ,
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_skrin4.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,						
AddVertex, 0.85 ,  0.45 , -5.25 ,
AddVertex, 0.85 ,  1.07 , -5.25 ,
AddVertex, 1 ,  1.07 , -5.25 ,
AddVertex, 1 ,  0.45 , -5.25 ,
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex, 0.85 ,  0.45 , -5.95 ,
AddVertex, 0.85 ,  1.07 , -5.95 ,
AddVertex, 0.85 ,  1.07 , -5.25 ,
AddVertex, 0.85 ,  0.45 , -5.25 ,
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,

; skříň 2 (malá)
CreateMeshBuilder,						
AddVertex,-1 ,  0.6 , -3.85 ,
AddVertex,-1 ,  0.97 , -3.85 ,
AddVertex,-0.85 ,  0.97 , -3.85 ,
AddVertex,-0.85 ,  0.6 , -3.85 ,
AddFace, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex,-1 ,  0.6 , -3.35 ,
AddVertex,-1 ,  0.97 , -3.35 ,
AddVertex,-1 ,  0.97 , -3.85 ,
AddVertex,-1 ,  0.6 , -3.85 ,
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_skrin2.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,						
AddVertex,-0.85 ,  0.6 , -3.35 ,
AddVertex,-0.85 ,  0.97 , -3.35 ,
AddVertex,-0.85 ,  0.97 , -3.85 ,
AddVertex,-0.85 ,  0.6 , -3.85 ,
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex,-1 ,  0.6 , -3.35 ,
AddVertex,-1 ,  0.97 , -3.35 ,
AddVertex,-0.85 ,  0.97 , -3.35 ,
AddVertex,-0.85 ,  0.6 , -3.35 ,
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex,-1 ,  0.97 , -3.85 ,
AddVertex,-1 ,  0.97 , -3.35 ,
AddVertex,-0.85 ,  0.97 , -3.35 ,
AddVertex,-0.85 ,  0.97 , -3.85 ,
AddFace, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex,-0.9 ,  0.97 , -3.45 ,
AddVertex,-0.9 ,  1.07 , -3.45 ,
AddVertex,-0.9 ,  1.07 , -3.5 ,
AddVertex,-0.9 ,  0.97 , -3.5 ,
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,	
CreateMeshBuilder,						
AddVertex,-0.9 ,  0.97 , -3.7 ,
AddVertex,-0.9 ,  1.07 , -3.7 ,
AddVertex,-0.9 ,  1.07 , -3.75 ,
AddVertex,-0.9 ,  0.97 , -3.75 ,
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,
CreateMeshBuilder,						
AddVertex,-0.9 ,  0.7 , -0.23 ,
AddVertex,-0.9 ,  0.75 , -0.23 ,
AddVertex,-0.9 ,  0.75 , -4.05 ,
AddVertex,-0.9 ,  0.7 , -4.05 ,
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,


; skříň 3 (dvojitá)
CreateMeshBuilder,						
AddVertex,-1 ,  0.5 , -3.03 ,
AddVertex,-1 ,  1.07 , -3.03 ,
AddVertex,-0.6 ,  1.07 , -3.03 ,
AddVertex,-0.6 ,  0.5 , -3.03 ,
AddFace, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex,-1 ,  0.5 , -1.03 ,
AddVertex,-1 ,  1.07 , -1.03 ,
AddVertex,-1 ,  1.07 , -3.03 ,
AddVertex,-1 ,  0.5 , -3.03 ,
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_skrin3.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,						
AddVertex,-0.6 ,  0.5 , -1.03 ,
AddVertex,-0.6 ,  1.07 , -1.03 ,
AddVertex,-0.6 ,  1.07 , -3.03 ,
AddVertex,-0.6 ,  0.5 , -3.03 ,
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex,-1 ,  0.5 , -1.03 ,
AddVertex,-1 ,  1.07 , -1.03 ,
AddVertex,-0.6 ,  1.07 , -1.03 ,
AddVertex,-0.6 ,  0.5 , -1.03 ,
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,


; středová skříň
CreateMeshBuilder,						
AddVertex,-1 ,  0.5 , -0.43 ,
AddVertex,-1 ,  1.07 , -0.43 ,
AddVertex, 1 ,  1.07 , -0.43 ,
AddVertex, 1 ,  0.5 , -0.43 ,
AddFace, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex,-1 ,  0.5 ,  0.57 ,
AddVertex,-1 ,  1.07 ,  0.57 ,
AddVertex,-1 ,  1.07 , -0.43 ,
AddVertex,-1 ,  0.5 , -0.43 ,
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_skrin_s.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,						
AddVertex, 1 ,  0.5 ,  0.57 ,
AddVertex, 1 ,  1.07 ,  0.57 ,
AddVertex, 1 ,  1.07 , -0.43 ,
AddVertex, 1 ,  0.5 , -0.43 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_skrin_s.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,						
AddVertex,-1 ,  0.5 ,  0.57 ,
AddVertex,-1 ,  1.07 ,  0.57 ,
AddVertex, 1 ,  1.07 ,  0.57 ,
AddVertex, 1 ,  0.5 ,  0.57 ,
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder
Cylinder, 20, 0.25, 0.25, 1.4
Rotate, 1, 0, 0, 90
Rotate, 0, 0, 1, 90
Translate, 0.86 ,  0.85 ,  2.6 ,
LoadTexture,vag_CD_AB_valec2.bmp,
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1 
SetTextureCoordinates,2,0.1,0 
SetTextureCoordinates,3,0.1,1 
SetTextureCoordinates,4,0.2,0 
SetTextureCoordinates,5,0.2,1 
SetTextureCoordinates,6,0.3,0 
SetTextureCoordinates,7,0.3,1 
SetTextureCoordinates,8,0.4,0 
SetTextureCoordinates,9,0.4,1 
SetTextureCoordinates,10,0.5,0 
SetTextureCoordinates,11,0.5,1 
SetTextureCoordinates,12,0.6,0 
SetTextureCoordinates,13,0.6,1 
SetTextureCoordinates,14,0.7,0 
SetTextureCoordinates,15,0.7,1 
SetTextureCoordinates,16,0.8,0 
SetTextureCoordinates,17,0.8,1 
SetTextureCoordinates,18,0.9,0 
SetTextureCoordinates,19,0.9,1 
SetTextureCoordinates,20,1,0 
SetTextureCoordinates,21,1,1 
SetTextureCoordinates,22,1.1,0 
SetTextureCoordinates,23,1.1,1 
SetTextureCoordinates,24,1.2,0 
SetTextureCoordinates,25,1.2,1 
SetTextureCoordinates,26,1.3,0 
SetTextureCoordinates,27,1.3,1 
SetTextureCoordinates,28,1.4,0 
SetTextureCoordinates,29,1.4,1 
SetTextureCoordinates,30,1.5,0 
SetTextureCoordinates,31,1.5,1 
SetTextureCoordinates,32,1.6,0 
SetTextureCoordinates,33,1.6,1 
SetTextureCoordinates,34,1.7,0 
SetTextureCoordinates,35,1.7,1 
SetTextureCoordinates,36,1.8,0 
SetTextureCoordinates,37,1.8,1 
SetTextureCoordinates,38,1.9,0 
SetTextureCoordinates,39,1.9,1 

CreateMeshBuilder,						
AddVertex, 1.05 ,  0.6 ,  1.97 ,
AddVertex, 1.15 ,  0.8 ,  1.97 ,
AddVertex, 1.15 ,  1.07 ,  1.97 ,
AddVertex, 1.15 ,  1.07 ,  2.07 ,
AddVertex, 1.15 ,  0.8 ,  2.07 ,
AddVertex, 1.05 ,  0.6 ,  2.07 ,
AddFace2, 0, 1, 4, 5
AddFace2, 1, 2, 3, 4
GenerateNormals,						
LoadTexture,vag_CD_AB_valec_drz_l.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0.66,						
SetTextureCoordinates,2, 0, 0,						
SetTextureCoordinates,3, 1, 0,
SetTextureCoordinates,4, 1, 0.66,
SetTextureCoordinates,5, 1, 1,
SetDecalTransparentColor,0,0,0,

CreateMeshBuilder,						
AddVertex, 1.05 ,  0.6 ,  3.15 ,
AddVertex, 1.15 ,  0.8 ,  3.15 ,
AddVertex, 1.15 ,  1.07 ,  3.15 ,
AddVertex, 1.15 ,  1.07 ,  3.25 ,
AddVertex, 1.15 ,  0.8 ,  3.25 ,
AddVertex, 1.05 ,  0.6 ,  3.25 ,
AddFace2, 0, 1, 4, 5
AddFace2, 1, 2, 3, 4
GenerateNormals,						
LoadTexture,vag_CD_AB_valec_drz_p.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0.66,						
SetTextureCoordinates,2, 0, 0,						
SetTextureCoordinates,3, 1, 0,
SetTextureCoordinates,4, 1, 0.66,
SetTextureCoordinates,5, 1, 1,
SetDecalTransparentColor,0,0,0,

CreateMeshBuilder,						
AddVertex,-0.85 ,  0.75 ,  2.55 ,
AddVertex,-0.85 ,  0.8 ,  2.55 ,
AddVertex,-0.85 ,  0.8 ,  0.57 ,
AddVertex,-0.85 ,  0.75 ,  0.57 ,
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex,-0.85 ,  0.75 ,  2.6 ,
AddVertex,-0.85 ,  1.07 ,  2.6 ,
AddVertex,-0.85 ,  1.07 ,  2.55 ,
AddVertex,-0.85 ,  0.75 ,  2.55 ,
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex, 0.85 ,  0.75 ,  2.25 ,
AddVertex, 0.85 ,  0.8 ,  2.25 ,
AddVertex, 0.85 ,  0.8 ,  0.57 ,
AddVertex, 0.85 ,  0.75 ,  0.57 ,
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex,-1.35 ,  0.81 ,  1.13 ,
AddVertex,-1.35 ,  1.07 ,  1.13 ,
AddVertex,-1.35 ,  1.07 ,  0.869999999999999 ,
AddVertex,-1.35 ,  0.81 ,  0.869999999999999 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_regul.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,						
AddVertex,-1.35 ,  0.75 ,  1.83 ,
AddVertex,-1.35 ,  1.07 ,  1.83 ,
AddVertex,-1.35 ,  1.07 ,  1.13 ,
AddVertex,-1.35 ,  0.75 ,  1.13 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_regul2.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,
SetDecalTransparentColor,0,0,0,

CreateMeshBuilder,						
AddVertex, 1.35 ,  0.81 ,  1.13 ,
AddVertex, 1.35 ,  1.07 ,  1.13 ,
AddVertex, 1.35 ,  1.07 ,  0.869999999999999 ,
AddVertex, 1.35 ,  0.81 ,  0.869999999999999 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_regul.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,						
AddVertex, 1.35 ,  0.75 ,  1.83 ,
AddVertex, 1.35 ,  1.07 ,  1.83 ,
AddVertex, 1.35 ,  1.07 ,  1.13 ,
AddVertex, 1.35 ,  0.75 ,  1.13 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_regul2.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,
SetDecalTransparentColor,0,0,0,


; skříň 4
CreateMeshBuilder,						
AddVertex,-1 ,  0.45 ,  3.48 ,
AddVertex,-1 ,  1.07 ,  3.48 ,
AddVertex,-0.7 ,  1.07 ,  3.48 ,
AddVertex,-0.7 ,  0.45 ,  3.48 ,
AddFace, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex,-1 ,  0.45 ,  5.13 ,
AddVertex,-1 ,  1.07 ,  5.13 ,
AddVertex,-1 ,  1.07 ,  3.48 ,
AddVertex,-1 ,  0.45 ,  3.48 ,
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_skrin4.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,						
AddVertex,-0.7 ,  0.45 ,  5.13 ,
AddVertex,-0.7 ,  1.07 ,  5.13 ,
AddVertex,-0.7 ,  1.07 ,  3.48 ,
AddVertex,-0.7 ,  0.45 ,  3.48 ,
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex,-1 ,  0.45 ,  5.13 ,
AddVertex,-1 ,  1.07 ,  5.13 ,
AddVertex,-0.7 ,  1.07 ,  5.13 ,
AddVertex,-0.7 ,  0.45 ,  5.13 ,
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex,-0.9 ,  0.8 ,  7.13 ,
AddVertex,-0.9 ,  0.85 ,  7.13 ,
AddVertex,-0.9 ,  0.85 ,  5.09 ,
AddVertex,-0.9 ,  0.8 ,  5.09 ,
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,

; skříň 5 (malá)
CreateMeshBuilder,						
AddVertex,-1 ,  0.69 ,  5.45 ,
AddVertex,-1 ,  1.06 ,  5.45 ,
AddVertex,-0.85 ,  1.06 ,  5.45 ,
AddVertex,-0.85 ,  0.69 ,  5.45 ,
AddFace, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex,-1 ,  0.69 ,  5.95 ,
AddVertex,-1 ,  1.06 ,  5.95 ,
AddVertex,-1 ,  1.06 ,  5.45 ,
AddVertex,-1 ,  0.69 ,  5.45 ,
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_skrin2.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,						
AddVertex,-0.85 ,  0.69 ,  5.95 ,
AddVertex,-0.85 ,  1.06 ,  5.95 ,
AddVertex,-0.85 ,  1.06 ,  5.45 ,
AddVertex,-0.85 ,  0.69 ,  5.45 ,
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex,-1 ,  0.69 ,  5.95 ,
AddVertex,-1 ,  1.06 ,  5.95 ,
AddVertex,-0.85 ,  1.06 ,  5.95 ,
AddVertex,-0.85 ,  0.69 ,  5.95 ,
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,


; přední lišta zadní nápravy
CreateMeshBuilder,						
AddVertex,-1 ,  0.68 ,  6.66 ,
AddVertex,-1 ,  0.9 ,  6.66 ,
AddVertex, 1 ,  0.9 ,  6.66 ,
AddVertex, 1 ,  0.68 ,  6.66 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_lista.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 4, 0,						
SetTextureCoordinates,3, 4, 1,

; levý bok zadní nápravy
CreateMeshBuilder,						
AddVertex,-1 ,  0.2 ,  10.8 ,
AddVertex,-1 ,  1.07 ,  10.8 ,
AddVertex,-1 ,  1.07 ,  6.66 ,
AddVertex,-1 ,  0.2 ,  6.66 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_naprava.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,
SetDecalTransparentColor,0,0,0,	

; pravý bok zadní nápravy
CreateMeshBuilder,						
AddVertex, 1 ,  0.2 ,  10.8 ,
AddVertex, 1 ,  1.07 ,  10.8 ,
AddVertex, 1 ,  1.07 ,  6.66 ,
AddVertex, 1 ,  0.2 ,  6.66 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_naprava.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,
SetDecalTransparentColor,0,0,0,

; zadní náprava - přední dvojkolí
CreateMeshBuilder,
Cylinder, 70, 0.07, 0.07, 1.9
Rotate, 0, 0, 1, 90
Translate, 0 ,  0.5 ,  7.45 ,
SetColor,75, 59, 52

; zadní náprava - zadní dvojkolí
CreateMeshBuilder,
Cylinder, 70, 0.07, 0.07, 1.9
Rotate, 0, 0, 1, 90
Translate, 0 ,  0.5 ,  9.95 ,
SetColor,75, 59, 52

; zadní lišta zadní nápravy
CreateMeshBuilder,						
AddVertex,-1 ,  0.68 ,  10.8 ,
AddVertex,-1 ,  0.9 ,  10.8 ,
AddVertex, 1 ,  0.9 ,  10.8 ,
AddVertex, 1 ,  0.68 ,  10.8 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_lista.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 4, 0,						
SetTextureCoordinates,3, 4, 1,	

; --- NÁRAZNÍKY ------------------------------------------------------------------------------------------------------------------------------------
;nárazník - přední levý						
CreateMeshBuilder,						
AddVertex,-1.23 ,  0.87 , -12.2 ,
AddVertex,-1.23 ,  1.23 , -12.2 ,
AddVertex,-0.59 ,  1.23 , -12.2 ,
AddVertex,-0.59 ,  0.87 , -12.2 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_naraznik_l.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,
SetDecalTransparentColor,0,0,0,

CreateMeshBuilder
Cylinder, 20, 0.11, 0.11, 0.65
Rotate, 1, 0, 0, 90
Translate,-0.9 ,  1.07 , -11.65 ,
LoadTexture,vag_CD_AB_valec.bmp,
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1 
SetTextureCoordinates,2,0.1,0 
SetTextureCoordinates,3,0.1,1 
SetTextureCoordinates,4,0.2,0 
SetTextureCoordinates,5,0.2,1 
SetTextureCoordinates,6,0.3,0 
SetTextureCoordinates,7,0.3,1 
SetTextureCoordinates,8,0.4,0 
SetTextureCoordinates,9,0.4,1 
SetTextureCoordinates,10,0.5,0 
SetTextureCoordinates,11,0.5,1 
SetTextureCoordinates,12,0.6,0 
SetTextureCoordinates,13,0.6,1 
SetTextureCoordinates,14,0.7,0 
SetTextureCoordinates,15,0.7,1 
SetTextureCoordinates,16,0.8,0 
SetTextureCoordinates,17,0.8,1 
SetTextureCoordinates,18,0.9,0 
SetTextureCoordinates,19,0.9,1 
SetTextureCoordinates,20,1,0 
SetTextureCoordinates,21,1,1 
SetTextureCoordinates,22,1.1,0 
SetTextureCoordinates,23,1.1,1 
SetTextureCoordinates,24,1.2,0 
SetTextureCoordinates,25,1.2,1 
SetTextureCoordinates,26,1.3,0 
SetTextureCoordinates,27,1.3,1 
SetTextureCoordinates,28,1.4,0 
SetTextureCoordinates,29,1.4,1 
SetTextureCoordinates,30,1.5,0 
SetTextureCoordinates,31,1.5,1 
SetTextureCoordinates,32,1.6,0 
SetTextureCoordinates,33,1.6,1 
SetTextureCoordinates,34,1.7,0 
SetTextureCoordinates,35,1.7,1 
SetTextureCoordinates,36,1.8,0 
SetTextureCoordinates,37,1.8,1 
SetTextureCoordinates,38,1.9,0 
SetTextureCoordinates,39,1.9,1 

CreateMeshBuilder
Cylinder, 20, 0.1, 0.1, 0.3
Rotate, 1, 0, 0, 90
Translate,-0.9 ,  1.07 , -12.04 ,
LoadTexture,vag_CD_AB_valec.bmp,
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1 
SetTextureCoordinates,2,0.1,0 
SetTextureCoordinates,3,0.1,1 
SetTextureCoordinates,4,0.2,0 
SetTextureCoordinates,5,0.2,1 
SetTextureCoordinates,6,0.3,0 
SetTextureCoordinates,7,0.3,1 
SetTextureCoordinates,8,0.4,0 
SetTextureCoordinates,9,0.4,1 
SetTextureCoordinates,10,0.5,0 
SetTextureCoordinates,11,0.5,1 
SetTextureCoordinates,12,0.6,0 
SetTextureCoordinates,13,0.6,1 
SetTextureCoordinates,14,0.7,0 
SetTextureCoordinates,15,0.7,1 
SetTextureCoordinates,16,0.8,0 
SetTextureCoordinates,17,0.8,1 
SetTextureCoordinates,18,0.9,0 
SetTextureCoordinates,19,0.9,1 
SetTextureCoordinates,20,1,0 
SetTextureCoordinates,21,1,1 
SetTextureCoordinates,22,1.1,0 
SetTextureCoordinates,23,1.1,1 
SetTextureCoordinates,24,1.2,0 
SetTextureCoordinates,25,1.2,1 
SetTextureCoordinates,26,1.3,0 
SetTextureCoordinates,27,1.3,1 
SetTextureCoordinates,28,1.4,0 
SetTextureCoordinates,29,1.4,1 
SetTextureCoordinates,30,1.5,0 
SetTextureCoordinates,31,1.5,1 
SetTextureCoordinates,32,1.6,0 
SetTextureCoordinates,33,1.6,1 
SetTextureCoordinates,34,1.7,0 
SetTextureCoordinates,35,1.7,1 
SetTextureCoordinates,36,1.8,0 
SetTextureCoordinates,37,1.8,1 
SetTextureCoordinates,38,1.9,0 
SetTextureCoordinates,39,1.9,1 


;nárazník - přední pravý				
CreateMeshBuilder,						
AddVertex, 0.59 ,  0.87 , -12.2 ,
AddVertex, 0.59 ,  1.23 , -12.2 ,
AddVertex, 1.23 ,  1.23 , -12.2 ,
AddVertex, 1.23 ,  0.87 , -12.2 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_naraznik_p.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,
SetDecalTransparentColor,0,0,0,		

CreateMeshBuilder
Cylinder, 20, 0.11, 0.11, 0.65
Rotate, 1, 0, 0, 90
Translate, 0.9 ,  1.07 , -11.65 ,
LoadTexture,vag_CD_AB_valec.bmp,
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1 
SetTextureCoordinates,2,0.1,0 
SetTextureCoordinates,3,0.1,1 
SetTextureCoordinates,4,0.2,0 
SetTextureCoordinates,5,0.2,1 
SetTextureCoordinates,6,0.3,0 
SetTextureCoordinates,7,0.3,1 
SetTextureCoordinates,8,0.4,0 
SetTextureCoordinates,9,0.4,1 
SetTextureCoordinates,10,0.5,0 
SetTextureCoordinates,11,0.5,1 
SetTextureCoordinates,12,0.6,0 
SetTextureCoordinates,13,0.6,1 
SetTextureCoordinates,14,0.7,0 
SetTextureCoordinates,15,0.7,1 
SetTextureCoordinates,16,0.8,0 
SetTextureCoordinates,17,0.8,1 
SetTextureCoordinates,18,0.9,0 
SetTextureCoordinates,19,0.9,1 
SetTextureCoordinates,20,1,0 
SetTextureCoordinates,21,1,1 
SetTextureCoordinates,22,1.1,0 
SetTextureCoordinates,23,1.1,1 
SetTextureCoordinates,24,1.2,0 
SetTextureCoordinates,25,1.2,1 
SetTextureCoordinates,26,1.3,0 
SetTextureCoordinates,27,1.3,1 
SetTextureCoordinates,28,1.4,0 
SetTextureCoordinates,29,1.4,1 
SetTextureCoordinates,30,1.5,0 
SetTextureCoordinates,31,1.5,1 
SetTextureCoordinates,32,1.6,0 
SetTextureCoordinates,33,1.6,1 
SetTextureCoordinates,34,1.7,0 
SetTextureCoordinates,35,1.7,1 
SetTextureCoordinates,36,1.8,0 
SetTextureCoordinates,37,1.8,1 
SetTextureCoordinates,38,1.9,0 
SetTextureCoordinates,39,1.9,1 

CreateMeshBuilder
Cylinder, 20, 0.1, 0.1, 0.3
Rotate, 1, 0, 0, 90
Translate, 0.9 ,  1.07 , -12.04 ,
LoadTexture,vag_CD_AB_valec.bmp,
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1 
SetTextureCoordinates,2,0.1,0 
SetTextureCoordinates,3,0.1,1 
SetTextureCoordinates,4,0.2,0 
SetTextureCoordinates,5,0.2,1 
SetTextureCoordinates,6,0.3,0 
SetTextureCoordinates,7,0.3,1 
SetTextureCoordinates,8,0.4,0 
SetTextureCoordinates,9,0.4,1 
SetTextureCoordinates,10,0.5,0 
SetTextureCoordinates,11,0.5,1 
SetTextureCoordinates,12,0.6,0 
SetTextureCoordinates,13,0.6,1 
SetTextureCoordinates,14,0.7,0 
SetTextureCoordinates,15,0.7,1 
SetTextureCoordinates,16,0.8,0 
SetTextureCoordinates,17,0.8,1 
SetTextureCoordinates,18,0.9,0 
SetTextureCoordinates,19,0.9,1 
SetTextureCoordinates,20,1,0 
SetTextureCoordinates,21,1,1 
SetTextureCoordinates,22,1.1,0 
SetTextureCoordinates,23,1.1,1 
SetTextureCoordinates,24,1.2,0 
SetTextureCoordinates,25,1.2,1 
SetTextureCoordinates,26,1.3,0 
SetTextureCoordinates,27,1.3,1 
SetTextureCoordinates,28,1.4,0 
SetTextureCoordinates,29,1.4,1 
SetTextureCoordinates,30,1.5,0 
SetTextureCoordinates,31,1.5,1 
SetTextureCoordinates,32,1.6,0 
SetTextureCoordinates,33,1.6,1 
SetTextureCoordinates,34,1.7,0 
SetTextureCoordinates,35,1.7,1 
SetTextureCoordinates,36,1.8,0 
SetTextureCoordinates,37,1.8,1 
SetTextureCoordinates,38,1.9,0 
SetTextureCoordinates,39,1.9,1 


;nárazník - zadní levý						
CreateMeshBuilder,	
AddVertex,-1.23 ,  0.87 ,  12.2 ,
AddVertex,-1.23 ,  1.23 ,  12.2 ,
AddVertex,-0.59 ,  1.23 ,  12.2 ,
AddVertex,-0.59 ,  0.87 ,  12.2 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_naraznik_l.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,
SetDecalTransparentColor,0,0,0,

CreateMeshBuilder
Cylinder, 20, 0.11, 0.11, 0.25
Rotate, 1, 0, 0, 90
Translate,-0.9 ,  1.07 ,  11.9 ,
LoadTexture,vag_CD_AB_valec.bmp,
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1 
SetTextureCoordinates,2,0.1,0 
SetTextureCoordinates,3,0.1,1 
SetTextureCoordinates,4,0.2,0 
SetTextureCoordinates,5,0.2,1 
SetTextureCoordinates,6,0.3,0 
SetTextureCoordinates,7,0.3,1 
SetTextureCoordinates,8,0.4,0 
SetTextureCoordinates,9,0.4,1 
SetTextureCoordinates,10,0.5,0 
SetTextureCoordinates,11,0.5,1 
SetTextureCoordinates,12,0.6,0 
SetTextureCoordinates,13,0.6,1 
SetTextureCoordinates,14,0.7,0 
SetTextureCoordinates,15,0.7,1 
SetTextureCoordinates,16,0.8,0 
SetTextureCoordinates,17,0.8,1 
SetTextureCoordinates,18,0.9,0 
SetTextureCoordinates,19,0.9,1 
SetTextureCoordinates,20,1,0 
SetTextureCoordinates,21,1,1 
SetTextureCoordinates,22,1.1,0 
SetTextureCoordinates,23,1.1,1 
SetTextureCoordinates,24,1.2,0 
SetTextureCoordinates,25,1.2,1 
SetTextureCoordinates,26,1.3,0 
SetTextureCoordinates,27,1.3,1 
SetTextureCoordinates,28,1.4,0 
SetTextureCoordinates,29,1.4,1 
SetTextureCoordinates,30,1.5,0 
SetTextureCoordinates,31,1.5,1 
SetTextureCoordinates,32,1.6,0 
SetTextureCoordinates,33,1.6,1 
SetTextureCoordinates,34,1.7,0 
SetTextureCoordinates,35,1.7,1 
SetTextureCoordinates,36,1.8,0 
SetTextureCoordinates,37,1.8,1 
SetTextureCoordinates,38,1.9,0 
SetTextureCoordinates,39,1.9,1 

CreateMeshBuilder
Cylinder, 20, 0.1, 0.1, 0.18
Rotate, 1, 0, 0, 90
Translate,-0.9 ,  1.07 ,  12.1 ,
LoadTexture,vag_CD_AB_valec.bmp,
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1 
SetTextureCoordinates,2,0.1,0 
SetTextureCoordinates,3,0.1,1 
SetTextureCoordinates,4,0.2,0 
SetTextureCoordinates,5,0.2,1 
SetTextureCoordinates,6,0.3,0 
SetTextureCoordinates,7,0.3,1 
SetTextureCoordinates,8,0.4,0 
SetTextureCoordinates,9,0.4,1 
SetTextureCoordinates,10,0.5,0 
SetTextureCoordinates,11,0.5,1 
SetTextureCoordinates,12,0.6,0 
SetTextureCoordinates,13,0.6,1 
SetTextureCoordinates,14,0.7,0 
SetTextureCoordinates,15,0.7,1 
SetTextureCoordinates,16,0.8,0 
SetTextureCoordinates,17,0.8,1 
SetTextureCoordinates,18,0.9,0 
SetTextureCoordinates,19,0.9,1 
SetTextureCoordinates,20,1,0 
SetTextureCoordinates,21,1,1 
SetTextureCoordinates,22,1.1,0 
SetTextureCoordinates,23,1.1,1 
SetTextureCoordinates,24,1.2,0 
SetTextureCoordinates,25,1.2,1 
SetTextureCoordinates,26,1.3,0 
SetTextureCoordinates,27,1.3,1 
SetTextureCoordinates,28,1.4,0 
SetTextureCoordinates,29,1.4,1 
SetTextureCoordinates,30,1.5,0 
SetTextureCoordinates,31,1.5,1 
SetTextureCoordinates,32,1.6,0 
SetTextureCoordinates,33,1.6,1 
SetTextureCoordinates,34,1.7,0 
SetTextureCoordinates,35,1.7,1 
SetTextureCoordinates,36,1.8,0 
SetTextureCoordinates,37,1.8,1 
SetTextureCoordinates,38,1.9,0 
SetTextureCoordinates,39,1.9,1 


;nárazník - zadní pravý				
CreateMeshBuilder,	
AddVertex, 0.59 ,  0.87 ,  12.2 ,
AddVertex, 0.59 ,  1.23 ,  12.2 ,
AddVertex, 1.23 ,  1.23 ,  12.2 ,
AddVertex, 1.23 ,  0.87 ,  12.2 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_AB_naraznik_p.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,
SetDecalTransparentColor,0,0,0,

CreateMeshBuilder
Cylinder, 20, 0.11, 0.11, 0.25
Rotate, 1, 0, 0, 90
Translate, 0.9 ,  1.07 ,  11.9 ,
LoadTexture,vag_CD_AB_valec.bmp,
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1 
SetTextureCoordinates,2,0.1,0 
SetTextureCoordinates,3,0.1,1 
SetTextureCoordinates,4,0.2,0 
SetTextureCoordinates,5,0.2,1 
SetTextureCoordinates,6,0.3,0 
SetTextureCoordinates,7,0.3,1 
SetTextureCoordinates,8,0.4,0 
SetTextureCoordinates,9,0.4,1 
SetTextureCoordinates,10,0.5,0 
SetTextureCoordinates,11,0.5,1 
SetTextureCoordinates,12,0.6,0 
SetTextureCoordinates,13,0.6,1 
SetTextureCoordinates,14,0.7,0 
SetTextureCoordinates,15,0.7,1 
SetTextureCoordinates,16,0.8,0 
SetTextureCoordinates,17,0.8,1 
SetTextureCoordinates,18,0.9,0 
SetTextureCoordinates,19,0.9,1 
SetTextureCoordinates,20,1,0 
SetTextureCoordinates,21,1,1 
SetTextureCoordinates,22,1.1,0 
SetTextureCoordinates,23,1.1,1 
SetTextureCoordinates,24,1.2,0 
SetTextureCoordinates,25,1.2,1 
SetTextureCoordinates,26,1.3,0 
SetTextureCoordinates,27,1.3,1 
SetTextureCoordinates,28,1.4,0 
SetTextureCoordinates,29,1.4,1 
SetTextureCoordinates,30,1.5,0 
SetTextureCoordinates,31,1.5,1 
SetTextureCoordinates,32,1.6,0 
SetTextureCoordinates,33,1.6,1 
SetTextureCoordinates,34,1.7,0 
SetTextureCoordinates,35,1.7,1 
SetTextureCoordinates,36,1.8,0 
SetTextureCoordinates,37,1.8,1 
SetTextureCoordinates,38,1.9,0 
SetTextureCoordinates,39,1.9,1 

CreateMeshBuilder
Cylinder, 20, 0.1, 0.1, 0.18
Rotate, 1, 0, 0, 90
Translate, 0.9 ,  1.07 ,  12.1 ,
LoadTexture,vag_CD_AB_valec.bmp,
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1 
SetTextureCoordinates,2,0.1,0 
SetTextureCoordinates,3,0.1,1 
SetTextureCoordinates,4,0.2,0 
SetTextureCoordinates,5,0.2,1 
SetTextureCoordinates,6,0.3,0 
SetTextureCoordinates,7,0.3,1 
SetTextureCoordinates,8,0.4,0 
SetTextureCoordinates,9,0.4,1 
SetTextureCoordinates,10,0.5,0 
SetTextureCoordinates,11,0.5,1 
SetTextureCoordinates,12,0.6,0 
SetTextureCoordinates,13,0.6,1 
SetTextureCoordinates,14,0.7,0 
SetTextureCoordinates,15,0.7,1 
SetTextureCoordinates,16,0.8,0 
SetTextureCoordinates,17,0.8,1 
SetTextureCoordinates,18,0.9,0 
SetTextureCoordinates,19,0.9,1 
SetTextureCoordinates,20,1,0 
SetTextureCoordinates,21,1,1 
SetTextureCoordinates,22,1.1,0 
SetTextureCoordinates,23,1.1,1 
SetTextureCoordinates,24,1.2,0 
SetTextureCoordinates,25,1.2,1 
SetTextureCoordinates,26,1.3,0 
SetTextureCoordinates,27,1.3,1 
SetTextureCoordinates,28,1.4,0 
SetTextureCoordinates,29,1.4,1 
SetTextureCoordinates,30,1.5,0 
SetTextureCoordinates,31,1.5,1 
SetTextureCoordinates,32,1.6,0 
SetTextureCoordinates,33,1.6,1 
SetTextureCoordinates,34,1.7,0 
SetTextureCoordinates,35,1.7,1 
SetTextureCoordinates,36,1.8,0 
SetTextureCoordinates,37,1.8,1 
SetTextureCoordinates,38,1.9,0 
SetTextureCoordinates,39,1.9,1 

CreateMeshBuilder
Cylinder, 20, 0.1, 0.1, 0.25
Rotate, 0, 0, 1, 90
Translate, 1.075 ,  0.55 , -9.95 ,
SetColor,77,72,61,

CreateMeshBuilder
Cylinder, 20, 0.04, 0.04, 1.4
Rotate, 1, 0, 0, 85
Translate, 1.16 ,  0.6 , -9.2 ,
SetColor,54,56,52,

; dynamo u zadní nápravy
CreateMeshBuilder
Cylinder, 20, 0.2, 0.2, 0.7
Rotate, 1, 0, 0, 85
Translate, 1.16 ,  0.7 , -8.2 ,
SetColor,76,73,68,


; --- STŘECHA ------------------------------------------------------------------------------------------------------------------------------------

; PRAVÁ POLOVINA STŘECHY
CreateMeshBuilder
AddVertex, 1.32 ,  3.27 , -12.1 ,
AddVertex, 1.39 ,  3.27 , -10.91 ,
AddVertex, 1.39 ,  3.27 ,  10.91 ,
AddVertex, 1.32 ,  3.27 ,  12.1 ,
AddVertex, 1.34 ,  3.17 ,  12.1 ,
AddVertex, 1.44 ,  3.17 ,  10.91 ,
AddVertex, 1.44 ,  3.17 , -10.91 ,
AddVertex, 1.34 ,  3.17 , -12.1 ,
AddFace, 0, 1, 6, 7						
AddFace, 1, 2, 5, 6						
AddFace, 2, 3, 4, 5	
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates,0, 0.99, 2,						
SetTextureCoordinates,1, 0.99, 1.9,						
SetTextureCoordinates,2, 0.99, 0.1,						
SetTextureCoordinates,3, 0.99, 0,	
SetTextureCoordinates,4, 1, 0,	
SetTextureCoordinates,5, 1, 0.1,	
SetTextureCoordinates,6, 1, 1.9,	
SetTextureCoordinates,7, 1, 2,

CreateMeshBuilder
AddVertex, 1.28 ,  3.43 , -12.1 ,
AddVertex, 1.31 ,  3.43 , -10.91 ,
AddVertex, 1.31 ,  3.43 ,  10.91 ,
AddVertex, 1.28 ,  3.43 ,  12.1 ,
AddVertex, 1.32 ,  3.27 ,  12.1 ,
AddVertex, 1.39 ,  3.27 ,  10.91 ,
AddVertex, 1.39 ,  3.27 , -10.91 ,
AddVertex, 1.32 ,  3.27 , -12.1 ,
AddFace, 0, 1, 6, 7						
AddFace, 1, 2, 5, 6						
AddFace, 2, 3, 4, 5	
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates,0, 0.98, 2,						
SetTextureCoordinates,1, 0.98, 1.9,						
SetTextureCoordinates,2, 0.98, 0.1,						
SetTextureCoordinates,3, 0.98, 0,	
SetTextureCoordinates,4, 0.99, 0,	
SetTextureCoordinates,5, 0.99, 0.1,	
SetTextureCoordinates,6, 0.99, 1.9,	
SetTextureCoordinates,7, 0.99, 2,

CreateMeshBuilder
AddVertex, 1.18 ,  3.61 , -12.1 ,
AddVertex, 1.18 ,  3.61 , -10.91 ,
AddVertex, 1.18 ,  3.61 ,  10.91 ,
AddVertex, 1.18 ,  3.61 ,  12.1 ,
AddVertex, 1.28 ,  3.43 ,  12.1 ,
AddVertex, 1.31 ,  3.43 ,  10.91 ,
AddVertex, 1.31 ,  3.43 , -10.91 ,
AddVertex, 1.28 ,  3.43 , -12.1 ,
AddFace, 0, 1, 6, 7						
AddFace, 1, 2, 5, 6						
AddFace, 2, 3, 4, 5	
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates,0, 0.94, 2,						
SetTextureCoordinates,1, 0.94, 1.9,						
SetTextureCoordinates,2, 0.94, 0.1,						
SetTextureCoordinates,3, 0.94, 0,	
SetTextureCoordinates,4, 0.98, 0,	
SetTextureCoordinates,5, 0.98, 0.1,	
SetTextureCoordinates,6, 0.98, 1.9,	
SetTextureCoordinates,7, 0.98, 2,

CreateMeshBuilder
AddVertex, 1.08 ,  3.72 , -12.1 ,
AddVertex, 1.08 ,  3.72 ,  12.1 ,
AddVertex, 1.18 ,  3.61 ,  12.1 ,
AddVertex, 1.18 ,  3.61 , -12.1 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates, 0, 0.9, 2,
SetTextureCoordinates, 1, 0.9, 0,
SetTextureCoordinates, 2, 0.94, 0,
SetTextureCoordinates, 3, 0.94, 2,

CreateMeshBuilder
AddVertex, 0.97 ,  3.83 , -12.1 ,
AddVertex, 0.97 ,  3.83 ,  12.1 ,
AddVertex, 1.08 ,  3.72 ,  12.1 ,
AddVertex, 1.08 ,  3.72 , -12.1 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates, 0, 0.86, 2,
SetTextureCoordinates, 1, 0.86, 0,
SetTextureCoordinates, 2, 0.9, 0,
SetTextureCoordinates, 3, 0.9, 2,

CreateMeshBuilder
AddVertex, 0.83 ,  3.93 , -12.1 ,
AddVertex, 0.83 ,  3.93 ,  12.1 ,
AddVertex, 0.97 ,  3.83 ,  12.1 ,
AddVertex, 0.97 ,  3.83 , -12.1 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates, 0, 0.81, 2,
SetTextureCoordinates, 1, 0.81, 0,
SetTextureCoordinates, 2, 0.86, 0,
SetTextureCoordinates, 3, 0.86, 2,

CreateMeshBuilder
AddVertex, 0.63 ,  4.04 , -12.1 ,
AddVertex, 0.63 ,  4.04 ,  12.1 ,
AddVertex, 0.83 ,  3.93 ,  12.1 ,
AddVertex, 0.83 ,  3.93 , -12.1 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates, 0, 0.74, 2,
SetTextureCoordinates, 1, 0.74, 0,
SetTextureCoordinates, 2, 0.81, 0,
SetTextureCoordinates, 3, 0.81, 2,

CreateMeshBuilder
AddVertex, 0.5 ,  4.11 , -12.1 ,
AddVertex, 0.5 ,  4.11 ,  12.1 ,
AddVertex, 0.63 ,  4.04 ,  12.1 ,
AddVertex, 0.63 ,  4.04 , -12.1 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates, 0, 0.69, 2,
SetTextureCoordinates, 1, 0.69, 0,
SetTextureCoordinates, 2, 0.74, 0,
SetTextureCoordinates, 3, 0.74, 2,

CreateMeshBuilder
AddVertex, 0.36 ,  4.17 , -12.1 ,
AddVertex, 0.36 ,  4.17 ,  12.1 ,
AddVertex, 0.5 ,  4.11 ,  12.1 ,
AddVertex, 0.5 ,  4.11 , -12.1 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates, 0, 0.63, 2,
SetTextureCoordinates, 1, 0.63, 0,
SetTextureCoordinates, 2, 0.69, 0,
SetTextureCoordinates, 3, 0.69, 2,

CreateMeshBuilder
AddVertex, 0.2 ,  4.21 , -12.1 ,
AddVertex, 0.2 ,  4.21 ,  12.1 ,
AddVertex, 0.36 ,  4.17 ,  12.1 ,
AddVertex, 0.36 ,  4.17 , -12.1 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates, 0, 0.57, 2,
SetTextureCoordinates, 1, 0.57, 0,
SetTextureCoordinates, 2, 0.63, 0,
SetTextureCoordinates, 3, 0.63, 2,

CreateMeshBuilder
AddVertex, 0.07 ,  4.22 , -12.1 ,
AddVertex, 0.07 ,  4.22 ,  12.1 ,
AddVertex, 0.2 ,  4.21 ,  12.1 ,
AddVertex, 0.2 ,  4.21 , -12.1 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates, 0, 0.53, 2,
SetTextureCoordinates, 1, 0.53, 0,
SetTextureCoordinates, 2, 0.57, 0,
SetTextureCoordinates, 3, 0.57, 2,

CreateMeshBuilder
AddVertex, 0 ,  4.23 , -12.1 ,
AddVertex, 0 ,  4.23 ,  12.1 ,
AddVertex, 0.07 ,  4.22 ,  12.1 ,
AddVertex, 0.07 ,  4.22 , -12.1 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp
SetTextureCoordinates, 0, 0.5, 2,
SetTextureCoordinates, 1, 0.5, 0,
SetTextureCoordinates, 2, 0.53, 0,
SetTextureCoordinates, 3, 0.53, 2,

; LEVÁ POLOVINA STŘECHY
CreateMeshBuilder
AddVertex,-0.07 ,  4.22 , -12.1 ,
AddVertex,-0.07 ,  4.22 ,  12.1 ,
AddVertex, 0 ,  4.23 ,  12.1 ,
AddVertex, 0 ,  4.23 , -12.1 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates, 0, 0.47, 2,
SetTextureCoordinates, 1, 0.47, 0,
SetTextureCoordinates, 2, 0.5, 0,
SetTextureCoordinates, 3, 0.5, 2,

CreateMeshBuilder
AddVertex,-0.2 ,  4.21 , -12.1 ,
AddVertex,-0.2 ,  4.21 ,  12.1 ,
AddVertex,-0.07 ,  4.22 ,  12.1 ,
AddVertex,-0.07 ,  4.22 , -12.1 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates, 0, 0.43, 2,
SetTextureCoordinates, 1, 0.43, 0,
SetTextureCoordinates, 2, 0.47, 0,
SetTextureCoordinates, 3, 0.47, 2,

CreateMeshBuilder
AddVertex,-0.36 ,  4.17 , -12.1 ,
AddVertex,-0.36 ,  4.17 ,  12.1 ,
AddVertex,-0.2 ,  4.21 ,  12.1 ,
AddVertex,-0.2 ,  4.21 , -12.1 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates, 0, 0.37, 2,
SetTextureCoordinates, 1, 0.37, 0,
SetTextureCoordinates, 2, 0.43, 0,
SetTextureCoordinates, 3, 0.43, 2,

CreateMeshBuilder
AddVertex,-0.5 ,  4.11 , -12.1 ,
AddVertex,-0.5 ,  4.11 ,  12.1 ,
AddVertex,-0.36 ,  4.17 ,  12.1 ,
AddVertex,-0.36 ,  4.17 , -12.1 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates, 0, 0.31, 2,
SetTextureCoordinates, 1, 0.31, 0,
SetTextureCoordinates, 2, 0.37, 0,
SetTextureCoordinates, 3, 0.37, 2,

CreateMeshBuilder
AddVertex,-0.63 ,  4.04 , -12.1 ,
AddVertex,-0.63 ,  4.04 ,  12.1 ,
AddVertex,-0.5 ,  4.11 ,  12.1 ,
AddVertex,-0.5 ,  4.11 , -12.1 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates, 0, 0.26, 2,
SetTextureCoordinates, 1, 0.26, 0,
SetTextureCoordinates, 2, 0.31, 0,
SetTextureCoordinates, 3, 0.31, 2,

CreateMeshBuilder
AddVertex,-0.83 ,  3.93 , -12.1 ,
AddVertex,-0.83 ,  3.93 ,  12.1 ,
AddVertex,-0.63 ,  4.04 ,  12.1 ,
AddVertex,-0.63 ,  4.04 , -12.1 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates, 0, 0.19, 2,
SetTextureCoordinates, 1, 0.19, 0,
SetTextureCoordinates, 2, 0.26, 0,
SetTextureCoordinates, 3, 0.26, 2,

CreateMeshBuilder
AddVertex,-0.97 ,  3.83 , -12.1 ,
AddVertex,-0.97 ,  3.83 ,  12.1 ,
AddVertex,-0.83 ,  3.93 ,  12.1 ,
AddVertex,-0.83 ,  3.93 , -12.1 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates, 0, 0.14, 2,
SetTextureCoordinates, 1, 0.14, 0,
SetTextureCoordinates, 2, 0.19, 0,
SetTextureCoordinates, 3, 0.19, 2,

CreateMeshBuilder
AddVertex,-1.08 ,  3.72 , -12.1 ,
AddVertex,-1.08 ,  3.72 ,  12.1 ,
AddVertex,-0.97 ,  3.83 ,  12.1 ,
AddVertex,-0.97 ,  3.83 , -12.1 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates, 0, 0.1, 2,
SetTextureCoordinates, 1, 0.1, 0,
SetTextureCoordinates, 2, 0.14, 0,
SetTextureCoordinates, 3, 0.14, 2,

CreateMeshBuilder
AddVertex,-1.18 ,  3.61 , -12.1 ,
AddVertex,-1.18 ,  3.61 ,  12.1 ,
AddVertex,-1.08 ,  3.72 ,  12.1 ,
AddVertex,-1.08 ,  3.72 , -12.1 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates, 0, 0.06, 2,
SetTextureCoordinates, 1, 0.06, 0,
SetTextureCoordinates, 2, 0.1, 0,
SetTextureCoordinates, 3, 0.1, 2,

CreateMeshBuilder
AddVertex,-1.28 ,  3.43 , -12.1 ,
AddVertex,-1.31 ,  3.43 , -10.91 ,
AddVertex,-1.31 ,  3.43 ,  10.91 ,
AddVertex,-1.28 ,  3.43 ,  12.1 ,
AddVertex,-1.18 ,  3.61 ,  12.1 ,
AddVertex,-1.18 ,  3.61 ,  10.91 ,
AddVertex,-1.18 ,  3.61 , -10.91 ,
AddVertex,-1.18 ,  3.61 , -12.1 ,
AddFace, 0, 1, 6, 7						
AddFace, 1, 2, 5, 6						
AddFace, 2, 3, 4, 5	
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates,0, 0.02, 2,						
SetTextureCoordinates,1, 0.02, 1.9,						
SetTextureCoordinates,2, 0.02, 0.1,						
SetTextureCoordinates,3, 0.02, 0,	
SetTextureCoordinates,4, 0.06, 0,	
SetTextureCoordinates,5, 0.06, 0.1,	
SetTextureCoordinates,6, 0.06, 1.9,	
SetTextureCoordinates,7, 0.06, 2,

CreateMeshBuilder
AddVertex,-1.32 ,  3.27 , -12.1 ,
AddVertex,-1.39 ,  3.27 , -10.91 ,
AddVertex,-1.39 ,  3.27 ,  10.91 ,
AddVertex,-1.32 ,  3.27 ,  12.1 ,
AddVertex,-1.28 ,  3.43 ,  12.1 ,
AddVertex,-1.31 ,  3.43 ,  10.91 ,
AddVertex,-1.31 ,  3.43 , -10.91 ,
AddVertex,-1.28 ,  3.43 , -12.1 ,
AddFace, 0, 1, 6, 7						
AddFace, 1, 2, 5, 6						
AddFace, 2, 3, 4, 5	
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates,0, 0.01, 2,						
SetTextureCoordinates,1, 0.01, 1.9,						
SetTextureCoordinates,2, 0.01, 0.1,						
SetTextureCoordinates,3, 0.01, 0,	
SetTextureCoordinates,4, 0.02, 0,	
SetTextureCoordinates,5, 0.02, 0.1,	
SetTextureCoordinates,6, 0.02, 1.9,	
SetTextureCoordinates,7, 0.02, 2,	

CreateMeshBuilder
AddVertex,-1.34 ,  3.17 , -12.1 ,
AddVertex,-1.44 ,  3.17 , -10.91 ,
AddVertex,-1.44 ,  3.17 ,  10.91 ,
AddVertex,-1.34 ,  3.17 ,  12.1 ,
AddVertex,-1.32 ,  3.27 ,  12.1 ,
AddVertex,-1.39 ,  3.27 ,  10.91 ,
AddVertex,-1.39 ,  3.27 , -10.91 ,
AddVertex,-1.32 ,  3.27 , -12.1 ,
AddFace, 0, 1, 6, 7						
AddFace, 1, 2, 5, 6						
AddFace, 2, 3, 4, 5	
GenerateNormals,
LoadTexture, vag_CD_AB_strecha.bmp,
SetTextureCoordinates,0, 0, 2,						
SetTextureCoordinates,1, 0, 1.9,						
SetTextureCoordinates,2, 0, 0.1,						
SetTextureCoordinates,3, 0, 0,	
SetTextureCoordinates,4, 0.01, 0,	
SetTextureCoordinates,5, 0.01, 0.1,	
SetTextureCoordinates,6, 0.01, 1.9,	
SetTextureCoordinates,7, 0.01, 2,	


; --- VĚTRÁKY NA STŘEŠE ----------------------------------------------------------------------------------------------------------------------------------
CreateMeshBuilder
AddVertex, 1.19 ,  3.6 , -10.4 ,
AddVertex, 1.09 ,  3.75 , -10.4 ,
AddVertex, 1.09 ,  3.75 , -9.55 ,
AddVertex, 1.19 ,  3.6 , -9.55 ,
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_AB_vetrak2.bmp,
SetTextureCoordinates, 0, 0, 1,
SetTextureCoordinates, 1, 0, 0,
SetTextureCoordinates, 2, 1, 0,
SetTextureCoordinates, 3, 1, 1,
SetDecalTransparentColor,0,0,0,	

CreateMeshBuilder
AddVertex,-1.19 ,  3.6 ,  10.15 ,
AddVertex,-1.09 ,  3.75 ,  10.15 ,
AddVertex,-1.09 ,  3.75 ,  9.3 ,
AddVertex,-1.19 ,  3.6 ,  9.3 ,
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_AB_vetrak2.bmp,
SetTextureCoordinates, 0, 0, 1,
SetTextureCoordinates, 1, 0, 0,
SetTextureCoordinates, 2, 1, 0,
SetTextureCoordinates, 3, 1, 1,
SetDecalTransparentColor,0,0,0,	


; --- STÍN POD VAGÓNEM ----------------------------------------------------------------------------------------------------------------------------------
CreateMeshBuilder
AddVertex,-1.44 , -0.15 , -12.25 ,
AddVertex,-1.44 , -0.15 ,  12.25 ,
AddVertex, 1.44 , -0.15 ,  12.25 ,
AddVertex, 1.44 , -0.15 , -12.25 ,
AddFace, 0,1,2,3
GenerateNormals,
Setcolor,25,25,25,150