;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 -3.5,5.42,0
Vertex 3.5,5.42,0
Vertex -3.5,3,0
Vertex 3.5,3,0
Face 0,1,3,2
[Texture]
Load boxfront.png
Coordinates 0,0,0
Coordinates 1,1,0
Coordinates 2,0,0.75
Coordinates 3,1,0.75

;Rear

[MeshBuilder]
Vertex 3.5,5.42,4
Vertex -3.5,5.42,4
Vertex 3.5,3,4
Vertex -3.5,3,4
Face2 0,1,3,2
[Texture]
Load boxfront.png
Coordinates 0,0,0
Coordinates 1,1,0
Coordinates 2,0,1
Coordinates 3,1,1

;side1

[MeshBuilder]
Vertex -3.5,5.42,4.06
Vertex -3.5,5.42,-0.06
Vertex -3.5,3,4.06
Vertex -3.5,3,-0.06
Face2 0,1,3,2
[Texture]
Load boxsidetop.png
Coordinates 0,0,0
Coordinates 1,1,0
Coordinates 2,0,0.75
Coordinates 3,1,0.75

;side2

[MeshBuilder]
Vertex 3.5,5.42,4.06
Vertex 3.5,5.42,-0.06
Vertex 3.5,3,4.06
Vertex 3.5,3,-0.06
Face2 0,1,3,2 
[Texture]
Load boxsidetop.png
Coordinates 0,0,0
Coordinates 1,1,0
Coordinates 2,0,0.75
Coordinates 3,1,0.75


;lowerfront

[MeshBuilder]
Vertex -3,3,0.25
Vertex 3,3,0.25
Vertex -3,0,0.25
Vertex 3,0,0.25
Face 0,1,3,2
[Texture]
Load boxfrontbottom.png
Coordinates 0,0,0
Coordinates 1,1,0
Coordinates 2,0,2
Coordinates 3,1,2

;;lowerRear

[MeshBuilder]
Vertex 3,3,4
Vertex -3,3,4
Vertex 3,0,4
Vertex -3,0,4
Face2 0,1,3,2
[Texture]
Load boxfrontbottom.png
Coordinates 0,0,0
Coordinates 1,1,0
Coordinates 2,0,2
Coordinates 3,1,2

;;lowerside1

[MeshBuilder]
Vertex -3,3,4
Vertex -3,3,0.25
Vertex -3,0,4
Vertex -3,0,0.25
Face2 0,1,3,2
[Texture]
Load boxsidebottom.png
Coordinates 0,0,0
Coordinates 1,0.9,0
Coordinates 2,0,1.2
Coordinates 3,0.9,1.2

;;lowerside2

[MeshBuilder]
Vertex 3,3,4
Vertex 3,3,0.25
Vertex 3,0,4
Vertex 3,0,0.25
Face2 0,1,3,2 
[Texture]
Load boxsidebottom.png
Coordinates 0,0,0
Coordinates 1,0.9,0
Coordinates 2,0,1.2
Coordinates 3,0.9,1.2

;upper platform
;front strip
[MeshBuilder]
vertex 4,5.62,4.5
vertex -4,5.62,4.5
vertex -4,5.92,-0.5
vertex 4,5.92,-0.5
face2 3,2,1,0
color 50,50,50


;front strip facing edge
[MeshBuilder]
Vertex 4,5.92,-0.5
Vertex -4,5.92,-0.5
Vertex -4,5.42,-0.5
Vertex 4,5.42,-0.5
Face 1,0,3,2
color 50,50,50


;side strip
[MeshBuilder]
vertex 4,5.62,4.5
vertex 4,5.42,4.5
vertex 4,5.42,-0.5
vertex 4,5.92,-0.5
face2 3,2,1,0
color 50,50,50

[MeshBuilder]
vertex -4,5.62,4.5
vertex -4,5.42,4.5
vertex -4,5.42,-0.5
vertex -4,5.92,-0.5
face2 3,2,1,0
color 50,50,50




;lower platform

[MeshBuilder]
vertex 3.6,3,4.5
vertex -3.6,3,4.5
vertex -3.6,3,-0.5
vertex 3.6,3,-0.5
face2 3,2,1,0
color 50,50,50

[MeshBuilder]
Vertex 3.6,3,-0.5
Vertex -3.6,3,-0.5
Vertex -3.6,2.85,-0.5
Vertex 3.6,2.85,-0.5
Face 1,0,3,2
color 50,50,50

[MeshBuilder]
vertex 3.6,3,4.5
vertex 3.6,2.85,4.5
vertex 3.6,2.85,-0.5
vertex 3.6,3,-0.5
face2 3,2,1,0
color 50,50,50

[MeshBuilder]
vertex -3.6,3,4.5
vertex -3.6,2.85,4.5
vertex -3.6,2.85,-0.5
vertex -3.6,3,-0.5
face2 3,2,1,0
color 50,50,50














