;London Transport RML Routemaster Bus
;Object created by Alan Wheeler, aka Guiilyman, email guillyman@eezypeazy.co.uk
;From Photographs by Adam Priseman, aka 175fan
;Hosted by eezypeazy, email eezypeazy@eezypeazy.co.uk
;Copyright eezypeazy, Alan Wheeler and Adam Priseman 2008. All rights reserved.
;You may publish this object without alteration in your BVE routes providing that you acknowledge this copyright

;________Roof and Sides___________

CreateMeshBuilder
Addvertex, -1.143,0.305,0.127
Addvertex, -1.219,0.305,1.600
Addvertex, -1.219,0.305,9.108
Addvertex, -1.143,2.438,0.127
Addvertex, -1.219,2.438,1.600
Addvertex, -1.219,2.438,9.108
Addvertex, -1.019,4.064,0.127
Addvertex, -1.105,4.064,1.600
Addvertex, -1.105,4.064,9.108
Addvertex, -0.916,4.229,0.127
Addvertex, -0.991,4.229,1.600
Addvertex, -0.991,4.229,9.108
Addvertex, -0.5,4.369,0.127
Addvertex, -0.5,4.369,1.6
Addvertex, -0.5,4.369,9.108
Addvertex, 0.5,4.369,0.127
Addvertex, 0.5,4.369,1.6
Addvertex, 0.5,4.369,9.108
Addvertex, 0.916,4.229,0.127
Addvertex, 0.991,4.229,1.6
Addvertex, 0.991,4.229,9.108
Addvertex, 1.019,4.064,0.127
Addvertex, 1.105,4.064,1.600
Addvertex, 1.105,4.064,9.108
Addvertex, 1.143,2.438,0.127
Addvertex, 1.219,2.438,1.600
Addvertex, 1.219,2.438,9.108
Addvertex, 1.143,0.305,0.127
Addvertex, 1.219,0.305,1.600
Addvertex, 1.219,0.305,9.108
Addface, 0,1,4,3
Addface, 1,2,5,4
Addface, 3,4,7,6
Addface, 4,5,8,7
Addface, 6,7,10,9
Addface, 7,8,11,10
Addface, 9,10,13,12
Addface, 10,11,14,13
Addface, 12,13,16,15
Addface, 13,14,17,16
Addface, 15,16,19,18
Addface, 16,17,20,19
Addface, 18,19,22,21
Addface, 19,20,23,22
Addface, 21,22,25,24
Addface, 22,23,26,25
Addface, 24,25,28,27
Addface, 25,26,29,28
generatenormals
LoadTexture, RML_Roof_Sides.png
SetTextureCoordinates, 0,0.002,0.002
SetTextureCoordinates, 1,0.176,0.002
SetTextureCoordinates, 2,0.998,0.002
SetTextureCoordinates, 3,0.002,0.244
SetTextureCoordinates, 4,0.176,0.244
SetTextureCoordinates, 5,0.998,0.244
SetTextureCoordinates, 6,0.002,0.420
SetTextureCoordinates, 7,0.176,0.420
SetTextureCoordinates, 8,0.998,0.420
SetTextureCoordinates, 9,0.002,0.4375
SetTextureCoordinates, 10,0.176,0.4375
SetTextureCoordinates, 11,0.998,0.4375
SetTextureCoordinates, 12,0.002,0.460
SetTextureCoordinates, 13,0.176,0.460
SetTextureCoordinates, 14,0.998,0.460
SetTextureCoordinates, 15,0.002,0.540
SetTextureCoordinates, 16,0.176,0.540
SetTextureCoordinates, 17,0.998,0.540
SetTextureCoordinates, 18,0.002,0.5625
SetTextureCoordinates, 19,0.176,0.5625
SetTextureCoordinates, 20,0.998,0.5625
SetTextureCoordinates, 21,0.002,0.580
SetTextureCoordinates, 22,0.176,0.580
SetTextureCoordinates, 23,0.998,0.580
SetTextureCoordinates, 24,0.002,0.756
SetTextureCoordinates, 25,0.176,0.756
SetTextureCoordinates, 26,0.998,0.756
SetTextureCoordinates, 27,0.002,0.998
SetTextureCoordinates, 28,0.176,0.998
SetTextureCoordinates, 29,0.998,0.998
Setdecaltransparentcolor,0,0,255

;________Rear_____________________

CreateMeshBuilder
Addvertex, 1.219,4.369,8.2
Addvertex, -1.219,4.369,8.2
Addvertex, 1.219,4.0,8.8
Addvertex, -1.219,4.0,8.8
Addvertex, 1.219,3.34,9.05
Addvertex, -1.219,3.34,9.05
Addvertex, 1.219,2.438,9.108
Addvertex, -1.219,2.438,9.108
Addvertex, 1.219,0.305,9.108
Addvertex, -1.219,0.305,9.108
Addface, 0,1,3,2
Addface, 2,3,5,4
Addface, 4,5,7,6
Addface, 6,7,9,8
generatenormals
LoadTexture, RML_Rear.png
SetTextureCoordinates, 0,0.002,0.002
SetTextureCoordinates, 1,0.998,0.002
SetTextureCoordinates, 2,0.002,0.082
SetTextureCoordinates, 3,0.998,0.082
SetTextureCoordinates, 4,0.002,0.238
SetTextureCoordinates, 5,0.998,0.238
SetTextureCoordinates, 6,0.002,0.4375
SetTextureCoordinates, 7,0.998,0.4375
SetTextureCoordinates, 8,0.002,0.998
SetTextureCoordinates, 9,0.998,0.998
Setdecaltransparentcolor,0,0,255

;________Front____________________

CreateMeshBuilder
Addvertex, -1.173,4.369,1.11
Addvertex, 1.173,4.369,1.11
Addvertex, -1.173,4.229,0.81
Addvertex, 1.173,4.229,0.81
Addvertex, -1.173,4.064,0.55
Addvertex, 1.173,4.064,0.55
Addvertex, -1.173,2.378,0.242
Addvertex, 1.173,2.378,0.242
Addvertex, -1.173,0.195,0.187
Addvertex, 1.173,0.195,0.187
Addface, 0,1,3,2
Addface, 2,3,5,4
Addface, 4,5,7,6
Addface2, 6,7,9,8
generatenormals
LoadTexture, RML_Front.png
SetTextureCoordinates, 0,0.002,0.002
SetTextureCoordinates, 1,0.998,0.002
SetTextureCoordinates, 2,0.002,0.027
SetTextureCoordinates, 3,0.998,0.027
SetTextureCoordinates, 4,0.002,0.055
SetTextureCoordinates, 5,0.998,0.055
SetTextureCoordinates, 6,0.002,0.466
SetTextureCoordinates, 7,0.998,0.466
SetTextureCoordinates, 8,0.002,0.998
SetTextureCoordinates, 9,0.998,0.998
Setdecaltransparentcolor,0,0,255

;________Platform Area____________

CreateMeshBuilder
Addvertex, 1.219,2.438,7.73
Addvertex, 1.219,2.438,9.108
Addvertex, -0.3,2.438,7.73
Addvertex, -0.3,2.438,9.108
Addvertex, -0.3,0.367,7.73
Addvertex, -0.3,0.367,9.108
Addvertex, 1.219,0.367,7.73
Addvertex, 1.219,0.367,9.108
Addface, 0,1,3,2
Addface, 2,3,5,4
Addface, 4,5,7,6
generatenormals
LoadTexture, RML_Platform_Area.png
SetTextureCoordinates, 0,0.005,0.005
SetTextureCoordinates, 1,0.995,0.005
SetTextureCoordinates, 2,0.005,0.25
SetTextureCoordinates, 3,0.995,0.25
SetTextureCoordinates, 4,0.005,0.75
SetTextureCoordinates, 5,0.995,0.75
SetTextureCoordinates, 6,0.005,0.995
SetTextureCoordinates, 7,0.995,0.995

;________Platform Front___________

CreateMeshBuilder
Addvertex, 1.219,2.438,7.73
Addvertex, -0.3,2.438,7.73
Addvertex, 1.219,0.367,7.73
Addvertex, -0.3,0.367,7.73
Addface, 0,1,3,2
generatenormals
LoadTexture, RML_Platform_Front.png
SetTextureCoordinates, 0,0.005,0.005
SetTextureCoordinates, 1,0.995,0.005
SetTextureCoordinates, 2,0.005,0.995
SetTextureCoordinates, 3,0.995,0.995

;________Inside Rear______________

CreateMeshBuilder
Addvertex, -0.31,2.438,9.108
Addvertex, 1.219,2.438,9.108
Addvertex, -0.31,0.305,9.108
Addvertex, 1.219,0.305,9.108
Addface, 0,1,3,2
generatenormals
LoadTexture, RML_Inside_Rear.png
SetTextureCoordinates, 0,0.005,0.005
SetTextureCoordinates, 1,0.995,0.005
SetTextureCoordinates, 2,0.005,0.995
SetTextureCoordinates, 3,0.995,0.995
Setdecaltransparentcolor,0,0,255

;________Cabside & Ft Pass Window_

CreateMeshBuilder
Addvertex, -0.105,2.32,0.16
Addvertex, -0.105,2.32,1.58
Addvertex, 1.219,2.32,1.58
Addvertex, -0.105,1.06,0.16
Addvertex, -0.105,1.06,1.58
Addvertex, 1.219,1.06,1.58
Addface, 0,1,4,3
Addface, 1,2,5,4
generatenormals
LoadTexture, RML_Cab_Area.png
SetTextureCoordinates, 0,0.005,0.005
SetTextureCoordinates, 1,0.5,0.005
SetTextureCoordinates, 2,0.995,0.005
SetTextureCoordinates, 3,0.005,0.995
SetTextureCoordinates, 4,0.5,0.995
SetTextureCoordinates, 5,0.995,0.995

;________Cab Area Ceiling_________

CreateMeshBuilder
Addvertex, -0.115,2.31,0.24
Addvertex, 1.152,2.31,0.24
Addvertex, -0.115,2.31,1.58
Addvertex, 1.219,2.31,1.58
Addface, 0,1,3,2
generatenormals
SetColor, 104,24,34

;________Nearside Wheels__________

CreateMeshBuilder
Addvertex, 1.129,1.22,0.2
Addvertex, 1.169,1.22,7.58
Addvertex, 1.129,0,0.2
Addvertex, 1.169,0,7.58
Addface2, 0,1,3,2
generatenormals
LoadTexture, RML_Wheels.png
SetTextureCoordinates, 0,0,0
SetTextureCoordinates, 1,1,0
SetTextureCoordinates, 2,0,1
SetTextureCoordinates, 3,1,1
Setdecaltransparentcolor,0,0,255

;________Nearside Inner Wheels____

CreateMeshBuilder
Addvertex, 0.928,1.22,0.2
Addvertex, 0.968,1.22,7.58
Addvertex, 0.928,0,0.2
Addvertex, 0.968,0,7.58
Addface2, 0,1,3,2
generatenormals
LoadTexture, RML_Wheels.png
SetTextureCoordinates, 0,0,0
SetTextureCoordinates, 1,1,0
SetTextureCoordinates, 2,0,1
SetTextureCoordinates, 3,1,1
Setdecaltransparentcolor,0,0,255

;________Offside Wheels___________

CreateMeshBuilder
Addvertex, -1.169,1.22,7.58
Addvertex, -1.129,1.22,0.2
Addvertex, -1.169,0,7.58
Addvertex, -1.129,0,0.2
Addface2, 0,1,3,2
generatenormals
LoadTexture, RML_Wheels.png
SetTextureCoordinates, 0,1,0
SetTextureCoordinates, 1,0,0
SetTextureCoordinates, 2,1,1
SetTextureCoordinates, 3,0,1
Setdecaltransparentcolor,0,0,255

;________Offside Inner Wheels_____

CreateMeshBuilder
Addvertex, -0.968,1.22,7.58
Addvertex, -0.928,1.22,0.2
Addvertex, -0.968,0,7.58
Addvertex, -0.928,0,0.2
Addface2, 0,1,3,2
generatenormals
LoadTexture, RML_Wheels.png
SetTextureCoordinates, 0,1,0
SetTextureCoordinates, 1,0,0
SetTextureCoordinates, 2,1,1
SetTextureCoordinates, 3,0,1
Setdecaltransparentcolor,0,0,255

;________Nearside Front Tyre______

CreateMeshBuilder
Addvertex, 0.919,0.6,0.6
Addvertex, 1.129,0.6,0.6
Addvertex, 0.919,0,0.9
Addvertex, 1.129,0,0.9
Addface2, 0,1,3,2
generatenormals
SetColor, 49,41,49

;________Offside Front Tyre_______

CreateMeshBuilder
Addvertex, -1.129,0.6,0.6
Addvertex, -0.919,0.6,0.6
Addvertex, -1.129,0,0.9
Addvertex, -0.919,0,0.9
Addface2, 0,1,3,2
generatenormals
SetColor, 49,41,49

;________Nearside Rear Tyre_______

CreateMeshBuilder
Addvertex, 0.959,0.6,6.72
Addvertex, 1.169,0.6,6.72
Addvertex, 0.959,0,6.72
Addvertex, 1.169,0,6.72
Addface2, 0,1,3,2
generatenormals
SetColor, 49,41,49

;________Offside Rear Tyre________

CreateMeshBuilder
Addvertex, -1.169,0.6,6.72
Addvertex, -0.959,0.6,6.72
Addvertex, -1.169,0,6.72
Addvertex, -0.959,0,6.72
Addface2, 0,1,3,2
generatenormals
SetColor, 49,41,49

;________Grille___________________

CreateMeshBuilder
Addvertex, -0.7,1.055,0.217
Addvertex, -0.61,1.055,0.07
Addvertex, 0.61,1.055,0.07
Addvertex, 0.7,1.055,0.217
Addvertex, -0.65,0.195,0.217
Addvertex, -0.56,0.195,0.07
Addvertex, 0.56,0.195,0.07
Addvertex, 0.65,0.195,0.217
Addface, 0,1,5,4
Addface, 1,2,6,5
Addface, 2,3,7,6
generatenormals
LoadTexture, RML_Grille.png
SetTextureCoordinates, 0,0.21,0.005
SetTextureCoordinates, 1,0.24,0.005
SetTextureCoordinates, 2,0.76,0.005
SetTextureCoordinates, 3,0.79,0.005
SetTextureCoordinates, 4,0.231,0.995
SetTextureCoordinates, 5,0.261,0.995
SetTextureCoordinates, 6,0.739,0.995
SetTextureCoordinates, 7,0.769,0.995
Setdecaltransparentcolor,0,0,255

;________Mudguard_________________

CreateMeshBuilder
Addvertex, 0.69,1.24,1.59
Addvertex, 1.219,1.21,1.59
Addvertex, 0.646,1.17,0.52
Addvertex, 1.175,1.14,0.52
Addvertex, 0.64,1.02,0.2
Addvertex, 0.93,0.995,0.2
Addvertex, 1.15,0.92,0.2
Addface, 0,1,3,2
Addface, 2,3,5,4
Addface, 3,6,5
generatenormals
SetColor, 110,25,40

;________Bonnet___________________

CreateMeshBuilder
Addvertex, -0.105,1.46,1.58
Addvertex, 0.86,1.41,1.58
Addvertex, -0.105,1.42,0.75
Addvertex, 0.78,1.37,0.75
Addvertex, -0.105,1.2,0.09
Addvertex, 0.62,1.17,0.09
Addvertex, 0.86,1,1.58
Addvertex, 0.8,1,0.75
Addvertex, 0.69,1.03,0.187
Addvertex, 0.61,1.03,0.07
Addvertex, -0.105,1.03,0.07
Addvertex, -0.61,1.03,0.07
Addvertex, -0.69,1.03,0.187
Addvertex, -0.62,1.17,0.09
Addvertex, -0.8,1,0.75
Addvertex, -0.78,1.37,0.75
Addface, 0,1,3,2
Addface, 2,3,5,4
Addface, 3,1,6,7
Addface, 5,3,7,8
Addface, 5,8,9
Addface, 4,5,9,10
Addface, 13,4,10,11
Addface, 13,11,12
Addface, 14,15,13,12
Addface, 15,2,4,13
generatenormals
Setcolor, 116,17,26
