;Maboloop Object BR Brakevan 
;Object and textures (copyright) Alan Hudnott May 2007
;you may use this object in bve routes provided it is 
;unmodified. Please seek permission before modifying
;Please credit Alan Hudnott.

[MeshBuilder]
cylinder 7,0.1, 0.1,1.6
color 37,26,21
rotate 0,0,1,90
translate 0,0.35,1.45

[MeshBuilder]
cylinder 7,0.1, 0.1,1.6
color 37,26,21
rotate 0,0,1,90
translate 0,0.35,5.35

[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,-1.25

[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,-1.25

;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,-1.25

[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,-1.25

;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,2.65

[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,2.65

;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,2.65

[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,2.65



;buffers

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

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

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

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

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

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

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

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







;Chassisend1
[Meshbuilder]
Vertex 1,0.7,7.01
Vertex 1,1.14,7.01
Vertex -1,1.14,7.01
Vertex -1,0.7,7.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,0.7,-0.04
Vertex 1,1.14,-0.04
Vertex -1,1.14,-0.04
Vertex -1,0.7,-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

;Chassisside1/1
[Meshbuilder]
Vertex -0.4,0,0
Vertex -0.4,1.25,0
Vertex -0.4,1.25,7
Vertex -0.4,0,7
Face2 0,1,2,3
Translate 1,0,0
[Texture]
Load 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.20,0,0
Vertex -0.20,1.25,0
Vertex -0.20,1.25,7
Vertex -0.20,0,7
Face2 0,1,2,3
translate 1,0,0
[Texture]
Load 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/3
[Meshbuilder]
Vertex -1.6,0,0
Vertex -1.6,1.25,0
Vertex -1.6,1.25,7
Vertex -1.6,0,7
Face2 0,1,2,3
translate 1,0,0
[Texture]
Load brake van chassis.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0
Transparent 0,0,255

;Chassisside2
[Meshbuilder]
Vertex -1.8,0,0
Vertex -1.8,1.25,0
Vertex -1.8,1.25,7
Vertex -1.8,0,7
Face2 0,1,2,3
translate 1,0,0
[Texture]
Load 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 0,0,7
Vertex 0,1.25,7
Vertex -2,1.25,7
Vertex -2,0,7
Face2 0,1,2,3
translate 1,0,0
[Texture]
Load brakevanchassisfront.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0
Transparent 0,0,255

;Chassisend2
[Meshbuilder]
Vertex 0,0,0
Vertex 0,1.25,0
Vertex -2,1.25,0
Vertex -2,0,0
Face 3,2,1,0
translate 1,0,0
[Texture]
Load brakevanchassisfront.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  0.95,0.13,3.5   
Translate -1 ,1.26 ,3.5 
Color 49,49,61
translate 1,0,0,

; chassisback1
[Meshbuilder]
Vertex 0,0.7,6.95
Vertex 0,1.25,6.95
Vertex -2,1.25,6.95
Vertex -2,0.7,6.95
[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,
translate 1,-0.2,0

; chassisback2
[Meshbuilder]
Vertex 0,0.7,0.1
Vertex 0,1.25,0.1
Vertex -2,1.25,0.1
Vertex -2,0.7,0.1
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 0,1.25,2
Vertex 0,3.5,2
Vertex 0,3.5,5
Vertex 0,1.25,5
Face 0,1,2,3
translate 1,0,0
[Texture]
Load b.r.brake van side.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0

;wagonside2
[Meshbuilder]
Vertex -2,1.25,2
Vertex -2,3.5,2
Vertex -2,3.5,5
Vertex -2,1.25,5
Face 3,2,1,0
translate 1,0,0
[Texture]
Load b.r.brake van side.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0

;brake van end1
[Meshbuilder]
Vertex 0,1.25,5
Vertex 0,3.7,5
Vertex -2,3.7,5
Vertex -2,1.25,5
Face 0,1,2,3
translate 1,0,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 end2
[Meshbuilder]
Vertex 0,1.25,2
Vertex 0,3.7,2
Vertex -2,3.7,2
Vertex -2,1.25,2
Face 3,2,1,0
translate 1,0,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 outer end 1
[Meshbuilder]
Vertex 0,1.25,6
Vertex 0,3.8,6
Vertex -2,3.8,6
Vertex -2,1.25,6
Face2 0,1,2,3
translate 1,0,0
[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 outer end 2

[Meshbuilder]
Vertex 0,1.25,1
Vertex 0,3.8,1
Vertex -2,3.8,1
Vertex -2,1.25,1
Face2 0,1,2,3
translate 1,0,0
[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

;end rails
[MeshBuilder]
Cube  0.06,1,0.1   
Translate 0.9,2.5,1.11 
Color 143,91,18

[MeshBuilder]
Cube  0.06,1,0.1   
Translate -0.9,2.5,1.11 
Color 143,91,18

[MeshBuilder]
Cube  0.06,1,0.1   
Translate 0.9,2.5,5.9 
Color 143,91,18

[MeshBuilder]
Cube  0.06,1,0.1   
Translate -0.9 ,2.5 ,5.9 
Color 143,91,18

;wagon roof
[meshbuilder]
vertex -2,3.5,1
vertex -1.7,3.66,1
vertex -1.7,3.66,6
vertex -2,3.5,6
vertex -1.4,3.76,1
vertex -1.4,3.76,6
vertex -1,3.81,1
vertex -1,3.81,6
vertex -0.6,3.76,1
vertex -0.6,3.76,6
vertex -0.3,3.66,1
vertex -0.3,3.66,6
vertex 0,3.5,1
vertex 0,3.5,6
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,0
Color 49,49,61
