;--------------------------------------
;NWM BVE Route Object File
;--------------------------------------
;Object and textures (c) Robert Glass 2001-2003.
;www.scotrailsim.co.uk
;Sandymill - Invermay Electric BVE Route
;(c) Robert Glass 2001-2003
;
;Modified by Tony Haylor.
;Please seek permission before using
;any NWM files in your own route.
;
;see 'Readme.txt' file.
;

;Front
CreateMeshBuilder,
AddVertex,-1.18, 1.15, 8.9,
AddVertex,-1.23, 2.5, 8.9,
AddVertex,-1.2, 3.9, 9,
AddVertex,1.18,1.15,8.9,
AddVertex,1.23, 2.5, 8.9,
AddVertex,1.2, 3.9, 9,
AddFace2,0,1,4,3,
AddFace2,1,2,5,4,
GenerateNormals,
LoadTexture,331f1.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0.5,
SetTextureCoordinates,2, 0, 0,
SetTextureCoordinates,3, 1, 1,
SetTextureCoordinates,4, 1, 0.5,
SetTextureCoordinates,5, 1, 0,
SetDecalTransparentColor,0,0,0,
;***************************************************
;Side
CreateMeshBuilder,
AddVertex,-1.17, 0.95, 24.75,
AddVertex,-1.23, 2.5, 24.75,
AddVertex,-1.2, 3.325, 24.69,
AddVertex,-1.17, 0.95, 8.9,
AddVertex,-1.23, 2.5, 8.9,
AddVertex,-1.2, 3.325, 8.96,
AddFace2,0,1,4,3,
AddFace2,1,2,5,4,
GenerateNormals,
LoadTexture,331s2Y1.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0.37,
SetTextureCoordinates,2, 0.003, 0,
SetTextureCoordinates,3, 1, 1,
SetTextureCoordinates,4, 1, 0.37,
SetTextureCoordinates,5, 0.997, 0,
;SetDecalTransparentColor,0,0,0,

CreateMeshBuilder,
AddVertex,1.17, 0.95, 24.75,
AddVertex,1.23, 2.5, 24.75,
AddVertex,1.2, 3.325, 24.69,
AddVertex,1.17, 0.95, 8.9,
AddVertex,1.23, 2.5, 8.9,
AddVertex,1.2, 3.325, 8.96,
AddFace2,3,4,1,0,
AddFace2,4,5,2,1,
GenerateNormals,
LoadTexture,331s2Y1.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0.37,
SetTextureCoordinates,2, 0.003, 0,
SetTextureCoordinates,3, 1, 1,
SetTextureCoordinates,4, 1, 0.37,
SetTextureCoordinates,5, 0.997, 0,
;SetDecalTransparentColor,0,0,0,

;***************************************************
;Roof
CreateMeshBuilder,
AddVertex,-0.75, 3.85, 24.65,
AddVertex,-0.75, 3.85, 9,
AddVertex,-0.85, 3.8, 8.99,
AddVertex,-0.85, 3.8, 24.66,
AddVertex,-1.07, 3.59, 24.68,
AddVertex,-1.07, 3.59, 8.97,
AddVertex,-1.2, 3.324, 24.69,
AddVertex,-1.2, 3.324, 8.96,
AddFace,0,1,2,3,
AddFace,3,2,5,4,
AddFace,4,5,7,6,
GenerateNormals,
LoadTexture,331r1.png,
SetTextureCoordinates,0, 0.99, 0,
SetTextureCoordinates,1, 0.01, 0,
SetTextureCoordinates,2, 0.01, 0.2,
SetTextureCoordinates,3, 0.99, 0.2,
SetTextureCoordinates,4, 0.99, 0.5,
SetTextureCoordinates,5, 0.01, 0.5,
SetTextureCoordinates,6, 0.99, 1,
SetTextureCoordinates,7, 0.01, 1,

CreateMeshBuilder,
AddVertex,0.75, 3.85, 24.65,
AddVertex,0.75, 3.85, 9,
AddVertex,0.85, 3.8, 8.99,
AddVertex,0.85, 3.8, 24.66,
AddVertex,1.07, 3.59, 24.68,
AddVertex,1.07, 3.59, 8.97,
AddVertex,1.2, 3.324, 24.69,
AddVertex,1.2, 3.324, 8.96,
AddFace,3,2,1,0,
AddFace,4,5,2,3,
AddFace,6,7,5,4,
GenerateNormals,
LoadTexture,31r1.png,
SetTextureCoordinates,0, 0.99, 0,
SetTextureCoordinates,1, 0.01, 0,
SetTextureCoordinates,2, 0.01, 0.2,
SetTextureCoordinates,3, 0.99, 0.2,
SetTextureCoordinates,4, 0.99, 0.5,
SetTextureCoordinates,5, 0.01, 0.5,
SetTextureCoordinates,6, 0.99, 1,
SetTextureCoordinates,7, 0.01, 1,
;***************************************************
;Chassis
CreateMeshBuilder,
AddVertex,-1.0, -0.05, 24.5,
AddVertex,-1.0, 1.22, 24.5,
AddVertex,-1.0, 1.22, 9.25,
AddVertex,-1.0, -0.05, 9.25,
AddFace,0,1,2,3,
GenerateNormals,
LoadTexture,31ch.png,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,0,

CreateMeshBuilder,
AddVertex,1.0, -0.05, 24.5,
AddVertex,1.0, 1.22, 24.5,
AddVertex,1.0, 1.22, 9.25,
AddVertex,1.0, -0.05, 9.25,
AddFace,3,2,1,0,
GenerateNormals,
LoadTexture,31ch.png,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,0,


;Chassis 2
CreateMeshBuilder,
AddVertex,1, -0.25, 24.5,
AddVertex,1, 1.22, 24.5,
AddVertex,1, 1.22, 9.25,
AddVertex,1, -0.25, 9.25,
AddFace2,0,1,2,3,
GenerateNormals,
LoadTexture,31ch.png,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,0,

CreateMeshBuilder,
AddVertex,1.0, -0.05, 24.5,
AddVertex,1.0, 1.22, 24.5,
AddVertex,1.0, 1.22, 9.25,
AddVertex,1.0, -0.05, 9.25,
AddFace,3,2,1,0,
GenerateNormals,
LoadTexture,31ch.png,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,0,
;***************************************************
;Bufferbeam
CreateMeshBuilder,
AddVertex,-1.2, 0, 9.5,
AddVertex,-1.2, 0.6, 9,
AddVertex,-1.2, 1.2, 9,
AddVertex, 1.2, 0, 9.5,
AddVertex, 1.2, 0.6, 9,
AddVertex, 1.2, 1.2, 9,
AddFace2,0,1,4,3,
AddFace2,1,2,5,4,
GenerateNormals,
LoadTexture,31bb.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0.5,
SetTextureCoordinates,2, 0, 0,
SetTextureCoordinates,3, 1, 1,
SetTextureCoordinates,4, 1, 0.5,
SetTextureCoordinates,5, 1, 0,
SetDecalTransparentColor,0,0,0,
