;--------------------------------------
;NWM BVE Route Object File
;--------------------------------------
;(c) TSC team 2009
;www.bve4.net
;
;Original object(c) Anthony Bowden
;www.railsimroutes.co.uk
;and Robert Glass (c) 2002.
;http://scotrailsim.cjb.net
;
;Textures Trainsimcentral 2009

;Please seek permission before using
;any NWM files in your own route.
;
;see 'Readme.txt' file.
;

CreateMeshBuilder,
AddVertex,-0.89, -0.05, 25,
AddVertex,-0.89, 1.22, 25,
AddVertex,-0.89, 1.22, 7.50,
AddVertex,-0.89, -0.05, 7.50,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,hst_chs_front.png,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex,-0.889, -0.05, 25,
AddVertex,-0.889, 1.22, 25,
AddVertex,-0.889, 1.22, 7.50,
AddVertex,-0.889, -0.05, 7.50,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,hst_chs_front_backing.png,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex,-0.8, -0.05, 25,
AddVertex,-0.8, 1.22, 25,
AddVertex,-0.8, 1.22, 7.50,
AddVertex,-0.8, -0.05, 7.50,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,hst_chs_middle.png,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex,-0.73, -0.05, 25,
AddVertex,-0.73, 1.22, 25,
AddVertex,-0.73, 1.22, 7.50,
AddVertex,-0.73, -0.05, 7.50,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,hst_chs_back.png,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex,-0.689, -0.05, 25,
AddVertex,-0.689, 1.22, 25,
AddVertex,-0.689, 1.22, 7.50,
AddVertex,-0.689, -0.05, 7.50,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,hst_chs_rear.png,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex,0.89, -0.05, 25,
AddVertex,0.89, 1.22, 25,
AddVertex,0.89, 1.22, 7.50,
AddVertex,0.89, -0.05, 7.50,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,hst_chs_front.png,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex,0.889, -0.05, 25,
AddVertex,0.889, 1.22, 25,
AddVertex,0.889, 1.22, 7.50,
AddVertex,0.889, -0.05, 7.50,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,hst_chs_front_backing.png,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex,0.8, -0.05, 25,
AddVertex,0.8, 1.22, 25,
AddVertex,0.8, 1.22, 7.50,
AddVertex,0.8, -0.05, 7.50,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,hst_chs_middle.png,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex,0.73, -0.05, 25,
AddVertex,0.73, 1.22, 25,
AddVertex,0.73, 1.22, 7.50,
AddVertex,0.73, -0.05, 7.50,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,hst_chs_back.png,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex,0.689, -0.05, 25,
AddVertex,0.689, 1.22, 25,
AddVertex,0.689, 1.22, 7.50,
AddVertex,0.689, -0.05, 7.50,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,hst_chs_rear.png,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,

;Side Left
CreateMeshBuilder,
AddVertex,-1.13, 3.28, 24.75,
AddVertex,-1.2, 3.28, 8.58,
AddVertex,-1.2, 1.5, 6.98,
AddVertex,-0.68, 0, 8.58,
AddVertex,-0.82, 0, 24.75,
AddVertex,-1.2, 1.5, 24.75,
AddVertex,-1.1, 3.28, 8.0,
AddVertex,-1.1, 1.5, 6.4,
AddVertex,-0.56, 0, 7.995,
AddFace2,0,1,2,5,
AddFace2,5,2,3,4,
AddFace2,1,6,7,2,
AddFace2,2,7,8,3,
GenerateNormals,

LoadTexture,hst_s_301.png,
SetTextureCoordinates,0, 1, 0,
SetTextureCoordinates,1, 0.127, 0,
SetTextureCoordinates,2, 0.042, 0.5,
SetTextureCoordinates,3, 0.112, 1,
SetTextureCoordinates,4, 1, 1,
SetTextureCoordinates,5, 1, 0.5,
SetTextureCoordinates,6, 0.095, 0,
SetTextureCoordinates,7, 0.01, 0.49,
SetTextureCoordinates,8, 0.08, 1,
SetDecalTransparentColor,0,0,255,

;Roof L
CreateMeshBuilder,
AddVertex,-0.2, 3.8, 24.75,
AddVertex,-0.2, 3.9, 9,
AddVertex,-0.6, 3.8, 8.5,
AddVertex,-0.6, 3.71, 24.75,
AddVertex,-1.0, 3.5, 24.75,
AddVertex,-1.06, 3.5, 8.58,
AddVertex,-1.13, 3.26, 24.75,
AddVertex,-1.2, 3.26, 8.58,
AddVertex,-0.0, 3.805, 24.75,
AddVertex,-0.0, 3.901, 9,
AddFace,0,1,2,3
AddFace,3,2,5,4,
AddFace,4,5,7,6,
Addface,1,0,8,9,
GenerateNormals,

LoadTexture,HST_roofL.png,
SetTextureCoordinates,0, 1, 0,
SetTextureCoordinates,1, 0.150, 0,
SetTextureCoordinates,2, 0.122, 0.2,
SetTextureCoordinates,3, 1, 0.2,
SetTextureCoordinates,4, 1, 0.5,
SetTextureCoordinates,5, 0.125, 0.5,
SetTextureCoordinates,6, 1, 1,
SetTextureCoordinates,7, 0.124, 1,
SetTextureCoordinates,8, 1, 0.2
SetTextureCoordinates,9, 0.1500, 0,
SetDecalTransparentColor,0,0,255,


;Roof R
CreateMeshBuilder,
AddVertex,0.2, 3.8, 24.75,
AddVertex,0.2, 3.9, 9,
AddVertex,0.6, 3.8, 8.5,
AddVertex,0.6, 3.71, 24.75,
AddVertex,1.0, 3.5, 24.75,
AddVertex,1.06, 3.5, 8.58,
AddVertex,1.13, 3.26, 24.75,
AddVertex,1.2, 3.26, 8.58,
AddVertex,-0.0, 3.805, 24.75,
AddVertex,-0.0, 3.901, 9,
AddFace,3,2,1,0,
AddFace,4,5,2,3,
AddFace,6,7,5,4,
Addface,9,8,0,1,
GenerateNormals,

LoadTexture,HST_roofR.png,
SetTextureCoordinates,0, 1, 0,
SetTextureCoordinates,1, 0.150, 0,
SetTextureCoordinates,2, 0.122, 0.2,
SetTextureCoordinates,3, 1, 0.2,
SetTextureCoordinates,4, 1, 0.5,
SetTextureCoordinates,5, 0.125, 0.5,
SetTextureCoordinates,6, 1, 1,
SetTextureCoordinates,7, 0.124, 1,
SetTextureCoordinates,8, 1, 0.2
SetTextureCoordinates,9, 0.1500, 0,
SetDecalTransparentColor,0,0,255,

;Side R
CreateMeshBuilder,
AddVertex,1.13, 3.28, 24.75,
AddVertex,1.2, 3.28, 8.58,
AddVertex,1.2, 1.5, 6.98,
AddVertex,0.68, 0, 8.58,
AddVertex,0.82, 0, 24.75,
AddVertex,1.2, 1.5, 24.75,
AddVertex,1.1, 3.28, 8.0,
AddVertex,1.1, 1.5, 6.4,
AddVertex,0.56, 0, 7.995,
AddFace2,5,2,1,0,
AddFace2,4,3,2,5,
AddFace2,2,7,6,1,
AddFace2,3,8,7,2,
GenerateNormals,

LoadTexture,hst_s2_301.png,
SetTextureCoordinates,0, 1, 0,
SetTextureCoordinates,1, 0.127, 0,
SetTextureCoordinates,2, 0.042, 0.5,
SetTextureCoordinates,3, 0.112, 1,
SetTextureCoordinates,4, 1, 1,
SetTextureCoordinates,5, 1, 0.5,
SetTextureCoordinates,6, 0.095, 0,
SetTextureCoordinates,7, 0.01, 0.49,
SetTextureCoordinates,8, 0.08, 1,
SetDecalTransparentColor,0,0,255,

;;Front - Roof Dome
;;
CreateMeshBuilder,
AddVertex,-0.2,3.9,9,
AddVertex,0.2,3.9,9,
AddVertex,0.6, 3.8, 8.5,
AddVertex,0.75, 3.5, 7.95,
AddVertex,0.8, 3.28, 7.7,
AddVertex,-0.8, 3.28, 7.7,
AddVertex,-0.75, 3.5, 7.95,
AddVertex,-0.6, 3.8, 8.5,
AddVertex,0.98, 3.5, 8.2,
AddVertex,1.1,3.28,8.0,
AddVertex,1.06, 3.5, 8.58,
AddVertex,1.2, 3.28, 8.58,
AddVertex,-0.98, 3.5, 8.2,
AddVertex,-1.1,3.28,8.0,
AddVertex,-1.06, 3.5, 8.58,
AddVertex,-1.2, 3.28, 8.58,
AddFace,0,1,2,7,
AddFace,7,2,3,6,
AddFace,6,3,4,5,
AddFace,3,8,9,4,
AddFace,8,10,11,9,
AddFace,2,8,3,
AddFace,2,10,8
AddFace,12,6,5,13,
AddFace,14,12,13,15,
AddFace,7,6,12,
AddFace,7,12,14,
GenerateNormals,

LoadTexture,hst_top_f.png,
SetTextureCoordinates,0,0.415,0
SetTextureCoordinates,1,0.585,0
SetTextureCoordinates,2,0.76,0.06
SetTextureCoordinates,3,0.83,0.23
SetTextureCoordinates,4,0.85,0.30
SetTextureCoordinates,5,0.15,0.30
SetTextureCoordinates,6,0.17,0.23
SetTextureCoordinates,7,0.24,0.06
SetTextureCoordinates,8,0.985,0.23
SetTextureCoordinates,9,0.985,0.30
SetTextureCoordinates,10,0.86,0.23
SetTextureCoordinates,11,0.86,0.30
SetTextureCoordinates,12,0.015,0.23
SetTextureCoordinates,13,0.015,0.30
SetTextureCoordinates,14,0.14,0.23
SetTextureCoordinates,15,0.14,0.30

;; Front - cab
;;
CreateMeshBuilder,
AddVertex,-1.1,3.28,8.0,
AddVertex,-0.8,3.28,7.7,
AddVertex,0.8,3.28,7.7,
AddVertex,1.1,3.28,8.0,
AddVertex,1.1,1.48,6.4,
AddVertex,0.8,1.48,6.1,
AddVertex,-0.8,1.48,6.1,
AddVertex,-1.1,1.48,6.4,
AddFace,0,1,6,7,
AddFace,1,2,5,6,
AddFace,2,3,4,5,
GenerateNormals,

LoadTexture,hst_top_f.png,
SetTextureCoordinates,0, 0.015, 0.30,
SetTextureCoordinates,1, 0.15, 0.30,
SetTextureCoordinates,2, 0.85, 0.30,
SetTextureCoordinates,3, 0.985, 0.30,
SetTextureCoordinates,4, 0.985, 1,
SetTextureCoordinates,5, 0.85, 1,
SetTextureCoordinates,6, 0.15, 1,
SetTextureCoordinates,7, 0.015, 1,

;; Front bottom
;;
CreateMeshBuilder,
AddVertex,-1.1,1.5,6.4,
AddVertex,-0.8,1.5,6.1,
AddVertex,0.8,1.5,6.1,
AddVertex,1.1,1.5,6.4,
AddVertex,0.8,0.65,7.35,
AddVertex,0.70,0.65,6.95,
AddVertex,-0.70,0.65,6.95,
AddVertex,-0.8,0.65,7.35,
AddFace,0,1,6,7,
AddFace,1,2,5,6,
AddFace,2,3,4,5,
GenerateNormals,

LoadTexture,hstftb_301.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 0.15, 0,
SetTextureCoordinates,2, 0.85, 0,
SetTextureCoordinates,3, 1, 0,
SetTextureCoordinates,4, 1, 0.5,
SetTextureCoordinates,5, 0.82, 0.5,
SetTextureCoordinates,6, 0.18, 0.5,
SetTextureCoordinates,7, 0, 0.5,
SetDecalTransparentColor,0,0,255,

;; Rear End
;;
CreateMeshBuilder,
AddVertex, 1.23, 1, 24.75 ,
AddVertex, 1.23, 3.855, 24.75 ,
AddVertex,-1.23, 3.855, 24.75 ,
AddVertex,-1.23, 1, 24.75 ,
AddFace2,3,2,1,0,
GenerateNormals,

LoadTexture,mk3end.png,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255

;; Lights glow

CreateMeshBuilder,
AddVertex,-0.6, 1.7, 6.1,
AddVertex,-1.35, 1.7, 6.8,
AddVertex,-1.35, 1.3, 6.48,
AddVertex,-0.6, 1.3, 5.78,
AddVertex,0.6, 1.7, 6.1,
AddVertex,1.35, 1.7, 6.8,
AddVertex,1.35, 1.3, 6.48,
AddVertex,0.6, 1.3, 5.78,
AddFace2,3,2,1,0,
AddFace2,4,5,6,7,
GenerateNormals,
translate,0,0.16,0,

LoadTexture,glow_white.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetTextureCoordinates,4, 0, 0,
SetTextureCoordinates,5, 1, 0,
SetTextureCoordinates,6, 1, 1,
SetTextureCoordinates,7, 0, 1,
SetDecalTransparentColor,0,0,0,
SetEmissiveColor,255,255,255,
SetBlendMode,Additive,5,
Translateall,0,0,-15.625
RotateAll,0,180,0,180

CreateMeshBuilder,
AddVertex,-0.4, 1.1, -10,
AddVertex,-0.4, 1.1, -21.4,
AddVertex,-0.55, 1.2, -10,
AddVertex,-0.55, 1.2, -21.4,
AddVertex,-0.55, 3.33, -10,
AddVertex,-0.55, 3.33, -21.4,
AddVertex,-0.35, 3.53, -10,
AddVertex,-0.35, 3.53, -21.4,
AddVertex,0.35, 3.53, -10,
AddVertex,0.35, 3.53, -21.4,
AddVertex,0.55, 3.33, -10,
AddVertex,0.55, 3.33, -21.4,
AddVertex,0.55, 1.2, -10,
AddVertex,0.55, 1.2, -21.4,
AddVertex,0.4, 1.1, -10,
AddVertex,0.4, 1.1, -21.4,
AddFace2,0,1,3,2,
AddFace2,2,3,5,4,
AddFace2,4,5,7,6,
AddFace2,6,7,9,8,
AddFace2,8,9,11,10,
AddFace2,10,11,13,12,
AddFace2,12,13,15,14,
SetColor,25,25,25,
Translate,0,0,11.8,
GenerateNormals,

;mk3 roof

;TOP PART

CreateMeshBuilder,
AddVertex,0.2, 3.8, 3.375,
AddVertex,0.2, 3.825, 8.375,
AddVertex,-0.2, 3.825, 8.375,
AddVertex,-0.2, 3.8, 3.375,
Translate,0,0,-12.5,
AddFace2,3,2,1,0,
GenerateNormals,

LoadTexture,mk3roof.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 2,
SetTextureCoordinates,3, 0, 2,

;Roof LEFT

CreateMeshBuilder,
AddVertex,-0.2, 3.8, 3.375,
AddVertex,-0.2, 3.825, 8.375,
AddVertex,-0.6, 3.71, 8.375,
AddVertex,-0.6, 3.71, 3.375,
AddVertex,-1.0, 3.48, 3.375,
AddVertex,-1.0, 3.48, 8.375,
AddVertex,-1.13, 3.27, 3.375,
AddVertex,-1.13, 3.27, 8.375,
AddFace2,0,1,2,3,
AddFace2,3,2,5,4,
AddFace2,4,5,7,6,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3roof.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 2,
SetTextureCoordinates,3, 0, 2,
SetTextureCoordinates,4, 0, 5,
SetTextureCoordinates,5, 1, 5,
SetTextureCoordinates,6, 0, 5,
SetTextureCoordinates,7, 1, 5,
SetDecalTransparentColor,0,0,255

;edge

CreateMeshBuilder,
AddVertex,-0.2, 3.825, 3.375,
AddVertex,-0.2, 3.799, 8.375,
AddVertex,-0.6, 3.71, 8.3755,
AddVertex,-0.6, 3.71, 3.375,
AddVertex,-1.0, 3.48, 3.375,
AddVertex,-1.0, 3.48, 8.375,
AddVertex,-1.13, 3.28, 3.375,
AddVertex,-1.13, 3.28, 8.375,
AddFace,0,1,2,3,
AddFace,3,2,5,4,
AddFace,4,5,7,6,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3roof_plain.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 2,
SetTextureCoordinates,3, 0, 2,
SetTextureCoordinates,4, 0, 5,
SetTextureCoordinates,5, 1, 5,
SetTextureCoordinates,6, 0, 5,
SetTextureCoordinates,7, 1, 5,

;Roof RIGHT

CreateMeshBuilder,
AddVertex,0.2, 3.8, 3.375,
AddVertex,0.2, 3.825, 8.375,
AddVertex,0.6, 3.71, 8.375,
AddVertex,0.6, 3.71, 3.375,
AddVertex,1.0, 3.48, 3.375,
AddVertex,1.0, 3.48, 8.375,
AddVertex,1.13, 3.27, 3.375,
AddVertex,1.13, 3.27, 8.375,
AddFace2,0,1,2,3,
AddFace2,3,2,5,4,
AddFace2,4,5,7,6,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3roof.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 2,
SetTextureCoordinates,3, 0, 2,
SetTextureCoordinates,4, 0, 5,
SetTextureCoordinates,5, 1, 5,
SetTextureCoordinates,6, 0, 5,
SetTextureCoordinates,7, 1, 5,
SetDecalTransparentColor,0,0,255

;edge

CreateMeshBuilder,
AddVertex,0.2, 3.799, 3.375,
AddVertex,0.2, 3.824, 8.375,
AddVertex,0.6, 3.7, 8.3755,
AddVertex,0.6, 3.7, 3.375,
AddVertex,1.0, 3.48, 3.375,
AddVertex,1.0, 3.48, 8.375,
AddVertex,1.13, 3.28, 3.375,
AddVertex,1.13, 3.28, 8.375,
AddFace,3,2,1,0,
AddFace,4,5,2,3,
AddFace,6,7,5,4,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3roof_plain.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 2,
SetTextureCoordinates,3, 0, 2,
SetTextureCoordinates,4, 0, 5,
SetTextureCoordinates,5, 1, 5,
SetTextureCoordinates,6, 0, 5,
SetTextureCoordinates,7, 1, 5,

CreateMeshBuilder
AddVertex, 1.2,2.15,9.15 
AddVertex, 1.2,1.15,9.75 
AddVertex, 0.2,1.15,9.75 
AddVertex, 0.2,2.15,9.15  
AddFace2, 0,1,2,3, 

LoadTexture, glow_white.png
SetTextureCoordinates, 0,0,0
SetTextureCoordinates, 1,1,0
SetTextureCoordinates, 2,1,0.9
SetTextureCoordinates, 3,0,0.9
SetDecalTransparentColor, 0,0,0,
SetEmissiveColor, 255,255,255,
SetBlendMode,additive,5,

;Chassis infill

;air tanks

CreateMeshBuilder,
AddVertex,-0.8,0.5,3.65,
AddVertex,-0.8,1.22,3.65,
AddVertex,0.8,1.22,3.65,
AddVertex,0.8,0.5,3.65,
AddFace2,0,1,2,3,
Translate,0,0,-12.5,
GenerateNormals,
SetColor,0,0,0,

CreateMeshBuilder,
AddVertex,-0.8,0.5,4.09,
AddVertex,-0.8,1.22,4.09,
AddVertex,0.8,1.22,4.09,
AddVertex,0.8,0.5,4.09,
AddFace2,0,1,2,3,
Translate,0,0,-12.5,
GenerateNormals,
SetColor,0,0,0,

;rear bogie

CreateMeshBuilder,
AddVertex,-0.89,1.22,4.45,
AddVertex,0.89,1.22,4.45,
AddVertex,0.89,0.18,4.45,
AddVertex,-0.89,0.18,4.45,
AddFace2,0,1,2,3,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,infill1.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,0.9,
SetTextureCoordinates,3,0,0.9,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex,-0.89,1.22,8.6725,
AddVertex,0.89,1.22,8.6725,
AddVertex,0.89,0.1,8.6725,
AddVertex,-0.89,0.1,8.6725,
AddFace2,0,1,2,3,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,infill1.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,0.9,
SetTextureCoordinates,3,0,0.9,
SetDecalTransparentColor,0,0,255,

;batt box

CreateMeshBuilder,
AddVertex,-0.8,0.08,9.285,
AddVertex,-0.8,1.22,9.285,
AddVertex,0.8,1.22,9.285,
AddVertex,0.8,0.08,9.285,
AddFace2,0,1,2,3,
Translate,0,0,-12.5,
GenerateNormals,
SetColor,9,13,23,

CreateMeshBuilder,
AddVertex,-0.8,0.08,11.455,
AddVertex,-0.8,1.22,11.455,
AddVertex,0.8,1.22,11.455,
AddVertex,0.8,0.08,11.455,
AddFace2,0,1,2,3,
Translate,0,0,-12.5,
GenerateNormals,
SetColor,9,13.23,

;fuel tank

CreateMeshBuilder,
AddVertex,-0.8,0.095,11.92,
AddVertex,-0.8,1.22,11.92,
AddVertex,0.8,1.22,11.92,
AddVertex,0.8,0.095,11.92,
AddFace2,0,1,2,3,
Translate,0,0,-12.5,
GenerateNormals,
SetColor,9,13,23,

CreateMeshBuilder,
AddVertex,-0.8,0.095,13.91,
AddVertex,-0.8,1.22,13.91,
AddVertex,0.8,1.22,13.91,
AddVertex,0.8,0.095,13.91,
AddFace2,0,1,2,3,
Translate,0,0,-12.5,
GenerateNormals,
SetColor,9,13,23,

;thing

CreateMeshBuilder,
AddVertex,0.73,0.095,14.195,
AddVertex,0.73,1.22,14.195,
AddVertex,0.8,1.22,14.195,
AddVertex,0.8,0.095,14.195,
AddFace2,0,1,2,3,
Translate,0,0,-12.5,
GenerateNormals,
SetColor,9,13,23,

CreateMeshBuilder,
AddVertex,-0.73,0.095,14.195,
AddVertex,-0.73,1.22,14.195,
AddVertex,-0.8,1.22,14.195,
AddVertex,-0.8,0.095,14.195,
AddFace2,0,1,2,3,
Translate,0,0,-12.5,
GenerateNormals,
SetColor,9,13,23,

CreateMeshBuilder,
AddVertex,0.73,0.095,14.415,
AddVertex,0.73,1.22,14.415,
AddVertex,0.8,1.22,14.415,
AddVertex,0.8,0.095,14.415,
AddFace2,0,1,2,3,
Translate,0,0,-12.5,
GenerateNormals,
SetColor,9,13,23,

CreateMeshBuilder,
AddVertex,-0.73,0.095,14.415,
AddVertex,-0.73,1.22,14.415,
AddVertex,-0.8,1.22,14.415,
AddVertex,-0.8,0.095,14.415,
AddFace2,0,1,2,3,
Translate,0,0,-12.5,
GenerateNormals,
SetColor,9,13,23,

;front bogie

CreateMeshBuilder,
AddVertex,-0.89,1.22,15.925,
AddVertex,0.89,1.22,15.925,
AddVertex,0.89,0.1,15.925,
AddVertex,-0.89,0.1,15.925,
AddFace2,0,1,2,3,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,infill2.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,0.9,
SetTextureCoordinates,3,0,0.9,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex,-0.89,1.22,16.12,
AddVertex,0.89,1.22,16.12,
AddVertex,0.89,0.1,16.12,
AddVertex,-0.89,0.1,16.12,
AddFace2,0,1,2,3,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,infill1.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,0.9,
SetTextureCoordinates,3,0,0.9,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex,-0.89,1.22,20.352,
AddVertex,0.89,1.22,20.352,
AddVertex,0.89,0.15,20.352,
AddVertex,-0.89,0.15,20.352,
AddFace2,0,1,2,3,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,infill1.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,0.9,
SetTextureCoordinates,3,0,0.9,
SetDecalTransparentColor,0,0,255,


