;With permission of Anthony Bowden 
;from an object 
;from his Birmingham Cross-City BVE Route 
;
;--------------------------------------
;(c) Anthony Bowden, 2002. [Modified by Steve Green]
;www.railsimroutes.co.uk
;
;Please seek permission before using
;any X-City files in your own route.
;
;See 'Readme.txt'.




CreateMeshBuilder,
AddVertex,-3.27, 6.68, -0.45,
AddVertex,13.02, 6.68, -0.45,
AddVertex,13.02, 7.85, -0.45,
AddVertex,-3.27, 7.85, -0.45,
AddFace2,3,2,1,0,

GenerateNormals,

LoadTexture,Mk1_Girder_Tile.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 17, 0,
SetTextureCoordinates,2, 17, 1,
SetTextureCoordinates,3, 0, 1,
SetDecalTransparentColor,197,197,197,

CreateMeshBuilder,
AddVertex,-3.26, 6.8, -0.45,
AddVertex,-3.26, 6.8, 0.4,
AddVertex,-3.26, 0.3, 0.4,
AddVertex,-3.26, 0.3, -0.45,
AddFace,0,1,2,3,

GenerateNormals,

LoadTexture,Side.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 3,
SetTextureCoordinates,3, 0, 3,
SetDecalTransparentColor,197,197,197,

CreateMeshBuilder,
AddVertex,13.0, 6.8, -0.45,
AddVertex,13.0, 6.8, 0.4,
AddVertex,13.0, 0.3, 0.4,
AddVertex,13.0, 0.3, -0.45,
AddFace,1,0,3,2,

GenerateNormals,

LoadTexture,Side.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 3,
SetTextureCoordinates,3, 0, 3,
SetDecalTransparentColor,197,197,197,


CreateMeshBuilder,
;Front Mast Left
AddVertex,-3.41, 7.74, -0.45,;x1
AddVertex,-3.2, 7.74, -0.45,;x1
AddVertex,-3.2, -0.3, -0.45,;x1
AddVertex,-3.41, -0.3, -0.45,;x1
AddFace,0,1,2,3,
AddFace,3,2,1,0,
SetColor,204, 204, 204,

;=================
;Right mast assembly

GenerateNormals,

CreateMeshBuilder,
;Front Mast Left
AddVertex,12.94, 7.74, -0.45,;x1
AddVertex,13.15, 7.74, -0.45,;x1
AddVertex,13.15, -0.3, -0.45,;x1
AddVertex,12.94, -0.3, -0.45,;x1
AddFace,0,1,2,3,
AddFace,3,2,1,0,
SetColor,204, 204, 204,



;===============================================
;Gantry Rear

;*****************************

GenerateNormals,

CreateMeshBuilder,
;Front Mast Left
AddVertex,-3.47, 7.74, 0.4,;x1
AddVertex,-3.26, 7.74, 0.4,;x1
AddVertex,-3.26, -0.3, 0.4,;x1
AddVertex,-3.47, -0.3, 0.4,;x1
AddFace2,0,1,2,3,
SetColor,204, 204, 204,

GenerateNormals,

CreateMeshBuilder,
;Front Mast Left
AddVertex,13.00, 7.74, 0.4,;x1
AddVertex,13.21, 7.74, 0.4,;x1
AddVertex,13.21, -0.3, 0.4,;x1
AddVertex,13.00, -0.3, 0.4,;x1
AddFace2,0,1,2,3,
SetColor,204, 204, 204,

;Flashover cage


;Base
GenerateNormals,

CreateMeshBuilder,
AddVertex,-2.65, 4.42, -0.5,
AddVertex,-2.65, 4.42, 0.55,
AddVertex,-1.75, 4.42, 0.55,
AddVertex,-1.75, 4.42, -0.5,
AddFace,3,2,1,0,
SetColor,50,50,50,

;Back
GenerateNormals,

CreateMeshBuilder,
AddVertex,-2.6, 4.72, 0.35,
AddVertex,-2.6, 6.60, 0.55,
AddVertex,-1.8, 6.60, 0.55,
AddVertex,-1.8, 4.72, 0.35,
AddFace2,0,1,2,3,
SetColor,90,90,90,


GenerateNormals,

CreateMeshBuilder,
AddVertex,-1.75, 6.6, -0.5,
AddVertex,-1.75, 6.6, 0.4,
AddVertex,-1.75, 4.42, 0.4,
AddVertex,-1.75, 4.42, -0.5,
AddFace,0,1,2,3,

GenerateNormals,

LoadTexture,mesh.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 16, 0,
SetTextureCoordinates,2, 16, 16,
SetTextureCoordinates,3, 0, 16,
SetDecalTransparentColor,150,150,150,

CreateMeshBuilder,
AddVertex,-2.65, 6.6, -0.5,
AddVertex,-2.65, 6.6, 0.4,
AddVertex,-2.65, 4.42, 0.4,
AddVertex,-2.65, 4.42, -0.5,
AddFace,0,1,2,3,

GenerateNormals,

LoadTexture,mesh.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 16, 0,
SetTextureCoordinates,2, 16, 16,
SetTextureCoordinates,3, 0, 16,
SetDecalTransparentColor,150,150,150,

;Flashover cage

;Base
CreateMeshBuilder,
AddVertex,0.87, 4.42, -0.5,
AddVertex,0.87, 4.42, 0.55,
AddVertex,1.77, 4.42, 0.55,
AddVertex,1.77, 4.42, -0.5,
AddFace,3,2,1,0,
SetColor,50,50,50,

;Back
GenerateNormals,

CreateMeshBuilder,
AddVertex,0.92, 4.72, 0.35,
AddVertex,0.92, 6.60, 0.55,
AddVertex,1.72, 6.60, 0.55,
AddVertex,1.72, 4.72, 0.35,
AddFace2,0,1,2,3,
SetColor,90,90,90,


GenerateNormals,

CreateMeshBuilder,
AddVertex,1.77, 6.6, -0.5,
AddVertex,1.77, 6.6, 0.4,
AddVertex,1.77, 4.42, 0.4,
AddVertex,1.77, 4.42, -0.5,
AddFace2,3,2,1,0,

GenerateNormals,

LoadTexture,mesh.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 16, 0,
SetTextureCoordinates,2, 16, 16,
SetTextureCoordinates,3, 0, 16,
SetDecalTransparentColor,150,150,150,

CreateMeshBuilder,
AddVertex,0.87, 6.6, -0.5,
AddVertex,0.87, 6.6, 0.4,
AddVertex,0.87, 4.42, 0.4,
AddVertex,0.87, 4.42, -0.5,
AddFace,3,2,1,0,

GenerateNormals,

LoadTexture,mesh.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 16, 0,
SetTextureCoordinates,2, 16, 16,
SetTextureCoordinates,3, 0, 16,
SetDecalTransparentColor,150,150,150,


CreateMeshBuilder,
AddVertex,1.10, 0.9, -1.39,
AddVertex,1.30, 0.9, -1.39,
AddVertex,1.30, -0.3, -1.39,
AddVertex,1.10, -0.3, -1.39,
AddFace2,0,1,2,3,
GenerateNormals,

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

CreateMeshBuilder,
AddVertex,-3.20, 0.9, -1.39,
AddVertex,-3.00, 0.9, -1.39,
AddVertex,-3.00, -0.3, -1.39,
AddVertex,-3.20, -0.3, -1.39,
AddFace2,0,1,2,3,
GenerateNormals,

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

