;Midland Suburban Line Object 
;Object and textures (copyright) Alan Hudnott May 2011
;you may use this object in bve routes 
;Please seek permission before modifying
;Please credit Alan Hudnott.

;front

[MeshBuilder]
Vertex -2.24,3.78,0.1
Vertex 0.2,3.78,0.1
Vertex -2.24,-0.5,0.1
Vertex 0.2,-0.5,0.1
Face 0,1,3,2
[Texture]
Load tinshedside.png
Coordinates 0,0,0
Coordinates 1,1,0
Coordinates 2,0,1
Coordinates 3,1,1
transparent 0,0,255

;Rear

[MeshBuilder]
Vertex 0.16,3.78,5
Vertex -2.24,3.78,5
Vertex 0.16,-0.5,5
Vertex -2.24,-0.5,5
Face2 0,1,3,2
[Texture]
Load tinshedside.png
Coordinates 0,0,0
Coordinates 1,1,0
Coordinates 2,0,1
Coordinates 3,1,1
transparent 0,0,255

;side1

[MeshBuilder]
Vertex -2,2.5,5
Vertex -2,2.5,0
Vertex -2,0,5
Vertex -2,0,0
Face2 0,1,3,2
[Texture]
Load tinshedfront.png
Coordinates 0,0,0
Coordinates 1,1,0
Coordinates 2,0,1
Coordinates 3,1,1
transparent 0,0,255

;side2

[MeshBuilder]
Vertex 0,2.5,5.05
Vertex 0,2.5,0
Vertex 0,0,5.05
Vertex 0,0,0
Face2 0,1,3,2 
[Texture]
Load tinshedfront.png
Coordinates 0,0,0
Coordinates 1,1,0
Coordinates 2,0,1
Coordinates 3,1,1
transparent 0,0,255

[meshbuilder]
vertex -2,3.5,0
vertex -1.7,3.66,0
vertex -1.7,3.66,5
vertex -2,3.5,5
vertex -1.4,3.76,0
vertex -1.4,3.76,5
vertex -1,3.82,0
vertex -1,3.82,5
vertex -0.6,3.76,0
vertex -0.6,3.76,5
vertex -0.3,3.66,0
vertex -0.3,3.66,5
vertex 0,3.5,0
vertex 0,3.5,5
face2 3,2,1,0
face2 2,5,4,1
face2 5,7,6,4
face2 7,9,8,6
face2 9,11,10,8
face2 11,13,12,10
translate 0,-1,0

[texture]
load ..\trains\wagonroof.png
coordinates 0,0,0
coordinates 1,0,1
coordinates 2,1,1
coordinates 3,1,0
coordinates 4,0,2
coordinates 5,1,2
coordinates 6,0,3
coordinates 7,1,3
coordinates 8,0,4
coordinates 9,1,4
coordinates 10,0,5
coordinates 11,1,5
coordinates 12,0,6
coordinates 13,1,6
