; Vůz B českých drah
; ------------------
; (c) Vince Black, 2008
; S použitím textur modelu z MSTS (autoři Ondřej Janiš, BEDLISCH, Jan Pacholík, Ppoollll@volny.cz a Bob. 
; Některé prvky byly také použity z fotografií na serveru vagonWEB (http://www.vagonweb.cz/)

; --- SKŘÍŇ ------------------------------------------------------------------------------------------------------------------------------------
; bok levý					
CreateMeshBuilder,						
AddVertex, -1.34, 1.06,	24.35
AddVertex, -1.34, 3.18,	24.35
AddVertex, -1.44, 3.18,	23.15
AddVertex, -1.44, 3.18,	1.3
AddVertex, -1.34, 3.18,	0.15
AddVertex, -1.34, 1.06,	0.15
AddVertex, -1.44, 1.06,	1.3
AddVertex, -1.44, 1.06,	23.15
AddFace, 0, 1, 2, 7						
AddFace, 7, 2, 3, 6						
AddFace, 6, 3, 4, 5						
GenerateNormals,						
LoadTexture,vag_CD_B_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,	0.15
AddVertex, 1.34, 3.18,	0.15
AddVertex, 1.44, 3.18,	1.3
AddVertex, 1.44, 3.18,	23.15
AddVertex, 1.34, 3.18,	24.35
AddVertex, 1.34, 1.06,	24.35
AddVertex, 1.44, 1.06,	23.15
AddVertex, 1.44, 1.06,	1.3
AddFace, 0, 1, 2, 7						
AddFace, 7, 2, 3, 6						
AddFace, 6, 3, 4, 5						
GenerateNormals,						
LoadTexture,vag_CD_B_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.23, 1.4
AddVertex, -1.45, 1.93, 1.4
AddVertex, -1.45, 1.93, 1.33
AddVertex, -1.45, 1.23, 1.33
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_drzadlo.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.21, 1.4
AddVertex, 1.45, 1.91, 1.4
AddVertex, 1.45, 1.91, 1.33
AddVertex, 1.45, 1.21, 1.33
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_drzadlo.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.21, 23.07
AddVertex, -1.45, 1.91, 23.07
AddVertex, -1.45, 1.91, 23
AddVertex, -1.45, 1.21, 23
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_drzadlo.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.23, 23.1
AddVertex, 1.45, 1.93, 23.1
AddVertex, 1.45, 1.93, 23.03
AddVertex, 1.45, 1.23, 23.03
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_drzadlo.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, 22.75
AddVertex, -1.45, 1.85, 22.75
AddVertex, -1.45, 1.85, 22.05
AddVertex, -1.45, 1.45, 22.05
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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, 22.15
AddVertex, 1.45, 1.9, 22.15
AddVertex, 1.45, 1.9, 22.85
AddVertex, 1.45, 1.5, 22.85
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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,	0.15
AddVertex, -1.32, 3.27, 0.15
AddVertex, -1.28, 3.43, 0.15
AddVertex, -1.18, 3.61, 0.15
AddVertex, -1.08, 3.72, 0.15
AddVertex, -0.97, 3.83, 0.15	
AddVertex, -0.83, 3.93, 0.15
AddVertex, -0.63, 4.04, 0.15
AddVertex, -0.5, 4.11, 0.15
AddVertex, -0.36, 4.17, 0.15
AddVertex, -0.2, 4.21, 0.15
AddVertex, -0.07, 4.22, 0.15
AddVertex, 0, 4.23, 0.15
AddVertex, 0, 3.18, 0.15
AddVertex, -0.36, 3.18, 0.15
AddVertex, -0.83, 3.18, 0.15
AddVertex, -1.18, 3.18, 0.15
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_B_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, 0.15
AddVertex, 0, 4.23, 0.15
AddVertex, 0.07, 4.22, 0.15
AddVertex, 0.2, 4.21, 0.15
AddVertex, 0.36, 4.17, 0.15
AddVertex, 0.5, 4.11, 0.15
AddVertex, 0.63, 4.04, 0.15
AddVertex, 0.83, 3.93, 0.15
AddVertex, 0.97, 3.83, 0.15
AddVertex, 1.08, 3.72, 0.15
AddVertex, 1.18, 3.61, 0.15
AddVertex, 1.28, 3.43, 0.15
AddVertex, 1.32, 3.27, 0.15
AddVertex, 1.34, 3.18, 0.15
AddVertex, 1.18, 3.18, 0.15
AddVertex, 0.83, 3.18, 0.15
AddVertex, 0.36, 3.18, 0.15
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_B_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, 0.15
AddVertex, -1.345, 3.185, 0.15
AddVertex, 1.345, 3.185, 0.15
AddVertex, 1.345, 1.22, 0.15
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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.5, 1.22, 0.34
AddVertex, -0.5, 3.19, 0.34
AddVertex, 0.5, 3.19, 0.34
AddVertex, 0.5, 1.22, 0.34
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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, 0.14
AddVertex, -0.5, 3.19, 0.14
AddVertex, -0.5, 3.19, 0.34
AddVertex, -0.5, 1.22, 0.34
AddFace, 0, 1, 2, 3
SetColor,3,64,26,
CreateMeshBuilder,						
AddVertex, -0.5, 3.19, 0.14
AddVertex, -0.5, 3.19, 0.34
AddVertex, 0.5, 3.19, 0.34
AddVertex, 0.5, 3.19, 0.14
AddFace2, 0, 1, 2, 3
SetColor,3,64,26,
CreateMeshBuilder,						
AddVertex, 0.5, 1.22, 0.34
AddVertex, 0.5, 3.19, 0.34
AddVertex, 0.5, 3.19, 0.14
AddVertex, 0.5, 1.22, 0.14
AddFace, 0, 1, 2, 3
SetColor,3,64,26,

; guma - přední levá
CreateMeshBuilder,						
AddVertex, -0.8, 1.23, 0.15
AddVertex, -0.8, 3.15, 0.15
AddVertex, -0.75, 3.2, 0
AddVertex, -0.55, 3.2, 0
AddVertex, -0.5, 3.15, 0.15
AddVertex, -0.5, 1.23, 0.15
AddVertex, -0.55, 1.23, 0
AddVertex, -0.75, 1.23, 0
AddFace, 0, 1, 2, 7
AddFace, 7, 2, 3, 6
AddFace, 6, 3, 4, 5
GenerateNormals,
LoadTexture,vag_CD_B_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,

; guma - přední pravá
CreateMeshBuilder,						
AddVertex, 0.5, 1.23, 0.15
AddVertex, 0.5, 3.2, 0.15
AddVertex, 0.55, 3.2, 0	
AddVertex, 0.75, 3.2, 0	
AddVertex, 0.8, 3.15, 0.15
AddVertex, 0.8, 1.23, 0.15
AddVertex, 0.75, 1.23, 0
AddVertex, 0.55, 1.23, 0
AddFace, 0, 1, 2, 7
AddFace, 7, 2, 3, 6
AddFace, 6, 3, 4, 5
GenerateNormals,						
LoadTexture,vag_CD_B_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,						

; guma - přední horní
CreateMeshBuilder,						
AddVertex, -0.85, 3.15, 0.15
AddVertex, -0.85, 3.2, 0	
AddVertex, -0.75, 3.4, 0	
AddVertex, -0.75, 3.45, 0.15
AddVertex, 0.75, 3.45, 0.15
AddVertex, 0.75, 3.4, 0	
AddVertex, 0.85, 3.2, 0	
AddVertex, 0.85, 3.15, 0.15
AddFace2, 0, 1, 6, 7
AddFace2, 1, 2, 5, 6
AddFace2, 2, 3, 4, 5
GenerateNormals,						
LoadTexture,vag_CD_B_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, 0.14
AddVertex, -0.75, 3.45, 0.14
AddVertex, 0.75, 3.45, 0.14
AddVertex, 0.85, 3.15, 0.14
AddFace, 0, 1, 2, 3						
SetColor,16,14,17,

; přikrytí horní gumy
CreateMeshBuilder,						
AddVertex, -0.73, 3.42,	0.04
AddVertex, -0.73, 3.48, 0.12
AddVertex, -0.73, 3.6, 0.14
AddVertex, 0.73, 3.6, 0.14
AddVertex, 0.73, 3.48, 0.12
AddVertex, 0.73, 3.42, 0.04
AddFace, 0, 1, 4, 5
AddFace, 1, 2, 3, 4
GenerateNormals,						
LoadTexture,vag_CD_B_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.26,	0.14
AddVertex, -1.02, 1.48, 0.14
AddVertex, -0.8, 1.48, 0.14
AddVertex, -0.8, 1.26,	0.14
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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.7,	0.14
AddVertex, -1.1, 1.78, 0.14
AddVertex, -1.02, 1.78, 0.14
AddVertex, -1.02, 1.7,	0.14
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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.26,	0.14
AddVertex, 0.8, 1.48, 0.14
AddVertex, 1.02, 1.48, 0.14
AddVertex, 1.02, 1.26,	0.14
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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.7,	0.14
AddVertex, 1.02, 1.78, 0.14
AddVertex, 1.1, 1.78, 0.14
AddVertex, 1.1, 1.7,	0.14
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_svetlo2.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	


				
; zadní stěna						
CreateMeshBuilder,						
AddVertex, 1.345, 3.19,	24.35
AddVertex, -1.345, 3.19, 24.35
AddVertex, -1.345, 1.22, 24.35
AddVertex, 1.345, 1.22,	24.35
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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.5, 1.22, 24.16
AddVertex, -0.5, 3.19, 24.16
AddVertex, 0.5, 3.19, 24.16
AddVertex, 0.5, 1.22, 24.16
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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, 24.36
AddVertex, 0.5, 3.19, 24.36
AddVertex, 0.5, 3.19, 24.16
AddVertex, 0.5, 1.22, 24.16
AddFace, 0, 1, 2, 3
SetColor,3,64,26,
CreateMeshBuilder,						
AddVertex, -0.5, 3.19, 24.36
AddVertex, -0.5, 3.19, 24.16
AddVertex, 0.5, 3.19, 24.16
AddVertex, 0.5, 3.19, 24.36
AddFace2, 0, 1, 2, 3
SetColor,3,64,26,
CreateMeshBuilder,						
AddVertex, -0.5, 1.22, 24.16
AddVertex, -0.5, 3.19, 24.16
AddVertex, -0.5, 3.19, 24.36
AddVertex, -0.5, 1.22, 24.36
AddFace, 0, 1, 2, 3
SetColor,3,64,26,
		
; zadní stěna - půlkruh levý
CreateMeshBuilder,						
AddVertex, -1.34, 3.18,	24.35
AddVertex, -1.32, 3.27, 24.35
AddVertex, -1.28, 3.43, 24.35
AddVertex, -1.18, 3.61, 24.35
AddVertex, -1.08, 3.72, 24.35
AddVertex, -0.97, 3.83, 24.35	
AddVertex, -0.83, 3.93, 24.35
AddVertex, -0.63, 4.04, 24.35
AddVertex, -0.5, 4.11, 24.35
AddVertex, -0.36, 4.17, 24.35
AddVertex, -0.2, 4.21, 24.35
AddVertex, -0.07, 4.22, 24.35
AddVertex, 0, 4.23, 24.35
AddVertex, 0, 3.18, 24.35
AddVertex, -0.36, 3.18, 24.35
AddVertex, -0.83, 3.18, 24.35
AddVertex, -1.18, 3.18, 24.35
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_B_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, 24.35
AddVertex, 0, 4.23, 24.35
AddVertex, 0.07, 4.22, 24.35
AddVertex, 0.2, 4.21, 24.35
AddVertex, 0.36, 4.17, 24.35
AddVertex, 0.5, 4.11, 24.35
AddVertex, 0.63, 4.04, 24.35
AddVertex, 0.83, 3.93, 24.35
AddVertex, 0.97, 3.83, 24.35
AddVertex, 1.08, 3.72, 24.35
AddVertex, 1.18, 3.61, 24.35
AddVertex, 1.28, 3.43, 24.35
AddVertex, 1.32, 3.27, 24.35
AddVertex, 1.34, 3.18, 24.35
AddVertex, 1.18, 3.18, 24.35
AddVertex, 0.83, 3.18, 24.35
AddVertex, 0.36, 3.18, 24.35
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_B_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, 24.35
AddVertex, -0.5, 3.2, 24.35
AddVertex, -0.55, 3.2, 24.5
AddVertex, -0.75, 3.2, 24.5
AddVertex, -0.8, 3.15, 24.35
AddVertex, -0.8, 1.23, 24.35
AddVertex, -0.75, 1.23, 24.5
AddVertex, -0.55, 1.23, 24.5
AddFace, 0, 1, 2, 7
AddFace, 7, 2, 3, 6
AddFace, 6, 3, 4, 5
GenerateNormals,						
LoadTexture,vag_CD_B_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,

; guma - zadní levá
CreateMeshBuilder,						
AddVertex, 0.8, 1.23, 24.35
AddVertex, 0.8, 3.15, 24.35
AddVertex, 0.75, 3.2, 24.5	
AddVertex, 0.55, 3.2, 24.5	
AddVertex, 0.5, 3.2, 24.35
AddVertex, 0.5, 1.23, 24.35
AddVertex, 0.55, 1.23, 24.5
AddVertex, 0.75, 1.23, 24.5
AddFace, 0, 1, 2, 7
AddFace, 7, 2, 3, 6
AddFace, 6, 3, 4, 5
GenerateNormals,						
LoadTexture,vag_CD_B_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,						

; guma - zadní horní
CreateMeshBuilder,						
AddVertex, 0.85, 3.15, 24.35
AddVertex, 0.85, 3.2, 24.5	
AddVertex, 0.75, 3.4, 24.5	
AddVertex, 0.75, 3.45, 24.35
AddVertex, -0.75, 3.45, 24.35
AddVertex, -0.75, 3.4, 24.5	
AddVertex, -0.85, 3.2, 24.5	
AddVertex, -0.85, 3.15, 24.35
AddFace2, 0, 1, 6, 7
AddFace2, 1, 2, 5, 6
AddFace2, 2, 3, 4, 5
GenerateNormals,						
LoadTexture,vag_CD_B_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, 24.36
AddVertex, 0.75, 3.45, 24.36
AddVertex, -0.75, 3.45, 24.36
AddVertex, -0.85, 3.15, 24.36
AddFace, 0, 1, 2, 3						
SetColor,16,14,17,

; přikrytí zadní horní gumy
CreateMeshBuilder,						
AddVertex, 0.73, 3.42,	24.46
AddVertex, 0.73, 3.48, 24.37
AddVertex, 0.73, 3.6, 24.35
AddVertex, -0.73, 3.6, 24.35
AddVertex, -0.73, 3.48, 24.37
AddVertex, -0.73, 3.42, 24.46
AddFace, 0, 1, 4, 5
AddFace, 1, 2, 3, 4
GenerateNormals,						
LoadTexture,vag_CD_B_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.26,	24.36
AddVertex, -1.02, 1.48, 24.36
AddVertex, -0.8, 1.48, 24.36
AddVertex, -0.8, 1.26,	24.36
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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.7,	24.36
AddVertex, -1.1, 1.78, 24.36
AddVertex, -1.02, 1.78, 24.36
AddVertex, -1.02, 1.7,	24.36
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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.26, 24.36
AddVertex, 0.8, 1.48, 24.36
AddVertex, 1.02, 1.48, 24.36
AddVertex, 1.02, 1.26, 24.36
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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.7, 24.36
AddVertex, 1.02, 1.78, 24.36
AddVertex, 1.1, 1.78, 24.36
AddVertex, 1.1, 1.7, 24.36
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_svetlo2.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,	

				

; prostor kolem předních schůdků a nárazníků
CreateMeshBuilder,						
AddVertex, -1.44, 0.96, 1.3
AddVertex, -1.44, 1.26, 1.3
AddVertex, -1.04, 1.26, 1.3
AddVertex, -1.04, 1.26, 0.4
AddVertex, 1.04, 1.26, 0.4
AddVertex, 1.04, 1.26, 1.3
AddVertex, 1.44, 1.26, 1.3
AddVertex, 1.44, 0.96, 1.3
AddVertex, 1.04, 0.96, 1.3
AddVertex, 1.04, 0.96, 0.4
AddVertex, -1.04, 0.96, 0.4
AddVertex, -1.04, 0.96, 1.3
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.01, 1.25
AddVertex, -1.05, 1.2, 1.25
AddVertex, -1.05, 1.2, 0.5
AddVertex, -1.05, 1.01, 0.5
AddFace, 0, 1, 2, 3	
GenerateNormals,						
LoadTexture,vag_CD_B_stitek.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

; štítek - přední pravý
CreateMeshBuilder,						
AddVertex, 1.05, 1.01, 0.5
AddVertex, 1.05, 1.2, 0.5
AddVertex, 1.05, 1.2, 1.25
AddVertex, 1.05, 1.01, 1.25
AddFace, 0, 1, 2, 3	
GenerateNormals,						
LoadTexture,vag_CD_B_stitek.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

; prostor kolem zadních schůdků a nárazníků
CreateMeshBuilder,						
AddVertex, 1.44, 0.96, 23.15
AddVertex, 1.44, 1.26, 23.15
AddVertex, 1.04, 1.26, 23.15
AddVertex, 1.04, 1.26, 24.05
AddVertex, -1.04, 1.26, 24.05
AddVertex, -1.04, 1.26, 23.15
AddVertex, -1.44, 1.26, 23.15
AddVertex, -1.44, 0.96, 23.15
AddVertex, -1.04, 0.96, 23.15
AddVertex, -1.04, 0.96, 24.05
AddVertex, 1.04, 0.96, 24.05
AddVertex, 1.04, 0.96, 23.15
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.01, 23.9
AddVertex, -1.05, 1.2, 23.9
AddVertex, -1.05, 1.2, 23.15
AddVertex, -1.05, 1.01, 23.15
AddFace, 0, 1, 2, 3	
GenerateNormals,						
LoadTexture,vag_CD_B_stitek.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

; štítek - zadní pravý
CreateMeshBuilder,						
AddVertex, 1.05, 1.01, 23.15
AddVertex, 1.05, 1.2, 23.15
AddVertex, 1.05, 1.2, 23.9
AddVertex, 1.05, 1.01, 23.9
AddFace, 0, 1, 2, 3	
GenerateNormals,						
LoadTexture,vag_CD_B_stitek.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

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

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

; držáky schůdků - levé
CreateMeshBuilder,						
AddVertex, -1.24, 0.61, 1.25
AddVertex, -1.04, 1.01, 1.25
AddVertex, -1.04, 1.01, 1.2
AddVertex, -1.24, 0.61, 1.2
AddFace2, 0, 1, 2, 3						
SetColor,35,40,34,
CreateMeshBuilder,						
AddVertex, -1.24, 0.61, 0.7
AddVertex, -1.04, 1.01, 0.7
AddVertex, -1.04, 1.01, 0.65
AddVertex, -1.24, 0.61, 0.65
AddFace2, 0, 1, 2, 3						
SetColor,35,40,34,

; první schůdek - levý
CreateMeshBuilder,						
AddVertex, -1.19, 1.09, 0.5
AddVertex, -1.19, 1.09, 1.3
AddVertex, -1.04, 1.09, 1.3
AddVertex, -1.04, 1.09, 0.5
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_B_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, 0.5
AddVertex, -1.19, 1.08, 1.3
AddVertex, -1.04, 1.08, 1.3
AddVertex, -1.04, 1.08, 0.5
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex, -1.19, 1.06, 1.3
AddVertex, -1.19, 1.09, 1.3
AddVertex, -1.19, 1.09, 0.5
AddVertex, -1.19, 1.06, 0.5
AddFace2, 0, 1, 2, 3
SetColor,207,192,65

; druhý schůdek - levý
CreateMeshBuilder,						
AddVertex, -1.29, 0.84, 0.49
AddVertex, -1.29, 0.84, 1.35
AddVertex, -1.14, 0.84, 1.35
AddVertex, -1.14, 0.84, 0.49
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_B_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, 0.49
AddVertex, -1.29, 0.83, 1.35
AddVertex, -1.14, 0.83, 1.35
AddVertex, -1.14, 0.83, 0.49
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex, -1.29, 0.81, 1.35
AddVertex, -1.29, 0.84, 1.35
AddVertex, -1.29, 0.84, 0.49
AddVertex, -1.29, 0.81, 0.49
AddFace2, 0, 1, 2, 3
SetColor,207,192,65

; třetí schůdek - levý
CreateMeshBuilder,						
AddVertex, -1.44, 0.63, 0.45
AddVertex, -1.44, 0.63, 1.4
AddVertex, -1.24, 0.63, 1.4
AddVertex, -1.24, 0.63, 0.45
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_B_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, 0.5
AddVertex, -1.44, 0.62, 1.45
AddVertex, -1.24, 0.62, 1.45
AddVertex, -1.24, 0.62, 0.5
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex, -1.44, 0.6, 1.4
AddVertex, -1.44, 0.63, 1.4
AddVertex, -1.44, 0.63, 0.45
AddVertex, -1.44, 0.6, 0.45
AddFace2, 0, 1, 2, 3
SetColor,207,192,65


; držáky schůdků - levé
CreateMeshBuilder,						
AddVertex, 1.24, 0.61, 1.2
AddVertex, 1.04, 1.01, 1.2
AddVertex, 1.04, 1.01, 1.25
AddVertex, 1.24, 0.61, 1.25
AddFace2, 0, 1, 2, 3					
SetColor,35,40,34,
CreateMeshBuilder,						
AddVertex, 1.24, 0.61, 0.65
AddVertex, 1.04, 1.01, 0.65
AddVertex, 1.04, 1.01, 0.7
AddVertex, 1.24, 0.61, 0.7
AddFace2, 0, 1, 2, 3						
SetColor,35,40,34,


; první schůdek - pravý
CreateMeshBuilder,						
AddVertex, 1.04, 1.09, 0.5
AddVertex, 1.04, 1.09, 1.3
AddVertex, 1.19, 1.09, 1.3
AddVertex, 1.19, 1.09, 0.5
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_B_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, 0.5
AddVertex, 1.04, 1.08, 1.3
AddVertex, 1.19, 1.08, 1.3
AddVertex, 1.19, 1.08, 0.5
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex, 1.19, 1.06, 1.3
AddVertex, 1.19, 1.09, 1.3
AddVertex, 1.19, 1.09, 0.5
AddVertex, 1.19, 1.06, 0.5
AddFace2, 0, 1, 2, 3
SetColor,207,192,65	

; druhý schůdek - pravý
CreateMeshBuilder,						
AddVertex, 1.14, 0.84, 0.49
AddVertex, 1.14, 0.84, 1.35
AddVertex, 1.29, 0.84, 1.35
AddVertex, 1.29, 0.84, 0.49
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_B_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, 0.49
AddVertex, 1.14, 0.83, 1.35
AddVertex, 1.29, 0.83, 1.35
AddVertex, 1.29, 0.83, 0.49
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex, 1.29, 0.81, 1.35
AddVertex, 1.29, 0.84, 1.35
AddVertex, 1.29, 0.84, 0.49
AddVertex, 1.29, 0.81, 0.49
AddFace2, 0, 1, 2, 3
SetColor,207,192,65

; třetí schůdek - levý
CreateMeshBuilder,						
AddVertex, 1.24, 0.63, 0.45
AddVertex, 1.24, 0.63, 1.4
AddVertex, 1.44, 0.63, 1.4
AddVertex, 1.44, 0.63, 0.45
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_B_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, 0.5
AddVertex, 1.24, 0.62, 1.45
AddVertex, 1.44, 0.62, 1.45
AddVertex, 1.44, 0.62, 0.5
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex, 1.44, 0.6, 1.4
AddVertex, 1.44, 0.63, 1.4
AddVertex, 1.44, 0.63, 0.45
AddVertex, 1.44, 0.6, 0.45
AddFace2, 0, 1, 2, 3
SetColor,207,192,65


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

; držáky schůdků - levé
CreateMeshBuilder,						
AddVertex, -1.24, 0.61, 23.8
AddVertex, -1.04, 1.01, 23.8
AddVertex, -1.04, 1.01, 23.85
AddVertex, -1.24, 0.61, 23.85
AddFace2, 0, 1, 2, 3						
SetColor,35,40,34,
CreateMeshBuilder,						
AddVertex, -1.24, 0.61, 23.25
AddVertex, -1.04, 1.01, 23.25
AddVertex, -1.04, 1.01, 23.2
AddVertex, -1.24, 0.61, 23.2
AddFace2, 0, 1, 2, 3						
SetColor,35,40,34,

; první schůdek - levý
CreateMeshBuilder,						
AddVertex, -1.19, 1.09, 23.15
AddVertex, -1.19, 1.09, 23.95
AddVertex, -1.04, 1.09, 23.95
AddVertex, -1.04, 1.09, 23.15
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_B_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, 23.15
AddVertex, -1.19, 1.08, 23.95
AddVertex, -1.04, 1.08, 23.95
AddVertex, -1.04, 1.08, 23.15
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex, -1.19, 1.06, 23.95
AddVertex, -1.19, 1.09, 23.95
AddVertex, -1.19, 1.09, 23.15
AddVertex, -1.19, 1.06, 23.15
AddFace2, 0, 1, 2, 3
SetColor,207,192,65

; druhý schůdek - levý
CreateMeshBuilder,						
AddVertex, -1.29, 0.84, 23.14
AddVertex, -1.29, 0.84, 24
AddVertex, -1.14, 0.84, 24
AddVertex, -1.14, 0.84, 23.14
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_B_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, 23.14
AddVertex, -1.29, 0.83, 24
AddVertex, -1.14, 0.83, 24
AddVertex, -1.14, 0.83, 23.14
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex, -1.29, 0.81, 24
AddVertex, -1.29, 0.84, 24
AddVertex, -1.29, 0.84, 23.14
AddVertex, -1.29, 0.81, 23.14
AddFace2, 0, 1, 2, 3
SetColor,207,192,65

; třetí schůdek - levý
CreateMeshBuilder,						
AddVertex, -1.44, 0.63, 23.1
AddVertex, -1.44, 0.63, 24.05
AddVertex, -1.24, 0.63, 24.05
AddVertex, -1.24, 0.63, 23.1
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_B_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, 23.1
AddVertex, -1.44, 0.62, 24.05
AddVertex, -1.24, 0.62, 24.05
AddVertex, -1.24, 0.62, 23.1
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex, -1.44, 0.6, 24.05
AddVertex, -1.44, 0.63, 24.05
AddVertex, -1.44, 0.63, 23.1
AddVertex, -1.44, 0.6, 23.1
AddFace2, 0, 1, 2, 3
SetColor,207,192,65


; držáky schůdků - pravé
CreateMeshBuilder,						
AddVertex, 1.24, 0.61, 23.2
AddVertex, 1.04, 1.01, 23.2
AddVertex, 1.04, 1.01, 23.25
AddVertex, 1.24, 0.61, 23.25
AddFace2, 0, 1, 2, 3						
SetColor,35,40,34,
CreateMeshBuilder,						
AddVertex, 1.24, 0.61, 23.75
AddVertex, 1.04, 1.01, 23.75
AddVertex, 1.04, 1.01, 23.8
AddVertex, 1.24, 0.61, 23.8
AddFace2, 0, 1, 2, 3						
SetColor,35,40,34,

; první schůdek - levý
CreateMeshBuilder,						
AddVertex, 1.04, 1.09, 23.15
AddVertex, 1.04, 1.09, 23.95
AddVertex, 1.19, 1.09, 23.95
AddVertex, 1.19, 1.09, 23.15
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_B_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, 23.15
AddVertex, 1.04, 1.08, 23.95
AddVertex, 1.19, 1.08, 23.95
AddVertex, 1.19, 1.08, 23.15
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex, 1.19, 1.06, 23.95
AddVertex, 1.19, 1.09, 23.95
AddVertex, 1.19, 1.09, 23.15
AddVertex, 1.19, 1.06, 23.15
AddFace2, 0, 1, 2, 3
SetColor,207,192,65

; druhý schůdek - levý
CreateMeshBuilder,						
AddVertex, 1.14, 0.84, 23.14
AddVertex, 1.14, 0.84, 24
AddVertex, 1.29, 0.84, 24
AddVertex, 1.29, 0.84, 23.14
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_B_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, 23.14
AddVertex, 1.14, 0.83, 24
AddVertex, 1.29, 0.83, 24
AddVertex, 1.29, 0.83, 23.14
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex, 1.29, 0.81, 24
AddVertex, 1.29, 0.84, 24
AddVertex, 1.29, 0.84, 23.14
AddVertex, 1.29, 0.81, 23.14
AddFace2, 0, 1, 2, 3
SetColor,207,192,65

; třetí schůdek - levý
CreateMeshBuilder,						
AddVertex, 1.24, 0.63, 23.1
AddVertex, 1.24, 0.63, 24.05
AddVertex, 1.44, 0.63, 24.05
AddVertex, 1.44, 0.63, 23.1
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture,vag_CD_B_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, 23.1
AddVertex, 1.24, 0.62, 24.05
AddVertex, 1.44, 0.62, 24.05
AddVertex, 1.44, 0.62, 23.1
AddFace2, 0, 1, 2, 3
SetColor,58,58,58,200
CreateMeshBuilder,
AddVertex, 1.44, 0.6, 24.05
AddVertex, 1.44, 0.63, 24.05
AddVertex, 1.44, 0.63, 23.1
AddVertex, 1.44, 0.6, 23.1
AddFace2, 0, 1, 2, 3
SetColor,207,192,65


; --- PODVOZEK ------------------------------------------------------------------------------------------------------------------------------------
; přední lišta přední nápravy
CreateMeshBuilder,						
AddVertex, -1, 0.68, 1.49
AddVertex, -1, 0.9, 1.49
AddVertex, 1, 0.9, 1.49
AddVertex, 1, 0.68, 1.49
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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, 5.63
AddVertex, -1, 1.07, 5.63
AddVertex, -1, 1.07, 1.49
AddVertex, -1, 0.2, 1.49
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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, 5.63
AddVertex, 1, 1.07, 5.63
AddVertex, 1, 1.07, 1.49
AddVertex, 1, 0.2, 1.49
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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.5, 0.5, 0.1
Rotate, 0, 0, 1, 90
Translate, -0.74, 0.5, 2.3
SetColor,75, 59, 52

CreateMeshBuilder,
Cylinder, 70, 0.45, 0.55, 0.1
Rotate, 0, 0, 1, 90
Translate, -0.72, 0.5, 2.3
SetColor,41, 30, 33

CreateMeshBuilder,
Cylinder, 70, 0.5, 0.5, 0.1
Rotate, 0, 0, 1, 90
Translate, 0.74, 0.5, 2.3
SetColor,75, 59, 52

CreateMeshBuilder,
Cylinder, 70, 0.55, 0.45, 0.1
Rotate, 0, 0, 1, 90
Translate, 0.72, 0.5, 2.3
SetColor,41, 30, 33

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

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

CreateMeshBuilder,
Cylinder, 70, 0.45, 0.55, 0.1
Rotate, 0, 0, 1, 90
Translate, -0.72, 0.5, 4.8
SetColor,41, 30, 33

CreateMeshBuilder,
Cylinder, 70, 0.5, 0.5, 0.1
Rotate, 0, 0, 1, 90
Translate, 0.74, 0.5, 4.8
SetColor,75, 59, 52

CreateMeshBuilder,
Cylinder, 70, 0.55, 0.45, 0.1
Rotate, 0, 0, 1, 90
Translate, 0.72, 0.5, 4.8
SetColor,41, 30, 33

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

; zadní lišta přední nápravy
CreateMeshBuilder,						
AddVertex, -1, 0.68, 5.63
AddVertex, -1, 0.9, 5.63
AddVertex, 1, 0.9, 5.63
AddVertex, 1, 0.68, 5.63
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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.22
AddVertex, -1, 1.07, 6.22
AddVertex, -0.6, 1.07, 6.22
AddVertex, -0.6, 0.45, 6.22
AddFace, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex, -1, 0.45, 8.22
AddVertex, -1, 1.07, 8.22
AddVertex, -1, 1.07, 6.22
AddVertex, -1, 0.45, 6.22
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_skrin1.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

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

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

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

CreateMeshBuilder,						
AddVertex, 1, 0.45, 6.3
AddVertex, 1, 1.07, 6.3
AddVertex, 1, 1.07, 7
AddVertex, 1, 0.45, 7
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_skrin4.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

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

CreateMeshBuilder,						
AddVertex, 0.85, 0.45, 6.3
AddVertex, 0.85, 1.07, 6.3
AddVertex, 0.85, 1.07, 7
AddVertex, 0.85, 0.45, 7
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,

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

CreateMeshBuilder,						
AddVertex, -1, 0.6, 8.9
AddVertex, -1, 0.97, 8.9
AddVertex, -1, 0.97, 8.4
AddVertex, -1, 0.6, 8.4
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_skrin2.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

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

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

CreateMeshBuilder,						
AddVertex, -1, 0.97, 8.4
AddVertex, -1, 0.97, 8.9
AddVertex, -0.85, 0.97, 8.9
AddVertex, -0.85, 0.97, 8.4
AddFace, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex, -0.9, 0.97, 8.8
AddVertex, -0.9, 1.07, 8.8
AddVertex, -0.9, 1.07, 8.75
AddVertex, -0.9, 0.97, 8.75
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,	
CreateMeshBuilder,						
AddVertex, -0.9, 0.97, 8.55
AddVertex, -0.9, 1.07, 8.55
AddVertex, -0.9, 1.07, 8.5
AddVertex, -0.9, 0.97, 8.5
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,
CreateMeshBuilder,						
AddVertex, -0.9, 0.7, 12.02
AddVertex, -0.9, 0.75, 12.02
AddVertex, -0.9, 0.75, 8.2
AddVertex, -0.9, 0.7, 8.2
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,


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

CreateMeshBuilder,						
AddVertex, -1, 0.5, 11.22
AddVertex, -1, 1.07, 11.22
AddVertex, -1, 1.07, 9.22
AddVertex, -1, 0.5, 9.22
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_skrin3.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

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

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


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

CreateMeshBuilder,						
AddVertex, -1, 0.5, 12.82
AddVertex, -1, 1.07, 12.82
AddVertex, -1, 1.07, 11.82
AddVertex, -1, 0.5, 11.82
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_skrin_s.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,						
AddVertex, 1, 0.5, 12.82
AddVertex, 1, 1.07, 12.82
AddVertex, 1, 1.07, 11.82
AddVertex, 1, 0.5, 11.82
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_skrin_s.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

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

CreateMeshBuilder
Cylinder, 20, 0.3, 0.3, 1.4
Translate, 0.76, 14.8, -0.95
Rotate, 1, 0, 0, 90
LoadTexture,vag_CD_B_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, -0.85, 0.75, 14.8
AddVertex, -0.85, 0.8, 14.8
AddVertex, -0.85, 0.8, 12.82
AddVertex, -0.85, 0.75, 12.82
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,

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

CreateMeshBuilder,						
AddVertex, 0.85, 0.75, 14.5
AddVertex, 0.85, 0.8, 14.5
AddVertex, 0.85, 0.8, 12.82
AddVertex, 0.85, 0.75, 12.82
AddFace2, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex, -1.35, 0.81, 13.38
AddVertex, -1.35, 1.07, 13.38
AddVertex, -1.35, 1.07, 13.12
AddVertex, -1.35, 0.81, 13.12
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_regul.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,						
AddVertex, -1.35, 0.75, 14.08
AddVertex, -1.35, 1.07, 14.08
AddVertex, -1.35, 1.07, 13.38
AddVertex, -1.35, 0.75, 13.38
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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, 13.38
AddVertex, 1.35, 1.07, 13.38
AddVertex, 1.35, 1.07, 13.12
AddVertex, 1.35, 0.81, 13.12
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_regul.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

CreateMeshBuilder,						
AddVertex, 1.35, 0.75, 14.08
AddVertex, 1.35, 1.07, 14.08
AddVertex, 1.35, 1.07, 13.38
AddVertex, 1.35, 0.75, 13.38
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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, 15.73
AddVertex, -1, 1.07, 15.73
AddVertex, -0.7, 1.07, 15.73
AddVertex, -0.7, 0.45, 15.73
AddFace, 0, 1, 2, 3
SetColor,16,14,17,

CreateMeshBuilder,						
AddVertex, -1, 0.45, 17.38
AddVertex, -1, 1.07, 17.38
AddVertex, -1, 1.07, 15.73
AddVertex, -1, 0.45, 15.73
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_skrin4.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

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

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

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

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

CreateMeshBuilder,						
AddVertex, -1, 0.69, 18.2
AddVertex, -1, 1.06, 18.2
AddVertex, -1, 1.06, 17.7
AddVertex, -1, 0.69, 17.7
AddFace, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_skrin2.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 1, 0,						
SetTextureCoordinates,3, 1, 1,

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

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


; přední lišta zadní nápravy
CreateMeshBuilder,						
AddVertex, -1, 0.68, 18.91
AddVertex, -1, 0.9, 18.91
AddVertex, 1, 0.9, 18.91
AddVertex, 1, 0.68, 18.91
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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, 23.05
AddVertex, -1, 1.07, 23.05
AddVertex, -1, 1.07, 18.91
AddVertex, -1, 0.2, 18.91
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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, 23.05
AddVertex, 1, 1.07, 23.05
AddVertex, 1, 1.07, 18.91
AddVertex, 1, 0.2, 18.91
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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.5, 0.5, 0.1
Rotate, 0, 0, 1, 90
Translate, -0.74, 0.5, 19.7
SetColor,75, 59, 52

CreateMeshBuilder,
Cylinder, 70, 0.45, 0.55, 0.1
Rotate, 0, 0, 1, 90
Translate, -0.72, 0.5, 19.7
SetColor,41, 30, 33

CreateMeshBuilder,
Cylinder, 70, 0.5, 0.5, 0.1
Rotate, 0, 0, 1, 90
Translate, 0.74, 0.5, 19.7
SetColor,75, 59, 52

CreateMeshBuilder,
Cylinder, 70, 0.55, 0.45, 0.1
Rotate, 0, 0, 1, 90
Translate, 0.72, 0.5, 19.7
SetColor,41, 30, 33

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

; zadní náprava - zadní dvojkolí
CreateMeshBuilder,
Cylinder, 70, 0.5, 0.5, 0.1
Rotate, 0, 0, 1, 90
Translate, -0.74, 0.5, 22.2
SetColor,75, 59, 52

CreateMeshBuilder,
Cylinder, 70, 0.45, 0.55, 0.1
Rotate, 0, 0, 1, 90
Translate, -0.72, 0.5, 22.2
SetColor,41, 30, 33

CreateMeshBuilder,
Cylinder, 70, 0.5, 0.5, 0.1
Rotate, 0, 0, 1, 90
Translate, 0.74, 0.5, 22.2
SetColor,75, 59, 52

CreateMeshBuilder,
Cylinder, 70, 0.55, 0.45, 0.1
Rotate, 0, 0, 1, 90
Translate, 0.72, 0.5, 22.2
SetColor,41, 30, 33

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

; zadní lišta zadní nápravy
CreateMeshBuilder,						
AddVertex, -1, 0.68, 23.05
AddVertex, -1, 0.9, 23.05
AddVertex, 1, 0.9, 23.05
AddVertex, 1, 0.68, 23.05
AddFace2, 0, 1, 2, 3
GenerateNormals,						
LoadTexture,vag_CD_B_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, 0.05
AddVertex, -1.23, 1.23, 0.05
AddVertex, -0.74, 1.23, 0.05
AddVertex, -0.59, 0.97, 0.05
AddVertex, -0.59, 0.87, 0.05
AddFace2, 0, 1, 2, 3, 4
GenerateNormals,						
LoadTexture,vag_CD_B_naraznik.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 0.77, 0,						
SetTextureCoordinates,3, 1, 0.58,	
SetTextureCoordinates,4, 1, 1,	

CreateMeshBuilder
Cylinder, 20, 0.11, 0.11, 0.65
Translate, -0.9, 0.58, -1.08
Rotate, 1, 0, 0, 90
LoadTexture,vag_CD_B_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
Translate, -0.9, 0.21, -1.08
Rotate, 1, 0, 0, 90
LoadTexture,vag_CD_B_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, 0.05
AddVertex, 0.59, 0.97, 0.05
AddVertex, 0.74, 1.23, 0.05
AddVertex, 1.23, 1.23, 0.05
AddVertex, 1.23, 0.87, 0.05
AddFace2, 0, 1, 2, 3, 4
GenerateNormals,						
LoadTexture,vag_CD_B_naraznik.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0.77,						
SetTextureCoordinates,2, 0.23, 0,						
SetTextureCoordinates,3, 1, 0,	
SetTextureCoordinates,4, 1, 1,	

CreateMeshBuilder
Cylinder, 20, 0.11, 0.11, 0.65
Translate, 0.9, 0.58, -1.08
Rotate, 1, 0, 0, 90
LoadTexture,vag_CD_B_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
Translate, 0.9, 0.21, -1.08
Rotate, 1, 0, 0, 90
LoadTexture,vag_CD_B_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, 24.45
AddVertex, -1.23, 1.23, 24.45
AddVertex, -0.74, 1.23, 24.45
AddVertex, -0.59, 1.02, 24.45
AddVertex, -0.59, 0.87, 24.45
AddFace2, 0, 1, 2, 3, 4
GenerateNormals,						
LoadTexture,vag_CD_B_naraznik.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0,						
SetTextureCoordinates,2, 0.77, 0,						
SetTextureCoordinates,3, 1, 0.58,	
SetTextureCoordinates,4, 1, 1,

CreateMeshBuilder
Cylinder, 20, 0.11, 0.11, 0.25
Translate, -0.9, 24.15, -1.08
Rotate, 1, 0, 0, 90
LoadTexture,vag_CD_B_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
Translate, -0.9, 24.35, -1.08
Rotate, 1, 0, 0, 90
LoadTexture,vag_CD_B_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, 24.45
AddVertex, 0.59, 1.02, 24.45
AddVertex, 0.74, 1.23, 24.45
AddVertex, 1.23, 1.23, 24.45
AddVertex, 1.23, 0.87, 24.45
AddFace2, 0, 1, 2, 3, 4
GenerateNormals,						
LoadTexture,vag_CD_B_naraznik.bmp,						
SetTextureCoordinates,0, 0, 1,						
SetTextureCoordinates,1, 0, 0.77,						
SetTextureCoordinates,2, 0.23, 0,						
SetTextureCoordinates,3, 1, 0,	
SetTextureCoordinates,4, 1, 1,	

CreateMeshBuilder
Cylinder, 20, 0.11, 0.11, 0.25
Translate, 0.9, 24.15, -1.08
Rotate, 1, 0, 0, 90
LoadTexture,vag_CD_B_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
Translate, 0.9, 24.35, -1.08
Rotate, 1, 0, 0, 90
LoadTexture,vag_CD_B_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 





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

; PRAVÁ POLOVINA STŘECHY
CreateMeshBuilder
AddVertex, 1.32, 3.27, 0.15
AddVertex, 1.39, 3.27, 1.34
AddVertex, 1.39, 3.27, 23.16
AddVertex, 1.32, 3.27, 24.35
AddVertex, 1.34, 3.17, 24.35
AddVertex, 1.44, 3.17, 23.16
AddVertex, 1.44, 3.17, 1.34
AddVertex, 1.34, 3.17, 0.15
AddFace, 0, 1, 6, 7						
AddFace, 1, 2, 5, 6						
AddFace, 2, 3, 4, 5	
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, 1.31, 3.43, 1.34
AddVertex, 1.31, 3.43, 23.16
AddVertex, 1.28, 3.43, 24.35
AddVertex, 1.32, 3.27, 24.35
AddVertex, 1.39, 3.27, 23.16
AddVertex, 1.39, 3.27, 1.34
AddVertex, 1.32, 3.27, 0.15
AddFace, 0, 1, 6, 7						
AddFace, 1, 2, 5, 6						
AddFace, 2, 3, 4, 5	
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, 1.18, 3.61, 1.34
AddVertex, 1.18, 3.61, 23.16
AddVertex, 1.18, 3.61, 24.35
AddVertex, 1.28, 3.43, 24.35
AddVertex, 1.31, 3.43, 23.16
AddVertex, 1.31, 3.43, 1.34
AddVertex, 1.28, 3.43, 0.15
AddFace, 0, 1, 6, 7						
AddFace, 1, 2, 5, 6						
AddFace, 2, 3, 4, 5	
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, 1.08, 3.72, 24.35
AddVertex, 1.18, 3.61, 24.35
AddVertex, 1.18, 3.61, 0.15
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, 0.97, 3.83, 24.35
AddVertex, 1.08, 3.72, 24.35
AddVertex, 1.08, 3.72, 0.15
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, 0.83, 3.93, 24.35
AddVertex, 0.97, 3.83, 24.35
AddVertex, 0.97, 3.83, 0.15
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, 0.63, 4.04, 24.35
AddVertex, 0.83, 3.93, 24.35
AddVertex, 0.83, 3.93, 0.15
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, 0.5, 4.11, 24.35
AddVertex, 0.63, 4.04, 24.35
AddVertex, 0.63, 4.04, 0.15
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, 0.36, 4.17, 24.35
AddVertex, 0.5, 4.11, 24.35
AddVertex, 0.5, 4.11, 0.15
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, 0.2, 4.21, 24.35
AddVertex, 0.36, 4.17, 24.35
AddVertex, 0.36, 4.17, 0.15
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, 0.07, 4.22, 24.35
AddVertex, 0.2, 4.21, 24.35
AddVertex, 0.2, 4.21, 0.15
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, 0, 4.23, 24.35
AddVertex, 0.07, 4.22, 24.35
AddVertex, 0.07, 4.22, 0.15
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, -0.07, 4.22, 24.35
AddVertex, 0, 4.23, 24.35
AddVertex, 0, 4.23, 0.15
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, -0.2, 4.21, 24.35
AddVertex, -0.07, 4.22, 24.35
AddVertex, -0.07, 4.22, 0.15
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, -0.36, 4.17, 24.35
AddVertex, -0.2, 4.21, 24.35
AddVertex, -0.2, 4.21, 0.15
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, -0.5, 4.11, 24.35
AddVertex, -0.36, 4.17, 24.35
AddVertex, -0.36, 4.17, 0.15
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, -0.63, 4.04, 24.35
AddVertex, -0.5, 4.11, 24.35
AddVertex, -0.5, 4.11, 0.15
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, -0.83, 3.93, 24.35
AddVertex, -0.63, 4.04, 24.35
AddVertex, -0.63, 4.04, 0.15
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, -0.97, 3.83, 24.35
AddVertex, -0.83, 3.93, 24.35
AddVertex, -0.83, 3.93, 0.15
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, -1.08, 3.72, 24.35
AddVertex, -0.97, 3.83, 24.35
AddVertex, -0.97, 3.83, 0.15
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, -1.18, 3.61, 24.35
AddVertex, -1.08, 3.72, 24.35
AddVertex, -1.08, 3.72, 0.15
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, -1.31, 3.43, 1.34
AddVertex, -1.31, 3.43, 23.16
AddVertex, -1.28, 3.43, 24.35
AddVertex, -1.18, 3.61, 24.35
AddVertex, -1.18, 3.61, 23.16
AddVertex, -1.18, 3.61, 1.34
AddVertex, -1.18, 3.61, 0.15
AddFace, 0, 1, 6, 7						
AddFace, 1, 2, 5, 6						
AddFace, 2, 3, 4, 5	
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, -1.39, 3.27, 1.34
AddVertex, -1.39, 3.27, 23.16
AddVertex, -1.32, 3.27, 24.35
AddVertex, -1.28, 3.43, 24.35
AddVertex, -1.31, 3.43, 23.16
AddVertex, -1.31, 3.43, 1.34
AddVertex, -1.28, 3.43, 0.15
AddFace, 0, 1, 6, 7						
AddFace, 1, 2, 5, 6						
AddFace, 2, 3, 4, 5	
GenerateNormals,
LoadTexture, vag_CD_B_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, 0.15
AddVertex, -1.44, 3.17, 1.34
AddVertex, -1.44, 3.17, 23.16
AddVertex, -1.34, 3.17, 24.35
AddVertex, -1.32, 3.27, 24.35
AddVertex, -1.39, 3.27, 23.16
AddVertex, -1.39, 3.27, 1.34
AddVertex, -1.32, 3.27, 0.15
AddFace, 0, 1, 6, 7						
AddFace, 1, 2, 5, 6						
AddFace, 2, 3, 4, 5	
GenerateNormals,
LoadTexture, vag_CD_B_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, 1.95
AddVertex, 1.19, 3.6, 2.85
AddVertex, 1.09, 3.75, 2.85
AddVertex, 1.09, 3.75, 1.95
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_B_vetrak.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, 21.55
AddVertex, -1.19, 3.6, 22.45
AddVertex, -1.09, 3.75, 22.45
AddVertex, -1.09, 3.75, 21.55
AddFace, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_B_vetrak.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, 21.55
AddVertex, 1.19, 3.6, 22.45
AddVertex, 1.09, 3.75, 22.45
AddVertex, 1.09, 3.75, 21.55
AddFace2, 0, 1, 2, 3
GenerateNormals,
LoadTexture, vag_CD_B_vetrak.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,0
AddVertex, -1.44,-0.15,24.5
AddVertex, 1.44,-0.15,24.5
AddVertex, 1.44,-0.15,0
AddFace, 0,1,2,3
GenerateNormals,
Setcolor,25,25,25,150