;Maboloop Object Queen Mary Brakevan 
;Object and textures (copyright) Alan Hudnott May 2011
;you may use this object in bve routes provided it is 
;unmodified. Please seek permission before modifying
;Please credit Alan Hudnott.
;Bogie coding by Graymac/BWR, email info@graymacimage.com ,




;Chassisside1/1
[Meshbuilder]
Vertex 1.2,0.4,0
Vertex 1.2,1.35,0
Vertex 1.2,1.35,12
Vertex 1.2,0.4,12
Face2 0,1,2,3
[Texture]
Load s.r.brake van chassis.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0
Transparent 0,0,255

;Chassisside1/2
[Meshbuilder]
Vertex 0.99,0,0
Vertex 0.99,1.25,0
Vertex 0.99,1.25,12
Vertex 0.99,0,12
Face2 0,1,2,3
[Texture]
Load s.r.brake van chassis1.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0
Transparent 0,0,255

;Chassisside1/3
[Meshbuilder]
Vertex -0.99,0,0
Vertex -0.99,1.25,0
Vertex -0.99,1.25,12
Vertex -0.99,0,12
Face2 0,1,2,3
[Texture]
Load s.r.brake van chassis1.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0
Transparent 0,0,255

;Chassisside1/4
[Meshbuilder]
Vertex -1.01,0,0
Vertex -1.01,1.25,0
Vertex -1.01,1.25,12
Vertex -1.01,0,12
Face2 0,1,2,3
[Texture]
Load s.r.brake van chassis.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0
Transparent 0,0,255

;Chassisend1
[Meshbuilder]
Vertex 1.2,0.9,12.01
Vertex 1.2,1.34,12.01
Vertex -1.2,1.34,12.01
Vertex -1.2,0.9,12.01
Face2 0,1,2,3


[Texture]
Load bufferbeam1.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0
Transparent 0,0,255

;Chassisend2
[Meshbuilder]
Vertex 1.2,0.9,-0.04
Vertex 1.2,1.34,-0.04
Vertex -1.2,1.34,-0.04
Vertex -1.2,0.9,-0.04
Face 3,2,1,0
[Texture]
Load bufferbeam1.png
Coordinates 0,0,0,
Coordinates 1,0,1,
Coordinates 2,1,1,
Coordinates 3,1,0,
Transparent 0,0,255

;chassis floor
[MeshBuilder]
Cube  1.2,0.12,6.03   
translate 0,1.4,6
Color 49,49,61



; chassisback1
[Meshbuilder]
Vertex 1,1,11.9
Vertex 1,1.38,11.9
Vertex -1,1.38,11.9
Vertex -1,1,11.9
[Texture]
face2 0,1,2,3
Load chassisback.png
Coordinates 0,0,0,
Coordinates 1,0,1,
Coordinates 2,1,1,
Coordinates 3,1,0,



; chassisback2
[Meshbuilder]
Vertex 0,1,0
Vertex 0,1.38,0
Vertex -2,1.38,0
Vertex -2,1,0
face2 0,1,2,3
[Texture]
Load chassisback.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0
translate 1,-0.2,0

;body starts here

;wagonside1
[Meshbuilder]
Vertex 1.21,1.33,1.5
Vertex 1.21,3.38,1.5
Vertex 1.21,3.38,10.25
Vertex 1.21,1.33,10.25
Face2 0,1,2,3
[Texture]
Load brake van side1.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0
transparent 0,0,255

;wagonside2
[Meshbuilder]
Vertex -1.21,1.33,1.5
Vertex -1.21,3.38,1.5
Vertex -1.21,3.38,10.25
Vertex -1.21,1.33,10.25
Face2 3,2,1,0
[Texture]
Load brake van side1.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0
transparent 0,0,255

;brake van  end 1

[Meshbuilder]
Vertex 1.2,1.25,1.49
Vertex 1.2,3.62,1.49
Vertex -1.2,3.62,1.49
Vertex -1.2,1.25,1.49
Face2 0,1,2,3
[Texture]
Load brake van end1.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0
Transparent 0,0,255


;brake van  end 2
[Meshbuilder]
Vertex 1.2,1.25,4.06
Vertex 1.2,3.59,4.06
Vertex -1.2,3.59,4.06
Vertex -1.2,1.25,4.06
Face2 0,1,2,3
[Texture]
Load brake van end.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0
transparent 0,0,255

;brake van  end 3
[Meshbuilder]
Vertex 1.2,1.25,7.86
Vertex 1.2,3.59,7.86
Vertex -1.2,3.59,7.86
Vertex -1.2,1.25,7.86
Face2 3,2,1,0
[Texture]
Load brake van end.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0
Transparent 0,0,255

;brake van  end 4
[Meshbuilder]
Vertex 1.2,1.25,10.25
Vertex 1.2,3.62,10.25
Vertex -1.2,3.62,10.25
Vertex -1.2,1.25,10.25
Face2 0,1,2,3
[Texture]
Load brake van end1.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0
Transparent 0,0,255





;wagon roof
[meshbuilder]
vertex -2.2,3.32,1.48
vertex -1.7,3.49,1.48
vertex -1.7,3.49,10.25
vertex -2.2,3.32,10.25
vertex -1.4,3.56,1.48
vertex -1.4,3.56,10.25
vertex -1,3.61,1.48
vertex -1,3.61,10.25
vertex -0.6,3.56,1.48
vertex -0.6,3.56,10.25
vertex -0.3,3.49,1.48
vertex -0.3,3.49,10.25
vertex 0.2,3.32,1.48
vertex 0.2,3.32,10.25
face2 0,1,2,3
face2 1,4,5,2
face2 4,6,7,5
face2 6,8,9,7
face2 8,10,11,9
face2 10,12,13,11
translate 1,0.05,0
color 43,44,45



;sandbox front
[Meshbuilder]
Vertex -0.75,1.25,1.15
Vertex -0.75,2.3,1.15
Vertex 0.75,2.3,1.15
Vertex 0.75,1.25,1.15
Face2 0,1,2,3
[Texture]
Load sandboxfront.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0
Transparent 0,0,255

[Meshbuilder]
Vertex -0.75,1.25,1.15
Vertex -0.75,2.3,1.15
Vertex -0.75,2.46,1.5
Vertex -0.75,1.25,1.5
Face2 0,1,2,3
Color 124,95,100

[Meshbuilder]
Vertex 0.75,1.25,1.15
Vertex 0.75,2.3,1.15
Vertex 0.75,2.46,1.5
Vertex 0.75,1.25,1.5
Face2 0,1,2,3
Color 124,95,100

[MeshBuilder]
vertex 0.75, 2.3, 1.14
vertex -0.75, 2.3, 1.14
vertex -0.75, 2.48, 1.55
vertex 0.75, 2.48, 1.55
face2 0,1,2,3
Color 124,95,100

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[Meshbuilder]
Vertex -0.75,1.25,10.6
Vertex -0.75,2.3,10.6
Vertex 0.75,2.3,10.6
Vertex 0.75,1.25,10.6
Face2 0,1,2,3
[Texture]
Load sandboxfront.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0
Transparent 0,0,255

[Meshbuilder]
Vertex -0.75,1.25,10.15
Vertex -0.75,2.46,10.15
Vertex -0.75,2.3,10.6
Vertex -0.75,1.25,10.6
Face2 0,1,2,3
Color 124,95,100

[Meshbuilder]
Vertex 0.75,1.25,10.15
Vertex 0.75,2.46,10.15
Vertex 0.75,2.3,10.6
Vertex 0.75,1.25,10.6
Face2 0,1,2,3
Color 124,95,100

[MeshBuilder]
vertex 0.75, 2.48, 10.18
vertex -0.75, 2.48, 10.18
vertex -0.75, 2.3, 10.6
vertex 0.75, 2.3, 10.6
face2 0,1,2,3
Color 124,95,100

[meshbuilder]
cylinder 12,0.08,0.08,0.30
rotate 0,0,0,90,
translate -0.7,1.15,-0.15,
color 43,44,45

[meshbuilder]
cylinder 18,0.25,0.25,0.01
rotate 0,0,0,90,
translate -0.7,1.15,-0.3
color 43,44,45

[meshbuilder]
cylinder 12,0.08,0.08,0.30
rotate 0,0,0,90,
translate 0.7,1.15,-0.15,
color 43,44,45

[meshbuilder]
cylinder 18,0.25,0.25,0.01
rotate 0,0,0,90,
translate 0.7,1.15,-0.3,
color 43,44,45





[meshbuilder]
cylinder 12,0.08,0.08,0.30
rotate 0,0,0,90,
translate -0.7,1.15,12.1,
color 43,44,45

[meshbuilder]
cylinder 12,0.08,0.08,0.30
rotate 0,0,0,90,
translate 0.7,1.15,12.1,
color 43,44,45

[meshbuilder]
cylinder 18,0.25,0.25,0.01
rotate 0,0,0,90,
translate 0.7,1.15,12.25,
color 43,44,45

[meshbuilder]
cylinder 18,0.25,0.25,0.01
rotate 0,0,0,90,
translate -0.7,1.15,12.25
color 43,44,45

;bogie 1

[MeshBuilder]
vertex -0.9,0.1,0.2
vertex -0.9,0.1,4.2
vertex -0.9,0.95,0.2
vertex -0.9,0.95,4.2
vertex 0.9,0.95,0.2
vertex 0.9,0.95,4.2
vertex 0.9,0.1,0.2
vertex 0.9,0.1,4.2
face 0,1,3,2
face 2,3,1,0
face 2,3,5,4
face 4,5,7,6
face 6,7,5,4
[Texture]
Load s.r.brake van bogie.png
coordinates 0,0,0
coordinates 1,1,0
coordinates 2,0,0.285
coordinates 3,1,0.285
coordinates 4,0,0.715
coordinates 5,1,0.715
coordinates 6,0,1
coordinates 7,1,1
transparent 0,0,255

[MeshBuilder]
vertex -0.90,0.75,0.4
vertex 0.90,0.75,0.4
vertex 0.90,0.46,0.4
vertex -0.90,0.46,0.4
face 0,1,2,3
face 3,2,1,0
color 37,26,21

[MeshBuilder]
vertex -0.90,0.75,4
vertex 0.90,0.75,4
vertex 0.90,0.46,4
vertex -0.90,0.46,4
face 0,1,2,3
face 3,2,1,0
color 37,26,21

;axle

[MeshBuilder]
cylinder 7,0.1, 0.1,1.79
color 37,26,21
rotate 0,0,1,90
translate 0,0.45,8.45

[MeshBuilder]
cylinder 7,0.1, 0.1,1.79
color 37,26,21
rotate 0,0,1,90
translate 0,0.45,10.75

[MeshBuilder]
cylinder 7,0.3, 0.3,0.4
color 37,26,21
translate 0,1,9.6


;bogie 2

[MeshBuilder]
vertex -0.9,0.1,7.6
vertex -0.9,0.1,11.6
vertex -0.9,0.95,7.6
vertex -0.9,0.95,11.6
vertex 0.9,0.95,7.6
vertex 0.9,0.95,11.6
vertex 0.9,0.1,7.6
vertex 0.9,0.1,11.6
face 0,1,3,2
face 2,3,1,0
face 2,3,5,4
face 4,5,7,6
face 6,7,5,4
[Texture]
Load s.r.brake van bogie.png
coordinates 0,0,0
coordinates 1,1,0
coordinates 2,0,0.285
coordinates 3,1,0.285
coordinates 4,0,0.715
coordinates 5,1,0.715
coordinates 6,0,1
coordinates 7,1,1
transparent 0,0,255

[MeshBuilder]
vertex -0.90,0.85,7.8
vertex 0.90,0.85,7.8
vertex 0.90,0.46,7.8
vertex -0.90,0.46,7.8
face 0,1,2,3
face 3,2,1,0
color 37,26,21

[MeshBuilder]
vertex -0.90,0.85,11.4
vertex 0.90,0.85,11.4
vertex 0.90,0.46,11.4
vertex -0.90,0.46,11.4
face 0,1,2,3
face 3,2,1,0
color 37,26,21

;bogie 2
;axles
[MeshBuilder]
cylinder 7,0.1, 0.1,1.79
color 37,26,21
rotate 0,0,1,90
translate 0,0.45,3.35


[MeshBuilder]
cylinder 7,0.1, 0.1,1.79
color 37,26,21
rotate 0,0,1,90
translate 0,0.45,1.1

[MeshBuilder]
cylinder 7,0.3, 0.3,0.4
color 37,26,21
translate 0,1,2.2

;wheels & axles______________________,
;Front bogie.
;left wheel

[MeshBuilder] 
cylinder 120,0.41,0.42,0.095
rotate 0,0,90,90
translate -0.715,0.34,2.73
Color 56,56,56
translate 0,0,8

[MeshBuilder] 
cylinder 120,0.47,0.47,0.025
rotate  0,0,90,90
translate -0.655,0.34,2.73
Color 72,72,72
translate 0,0,8

;right wheel

[MeshBuilder]  
cylinder 120,0.41,0.42,0.095
rotate  0,0,90,90
translate 0.715,0.34,2.73
Color 56,56,56
translate 0,0,8

[MeshBuilder] 
cylinder 120,0.47,0.47,0.025
rotate  0,0,90,90
translate 0.655,0.34,2.73
Color 72,72,72
translate 0,0,8

;trailing axle

;left wheel

[MeshBuilder]  
cylinder 120,0.41,0.42,0.095
rotate  0,0,90,90
translate -0.715,0.34,8.46
Color 56,56,56

[MeshBuilder] 
cylinder 120,0.47,0.47,0.025
rotate  0,0,90,90
translate -0.655,0.34,8.46
Color 72,72,72

;right wheel

[MeshBuilder] 
cylinder 120,0.41,0.42,0.095
rotate  0,0,90,90
translate 0.715,0.34,8.46
Color 56,56,56

[MeshBuilder] 
cylinder 120,0.47,0.47,0.025
rotate  0,0,90,90
translate 0.655,0.34,8.46
Color 72,72,72

;Rear bogie

;left wheel

[MeshBuilder]  
cylinder 120,0.41,0.42,0.095
rotate  0,0,90,90
translate -0.715,0.34,3.3
Color 56,56,56


[MeshBuilder] 
cylinder 120,0.47,0.47,0.025
rotate  0,0,90,90
translate -0.655,0.34,3.3
Color 72,72,72


;right wheel

[MeshBuilder]  
cylinder 120,0.41,0.42,0.095
rotate  0,0,90,90
translate 0.715,0.34,3.3
Color 56,56,56


[MeshBuilder] 
cylinder 120,0.47,0.47,0.025
rotate  0,0,90,90
translate 0.655,0.34,3.3
Color 72,72,72


;trailing axle

;left wheel

[MeshBuilder]  
cylinder 120,0.41,0.42,0.095
rotate  0,0,90,90
translate -0.715,0.34,1.1
Color 56,56,56

[MeshBuilder]  
cylinder 120,0.47,0.47,0.025
rotate  0,0,90,90
translate -0.655,0.34,1.1
Color 72,72,72

;right wheel

[MeshBuilder]  
cylinder 120,0.41,0.42,0.095
rotate  0,0,90,90
translate 0.715,0.34,1.1
Color 56,56,56

[MeshBuilder] 
cylinder 120,0.47,0.47,0.025
rotate  0,0,90,90
translate 0.655,0.34,1.1
Color 72,72,72

;chimney
[MeshBuilder]
cylinder 7,0.075, 0.075,0.4
color 72,72,72
translate 0.65,3.6,5

