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

;Rear

[MeshBuilder]
Vertex 3.5,5.42,4
Vertex -3.5,5.42,4
Vertex 3.5,-1,4
Vertex -3.5,-1,4
Face2 0,1,3,2
[Texture]
Load upperhollowayboxfront.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,-1,4.06
Vertex -3.5,-1,-0.06
Face2 0,1,3,2
[Texture]
Load upperhollowayboxside.png
Coordinates 0,0,0
Coordinates 1,1,0
Coordinates 2,0,1
Coordinates 3,1,1

;side2

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

;lower platform

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

[MeshBuilder]
Vertex 5.25,1.75,4.5
Vertex -4.5,1.75,4.5
Vertex -4.5,1.5,4.5
Vertex 5.25,1.5,4.5
Face2 1,0,3,2
color 50,50,50

[MeshBuilder]
vertex 5.25,1.75,4.5
vertex 5.25,1.5,4.5
vertex 5.25,1.5,-0.5
vertex 5.25,1.75,-0.5
face2 3,2,1,0
color 50,50,50

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


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


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

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

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

;roof front

[MeshBuilder]
Vertex -4,5.42,-0.5
Vertex 4,5.42,-0.5
Vertex -2.5,7,2
Vertex 2.5,7,2
Face2 0,1,3,2
[Texture]
Load slateroof3.png
Coordinates 0,0,0
Coordinates 1,1.15,0
Coordinates 2,0.25,1.5
Coordinates 3,1,1.5

;roof back

[MeshBuilder]
Vertex -4,5.42,4.5
Vertex 4,5.42,4.5
Vertex -2.5,7,2
Vertex 2.5,7,2
Face2 0,1,3,2
[Texture]
Load slateroof3.png
Coordinates 0,0,0
Coordinates 1,1.15,0
Coordinates 2,0.25,1.5
Coordinates 3,1,1.5

;roof side1
[MeshBuilder]
vertex 2.5,7,2
vertex 4,5.42,4.5
vertex 4,5.42,-0.5
vertex 2.5,7,2
face2 0,1,2,3
[Texture]
Load slateroof3.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1.25,1
Coordinates 3,0.75,0

;roof side 2

[MeshBuilder]
vertex -2.5,7,2
vertex -4,5.42,4.5
vertex -4,5.42,-0.5
vertex -2.5,7,2
face2 0,1,2,3
[Texture]
Load slateroof3.png
Coordinates 0,0,0
Coordinates 1,0,1.25
Coordinates 2,1.25,1.25
Coordinates 3,0.75,0

;uprights

[meshbuilder]
cube 0.05,1,0.05
color 136,104,104
translate 5.15,2.5,-0.4

[meshbuilder]
cube 0.05,1,0.05
color 136,104,104
translate 5.15,2.5,0.5

[meshbuilder]
cube 0.05,1,0.05
color 136,104,104
translate 5.15,2.5,1.45

[meshbuilder]
cube 0.05,1,0.05
color 136,104,104
translate 5.15,2.5,2.3

[meshbuilder]
cube 0.05,1,0.05
color 136,104,104
translate 5.15,2.5,4.4

[meshbuilder]
cube 0.05,1,0.05
color 136,104,104
translate 4,2.5,4.4

[meshbuilder]
cube 0.05,1,0.05
color 136,104,104
translate 4.25,2.5,-0.4



;top rails

[meshbuilder]
cube 0.05,0.98,0.05
color 136,104,104
translate 5.15,-0.52,3.5
rotate 0,0,0,-90

[meshbuilder]
cube 0.05,1.1,0.05
color 136,104,104
translate 5.15,-3.35,3.5
rotate 0,0,0,-90

[meshbuilder]
cube 0.05,0.6,0.05
color 136,104,104
translate 3.5,-4.5,-0.4
rotate 0,0,-90,-90

;uprights steps bottom

[meshbuilder]
cube 0.05,1,0.05
color 136,104,104
translate 7.15,0.5,1.5

[meshbuilder]
cube 0.05,1,0.05
color 136,104,104
translate 7.15,0.5,2.4

;sloping rails
[meshbuilder]
cube 0.06,1.75,0.06
color 136,104,104
rotate 0,0,-45,-45
translate 6.35,2.3,1.5

[meshbuilder]
cube 0.06,1.75,0.06
color 136,104,104
rotate 0,0,-45,-45
translate 6.35,2.3,2.4

[meshbuilder]
cube 0.06,1.75,0.06
color 136,104,104
rotate 0,0,-45,-45
translate 6.35,1.3,1.5

[meshbuilder]
cube 0.06,1.75,0.06
color 136,104,104
rotate 0,0,-45,-45
translate 6.35,1.3,2.4


[meshbuilder]
cube 0.06,1.75,0.06
color 136,104,104
rotate 0,0,-45,-45
translate 6.35,0.3,1.5

[meshbuilder]
cube 0.06,1.75,0.06
color 136,104,104
rotate 0,0,-45,-45
translate 6.35,0.3,2.4

;step treads
;Span Floor right
[Meshbuilder]
Vertex 4.8,1.65,2.35
Vertex 7.45,-0.85,2.35
Vertex 7.45,-0.85,1.5
Vertex 4.8,1.65,1.5
Face2 0,1,2,3

[Texture]
Load ..\bridges\Steps2.png
Coordinates 0,0,1
Coordinates 1,1,0
Coordinates 2,1,0
Coordinates 3,0,1

