;description= Wagon W4 livré bleu
;auteur=Jean-Yves LE FUR
;copyright=open source

[Meshbuilder]
Vertex -1.35,3.7,0
Vertex -1.35,3.7,20
Vertex -1.35,-0.2,20
Vertex -1.35,-0.2,0
Face2 3,2,1,0
[Texture]
Load W4.bmp
Coordinates 0,1,0
Coordinates 1,0,0
Coordinates 2,0,1
Coordinates 3,1,1
Transparent 0,0,255

[Meshbuilder]
Vertex -1.35,0.7,1.6
Vertex -1.35,0.7,20
Vertex -1,0.2,20
Vertex -1,0.2,1.6
Face2 3,2,1,0
[Texture]
Load CBAS3.bmp
Coordinates 0,1,0
Coordinates 1,0,0
Coordinates 2,0,1
Coordinates 3,1,1
Transparent 0,0,255

[Meshbuilder]
Vertex -0.8,0.7,0.3
Vertex -0.8,0.7,7.1
Vertex -0.8,0  ,7.1
Vertex -0.8,0  ,0.3
Face2 3,2,1,0
[Texture]
Load BOG.bmp
Coordinates 1,0,0
Coordinates 0,1,0
Coordinates 3,1,1
Coordinates 2,0,1
Transparent 0,0,255
translate 0,0,-3


[Meshbuilder]
Vertex 1.35,3.7,0
Vertex 1.35,3.7,20
Vertex 1.35,-0.2,20
Vertex 1.35,-0.2,0
Face2 0,1,2,3
[Texture]
Load W4b.bmp
Coordinates 1,1,0
Coordinates 0,0,0
Coordinates 3,0,1
Coordinates 2,1,1
Transparent 0,0,255

[Meshbuilder]
Vertex  1.35,0.7,1.6
Vertex  1.35,0.7,20
Vertex  1,0.2,20
Vertex  1,0.2,1.6
Face2 3,2,1,0
[Texture]
Load CBAS3.bmp
Coordinates 0,1,0
Coordinates 1,0,0
Coordinates 2,0,1
Coordinates 3,1,1
Transparent 0,0,255


[Meshbuilder]
Vertex 0.8,0.7,0.3
Vertex 0.8,0.7,7.1
Vertex 0.8,0  ,7.1
Vertex 0.8,0  ,0.3
Face2 0,1,2,3
[Texture]
Load BOG.bmp
Coordinates 1,0,0
Coordinates 0,1,0
Coordinates 3,1,1
Coordinates 2,0,1
Transparent 0,0,255
translate 0,0,-3

;separation
[Meshbuilder]
Vertex  -1.35,3.7, 0.4
Vertex   1.35,3.7, 0.4
Vertex   1.35,0.7   , 0.4
Vertex  -1.35,0.7   , 0.4
Face 0,1,2,3
Color 100,100,100

[Meshbuilder]
Vertex  -1.35,3.7, 19.8
Vertex   1.35,3.7, 19.8
Vertex   1.35,0.7   , 19.8
Vertex  -1.35,0.7   , 19.8
Face 3,2,1,0
Color 100,100,100

;passage
[Meshbuilder]
Cube  0.6,1.1,0.5
Color  90,90,100
Translate 0,2,19.85
[Meshbuilder]
Cube  0.6,1.1,0.5
Color  90,90,100
Translate 0,2,0.3

;toit
[Meshbuilder]
Vertex -1.35,3.7  ,0
Vertex  1.35,3.7  ,0
Vertex  1.35,3.7  ,20
Vertex -1.35,3.7  ,20
Face2 3,2,1,0
Color 100,100,100

[Meshbuilder]
Vertex -1.35,0.7  ,0.3
Vertex  1.35,0.7  ,0.3
Vertex  1.35,0.7  ,20
Vertex -1.35,0.7  ,20
Face2 3,2,1,0
color 120,120,120

;Boudins
[MeshBuilder]
Cylinder 25,0.1,0.1,2.6
Color 0,0,0,
Translate -1,2.1,0.3
[MeshBuilder]
Cylinder 25,0.1,0.1,2.6
Color 0,0,0,
Translate 1,2.1,0.3
[MeshBuilder]
Cylinder 25,0.1,0.1,1.8
Rotate 0,0,90,90,
Color 0,0,0,
Translate 0.0,3.3,0.3

[MeshBuilder]
Cylinder 25,0.1,0.1,2.6
Color 0,0,0,
Translate -1,2.1,0.1
[MeshBuilder]
Cylinder 25,0.1,0.1,2.6
Color 0,0,0,
Translate 1,2.1,0.1
[MeshBuilder]
Cylinder 25,0.1,0.1,1.8
Rotate 0,0,90,90,
Color 0,0,0,
Translate 0.0,3.3,0.1


;Boudins
[MeshBuilder]
Cylinder 25,0.1,0.1,2.6
Color 0,0,0,
Translate -1,2.1,20.1
[MeshBuilder]
Cylinder 25,0.1,0.1,2.6
Color 0,0,0,
Translate 1,2.1,20.1
[MeshBuilder]
Cylinder 25,0.1,0.1,1.8
Rotate 0,0,90,90,
Color 0,0,0,
Translate 0.0,3.3,20.1

[MeshBuilder]
Cylinder 25,0.1,0.1,2.6
Color 0,0,0,
Translate -1,2.1,19.9
[MeshBuilder]
Cylinder 25,0.1,0.1,2.6
Color 0,0,0,
Translate 1,2.1,19.9
[MeshBuilder]
Cylinder 25,0.1,0.1,1.8
Rotate 0,0,90,90,
Color 0,0,0,
Translate 0.0,3.3,19.9

;BOGGIES
;Axes1
[MeshBuilder]
Cylinder  106 ,  0.13 ,  0.13 ,  1.5
Translate  0.4, 0, -1.25
Color      66,66,66
Rotate     0,0,90,90
[MeshBuilder]
Cylinder  106 ,  0.25 ,  0.25 ,  0.5
Translate  0.4, 0, -1.25
Color      66,66,66
Rotate     0,0,90,90
[MeshBuilder]
Cylinder  106 ,  0.45 ,  0.45 ,  0.08
Translate  0.4, 0.75, -1.25
Color      66,66,66
Rotate     0,0,90,90
[MeshBuilder]
Cylinder  106 ,  0.45 ,  0.45 ,  0.08
Translate  0.4, -0.75, -1.25
Color      66,66,66
Rotate     0,0,90,90

;Axes2
[MeshBuilder]
Cylinder  106 ,  0.13 ,  0.13 ,  1.5
Translate  0.4, 0, 1.1
Color      66,66,66
Rotate     0,0,90,90
[MeshBuilder]
Cylinder  106 ,  0.25 ,  0.25 ,  0.5
Translate  0.4, 0, 1.1
Color      66,66,66
Rotate     0,0,90,90
[MeshBuilder]
Cylinder  106 ,  0.45 ,  0.45 ,  0.08
Translate  0.4, 0.75, 1.1
Color      66,66,66
Rotate     0,0,90,90
[MeshBuilder]
Cylinder  106 ,  0.45 ,  0.45 ,  0.08
Translate  0.4, -0.75, 1.1
Color      66,66,66
Rotate     0,0,90,90


;Caissons plancher
[Meshbuilder]
Cube  0.55,0.4,0.85
Color  70,70,70
Translate 0,0.85,-0.1

[Meshbuilder]
Cube  1,0.2,7.6
Color  70,70,70
Translate 0,0.45,10

;Caissons toit
[Meshbuilder]
Cube  1.15,0.2,9.5
Color  128,128,128
Translate 0,3.75,10
[Meshbuilder]
Cylinder  106 ,  0.21 ,  0.21 ,  19
Translate  1.15, -10, 3.75
Color      128,128,128
Rotate     1,0,0,-90
[Meshbuilder]
Cylinder  106 ,  0.21 ,  0.21 ,  19
Translate  -1.15, -10, 3.75
Color      128,128,128
Rotate     1,0,0,-90

[MeshBuilder]
Cylinder  16 ,  0.05 ,  0.05 ,  4
Translate  0, -2.1, 3.8
Color      66,66,66
Rotate     1,0,0,-90
[MeshBuilder]
Cylinder  16 ,  0.1 ,  0.2 ,  0.4
Translate  0, 3.9, 0.2
Color      66,66,66
Rotate     1,0,0,0

[MeshBuilder]
Cylinder  16 ,  0.05 ,  0.05 ,  4
Translate  0, -17.9, 3.8
Color      66,66,66
Rotate     1,0,0,-90
[MeshBuilder]
Cylinder  16 ,  0.1 ,  0.2 ,  0.4
Translate  0, 3.9, 19.81
Color      66,66,66
Rotate     1,0,0,0

;Tampons
[MeshBuilder]
Cylinder  16 ,  0.15 ,  0.15 ,  0.6 
Translate  0.8, 0.2, -1
Color      66,66,66
Rotate     1,0,0,90
[MeshBuilder]
Cylinder  16 ,  0.25 ,  0.25 ,  0.05
Translate  0.8, -0.1, -1
Color      66,66,66
Rotate     1,0,0,90
[MeshBuilder]
Cylinder  16 ,  0.15 ,  0.15 ,  0.6 
Translate  -0.8, 0.2, -1
Color      66,66,66
Rotate     1,0,0,90
[MeshBuilder]
Cylinder  16 ,  0.25 ,  0.25 ,  0.05
Translate  -0.8, -0.1, -1
Color      66,66,66
Rotate     1,0,0,90

;Tampons
[MeshBuilder]
Cylinder  16 ,  0.15 ,  0.15 ,  0.6 
Translate  0.8, -20, 1
Color      66,66,66
Rotate     1,0,0,-90
[MeshBuilder]
Cylinder  16 ,  0.25 ,  0.25 ,  0.05
Translate  0.8, -20.3, 1
Color      66,66,66
Rotate     1,0,0,-90
[MeshBuilder]
Cylinder  16 ,  0.15 ,  0.15 ,  0.6 
Translate  -0.8, -20, 1
Color      66,66,66
Rotate     1,0,0,-90
[MeshBuilder]
Cylinder  16 ,  0.25 ,  0.25 ,  0.05
Translate  -0.8, -20.3, 1
Color      66,66,66
Rotate     1,0,0,-90

