;A Hammerwich - Wood Green object
;--------------------------------------
;(c) Steve Green  2002.
;www.trainsimcentral.co.uk
;
;Modified for the Cross-City South
;by Anthony Bowden
;www.railsimroutes.co.uk
;
;Please seek permission before using
;copyright material in your own route
;
;See 'Readme.txt'

CreateMeshBuilder,
AddVertex,-0.8, -0.05, 23.75,
AddVertex,-1.0, 1.22, 23.75,
AddVertex,-1.0, 1.22, 1.25,
AddVertex,-0.8, -0.05, 1.25,
AddFace,0,1,2,3,

GenerateNormals,

LoadTexture,mk3Underframe.bmp,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,0,

;Side Left
CreateMeshBuilder,
AddVertex,-1.05, 3.27, 24.75,
AddVertex,-1.05, 3.27, 1.012,
AddVertex,-1.212, 1.7, 0.39,
AddVertex,-0.980, 1.11, 0.25,
AddVertex,-0.980, 1.11, 24.75,
AddVertex,-1.212, 1.7, 24.75,
AddFace,0,1,2,5,
AddFace,5,2,3,4,

GenerateNormals,

LoadTexture,voy_cab.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 0.973, 0,
SetTextureCoordinates,2, 1, 0.73,
SetTextureCoordinates,3, 1.006, 1,
SetTextureCoordinates,4, 0, 1,
SetTextureCoordinates,5, 0, 0.69,

;Front
CreateMeshBuilder,
AddVertex,-1.25, 3.85, 1.26,
AddVertex,1.30, 3.85, 1.26,
AddVertex,1.30, 1.4, 0.25,
AddVertex,-1.25, 1.4, 0.25,
AddFace,0,1,2,3,
GenerateNormals,

LoadTexture,voyf1.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetDecalTransparentColor,0,0,0,

CreateMeshBuilder,
AddVertex,-1.25, 1.49, 0.26,
AddVertex,1.30, 1.49, 0.26,
AddVertex,1.30, 0.4, 0.25,
AddVertex,-1.25, 0.4, 0.25,
AddFace,0,1,2,3,
GenerateNormals,

LoadTexture,voyf.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetDecalTransparentColor,0,0,0,

;Roof
CreateMeshBuilder,
AddVertex,-0.2, 3.85, 24.75,
AddVertex,-0.2, 3.82, 3,
AddVertex,-0.6, 3.70, 3,
AddVertex,-0.6, 3.72, 24.75,
AddVertex,-1.00, 3.45, 24.75,
AddVertex,-1.00, 3.4, 3,
AddVertex,-1.04, 3.27, 24.75,
AddVertex,-1.04, 3.27, 3,
AddFace,0,1,2,3,
AddFace,3,2,5,4,
AddFace,4,5,7,6,
SetColor,200,200,200,
GenerateNormals,

LoadTexture,voyroof.bmp,
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, 1.81, 1.95,
AddVertex,-1, 1.81, 0.45,
AddVertex,-0.86, 0.72, 0.25,
AddVertex,-0.86, 0.72, 0.85,
AddFace,0,1,2,3,
SetColor,180,0,0,
GenerateNormals,

CreateMeshBuilder,
Cylinder,6,0.09,2.5,45
Rotate,1,0,0,84,
Translate,0.8,-0.75,-21.9,
SetColor,225,225,255,55,
GenerateNormals,

CreateMeshBuilder,
AddVertex,-4.5, -0.1, 0.25,
AddVertex,-4.5, -0.1, 24.5,
AddVertex,0, -0.1, 24.5,
AddVertex,0, -0.1, 0.25,
AddVertex,4.5, -0.1, 0.25,
AddVertex,4.5, -0.1, 24.5,
AddFace,0,1,2,3,
AddFace,5,4,3,2,
SetColor,225,225,225,50,
GenerateNormals,

LoadTexture,voy_cab_groundlight.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetTextureCoordinates,4, 0, 0,
SetTextureCoordinates,5, 1, 0,
SetDecalTransparentColor,0,0,0,

;Roof
CreateMeshBuilder,
AddVertex,-0.2, 3.85, 3,
AddVertex,-0.2, 3.82, 1.238,
AddVertex,-0.6, 3.70, 1.20,
AddVertex,-0.6, 3.72, 3,
AddVertex,-1.00, 3.45, 3,
AddVertex,-1.00, 3.4, 1.083,
AddVertex,-1.04, 3.27, 3,
AddVertex,-1.04, 3.27, 1.0,
AddFace,0,1,2,3,
AddFace,3,2,5,4,
AddFace,4,5,7,6,
SetColor,200,200,200,
GenerateNormals,

LoadTexture,voyroof1.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 0.979,
SetTextureCoordinates,3, 0, 0.979,
SetTextureCoordinates,4, 0, 1,
SetTextureCoordinates,5, 1, 1,
SetTextureCoordinates,6, 0, 1,
SetTextureCoordinates,7, 1, 1,

CreateMeshBuilder,
AddVertex,0,3.75,24.75,
AddVertex,0,6,24.75,
AddVertex,1.5,6,24.75,
AddVertex,1.5,3.75,24.75,
AddFace,0,1,2,3,
SetColor,255,255,255,20,
GenerateNormals,

LoadTexture,Clag2.bmp,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,0,
