
;Souflet avant
CreateMeshBuilder,
Cylinder, 12, 0.12, 0.12, 2.10,
Translate, 0.60, 2.27, 12.37,
SetColor, 20, 20, 20,

CreateMeshBuilder,
Cylinder, 12, 0.12, 0.12, 2.10,
Translate,-0.60, 2.27, 12.37,
SetColor, 20, 20, 20,

CreateMeshBuilder,
Cylinder, 12, 0.12, 0.12, 1.44,
Rotate, 0,0,1,90,
Translate, 0.00, 3.32, 12.37,
SetColor, 20, 20, 20,

;Souflet arrière
CreateMeshBuilder,
Cylinder, 12, 0.12, 0.12, 2.10,
Translate, 0.60, 2.27,-12.37,
SetColor, 20, 20, 20,

CreateMeshBuilder,
Cylinder, 12, 0.12, 0.12, 2.10,
Translate,-0.60, 2.27,-12.37,
SetColor, 20, 20, 20,

CreateMeshBuilder,
Cylinder, 12, 0.12, 0.12, 1.44,
Rotate, 0,0,1,90,
Translate, 0.00, 3.32,-12.37,
SetColor, 20, 20, 20,


;----------Arrière

CreateMeshBuilder,
AddVertex,-1.39, 0.72,-12.25,
AddVertex,-1.39, 4.05,-12.25,
AddVertex, 1.39, 4.05,-12.25,
AddVertex, 1.39, 0.72,-12.25,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,uic160_2cl_f.png,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex, 1.39, 0.72,-12.07,
AddVertex, 1.39, 4.05,-12.07,
AddVertex,-1.39, 4.05,-12.07,
AddVertex,-1.39, 0.72,-12.07,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,uic160_int_f.png,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex, 1.26, 1.67,-12.12,
AddVertex, 1.39, 1.67,-12.12,
AddVertex, 1.39, 0.97,-12.12,
AddVertex, 1.26, 0.97,-12.12,
AddVertex, 1.26, 1.67,-12.25,
AddVertex, 1.26, 0.97,-12.25,
AddFace2,0,1,2,3,
AddFace2,4,0,3,5,
SetColor, 56, 77, 58,
GenerateNormals,

CreateMeshBuilder,
AddVertex,-1.39, 1.23,-11.98,
AddVertex, 1.39, 1.23,-11.98,
AddVertex, 1.39, 0.25,-11.98,
AddVertex,-1.39, 0.25,-11.98,
AddFace2,0,1,2,3,

LoadTexture,uic160_bas.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,


;----------Devant----------

CreateMeshBuilder,
AddVertex, 1.39, 0.72, 12.25,
AddVertex, 1.39, 4.05, 12.25,
AddVertex,-1.39, 4.05, 12.25,
AddVertex,-1.39, 0.72, 12.25,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,uic160_1cl_f.png,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255

CreateMeshBuilder,
AddVertex,-1.39, 0.72, 12.07,
AddVertex,-1.39, 4.05, 12.07,
AddVertex, 1.39, 4.05, 12.07,
AddVertex, 1.39, 0.72, 12.07,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,uic160_int_f.png,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex,-1.26, 1.67, 12.12,
AddVertex,-1.39, 1.67, 12.12,
AddVertex,-1.39, 0.97, 12.12,
AddVertex,-1.26, 0.97, 12.12,
AddVertex,-1.26, 1.67, 12.25,
AddVertex,-1.26, 0.97, 12.25,
AddFace2,0,1,2,3,
AddFace2,4,0,3,5,
SetColor, 56, 77, 58,
GenerateNormals,

CreateMeshBuilder,
AddVertex, 1.39, 1.23, 11.98,
AddVertex,-1.39, 1.23, 11.98,
AddVertex,-1.39, 0.25, 11.98,
AddVertex, 1.39, 0.25, 11.98,
AddFace2,0,1,2,3,
SetColor, 50, 50, 50,

LoadTexture,uic160_bas.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,


;----------Coté gauche----------

CreateMeshBuilder,
AddVertex,-1.39, 3.30, 12.25,
AddVertex,-1.39, 3.30,-12.25,
AddVertex,-1.39, 0.63,-12.25,
AddVertex,-1.39, 0.63, 12.25,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,uic160_1-2cl_g.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetDecalTransparentColor,0,0,255

;Fen gauche
CreateMeshBuilder,
AddVertex,-1.35, 3.30, 12.25,
AddVertex,-1.35, 3.30,-12.25,
AddVertex,-1.35, 0.63,-12.25,
AddVertex,-1.35, 0.63, 12.25,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,uic160_fen12.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetDecalTransparentColor,0,0,255

;Transparent gauche
CreateMeshBuilder,
AddVertex,-1.37, 3.30, 10.70,
AddVertex,-1.37, 3.30,-10.70,
AddVertex,-1.37, 1.13,-10.70,
AddVertex,-1.37, 1.13, 10.70,
AddFace2,0,1,2,3,
SetColor, 0, 0, 0, 148,
GenerateNormals,

;Portes gauche
CreateMeshBuilder,
AddVertex,-1.24, 3.30, 12.25,
AddVertex,-1.24, 3.30,-12.25,
AddVertex,-1.24, 0.63,-12.25,
AddVertex,-1.24, 0.63, 12.25,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,uic160_porte_g.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetDecalTransparentColor,0,0,255
GenerateNormals,

CreateMeshBuilder,
AddVertex,-1.34, 3.22, 11.94,
AddVertex,-1.24, 3.22, 11.94,
AddVertex,-1.24, 0.63, 11.94,
AddVertex,-1.34, 0.63, 11.94,
AddVertex,-1.24, 3.22, 11.07,
AddVertex,-1.34, 3.22, 11.07,
AddVertex,-1.34, 0.63, 11.07,
AddVertex,-1.24, 0.63, 11.07,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,uic160_rebord.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetTextureCoordinates,4, 0, 0,
SetTextureCoordinates,5, 1, 0,
SetTextureCoordinates,6, 1, 1,
SetTextureCoordinates,7, 0, 1,

CreateMeshBuilder,
AddVertex,-1.39, 3.22, 11.99,
AddVertex,-1.34, 3.22, 11.94,
AddVertex,-1.34, 0.63, 11.94,
AddVertex,-1.39, 0.63, 11.99,
AddVertex,-1.34, 3.22, 11.07,
AddVertex,-1.39, 3.22, 11.02,
AddVertex,-1.39, 0.63, 11.02,
AddVertex,-1.34, 0.63, 11.07,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,uic160_rebord.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetTextureCoordinates,4, 0, 0,
SetTextureCoordinates,5, 1, 0,
SetTextureCoordinates,6, 1, 1,
SetTextureCoordinates,7, 0, 1,

CreateMeshBuilder,
AddVertex,-1.24, 3.22, 11.07,
AddVertex,-1.24, 3.22, 11.94,
AddVertex,-1.24, 3.22, 11.94,
AddVertex,-1.39, 3.22, 11.99,
AddVertex,-1.39, 3.22, 11.02,
AddVertex,-1.34, 3.22, 11.07,
AddFace2,0,1,2,3,4,5,
SetColor, 179, 179, 179,
GenerateNormals,

CreateMeshBuilder,
AddVertex,-1.24, 3.22,-11.94,
AddVertex,-1.34, 3.22,-11.94,
AddVertex,-1.34, 0.63,-11.94,
AddVertex,-1.24, 0.63,-11.94,
AddVertex,-1.34, 3.22,-11.07,
AddVertex,-1.24, 3.22,-11.07,
AddVertex,-1.24, 0.63,-11.07,
AddVertex,-1.34, 0.63,-11.07,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,uic160_rebord.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetTextureCoordinates,4, 0, 0,
SetTextureCoordinates,5, 1, 0,
SetTextureCoordinates,6, 1, 1,
SetTextureCoordinates,7, 0, 1,

CreateMeshBuilder,
AddVertex,-1.39, 3.22,-11.99,
AddVertex,-1.34, 3.22,-11.94,
AddVertex,-1.34, 0.63,-11.94,
AddVertex,-1.39, 0.63,-11.99,
AddVertex,-1.34, 3.22,-11.07,
AddVertex,-1.39, 3.22,-11.02,
AddVertex,-1.39, 0.63,-11.02,
AddVertex,-1.34, 0.63,-11.07,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,uic160_rebord.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetTextureCoordinates,4, 0, 0,
SetTextureCoordinates,5, 1, 0,
SetTextureCoordinates,6, 1, 1,
SetTextureCoordinates,7, 0, 1,

CreateMeshBuilder,
AddVertex,-1.24, 3.22,-11.71,
AddVertex,-1.24, 3.22,-10.84,
AddVertex,-1.34, 3.22,-10.84,
AddVertex,-1.39, 3.22,-10.79,
AddVertex,-1.39, 3.22,-11.76,
AddVertex,-1.24, 3.22,-11.71,
AddFace2,0,1,2,3,4,5,
SetColor, 179, 179, 179,
GenerateNormals,

;Transparent porte gauche
CreateMeshBuilder,
AddVertex,-1.23, 3.30, 11.90,
AddVertex,-1.23, 3.30, 11.10,
AddVertex,-1.23, 1.18, 11.10,
AddVertex,-1.23, 1.18, 11.90,
AddVertex,-1.23, 3.30,-11.90,
AddVertex,-1.23, 3.30,-11.10,
AddVertex,-1.23, 1.18,-11.10,
AddVertex,-1.23, 1.18,-11.90,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
SetColor, 0, 0, 0, 128,
GenerateNormals,

;----------Coté droit----------

CreateMeshBuilder,
AddVertex,1.39, 3.30,-12.25,
AddVertex,1.39, 3.30, 12.25,
AddVertex,1.39, 0.63, 12.25,
AddVertex,1.39, 0.63,-12.25,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,uic160_1-2cl_d.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetDecalTransparentColor,0,0,255

;Fen droit
CreateMeshBuilder,
AddVertex,1.35, 3.30, 12.25,
AddVertex,1.35, 3.30,-12.25,
AddVertex,1.35, 0.63,-12.25,
AddVertex,1.35, 0.63, 12.25,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,uic160_fen12.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetDecalTransparentColor,0,0,255

;Transparent droit
CreateMeshBuilder,
AddVertex,1.37, 3.30,-10.70,
AddVertex,1.37, 3.30, 10.70,
AddVertex,1.37, 1.13, 10.70,
AddVertex,1.37, 1.13,-10.70,
AddFace2,0,1,2,3,
SetColor, 0, 0, 0, 148,
GenerateNormals,

;Portes droite
CreateMeshBuilder,
AddVertex, 1.24, 3.30,-12.25,
AddVertex, 1.24, 3.30, 12.25,
AddVertex, 1.24, 0.63, 12.25,
AddVertex, 1.24, 0.63,-12.25,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,uic160_porte_d.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetDecalTransparentColor,0,0,255

CreateMeshBuilder,
AddVertex, 1.24, 3.22, 11.94,
AddVertex, 1.34, 3.22, 11.94,
AddVertex, 1.34, 0.63, 11.94,
AddVertex, 1.24, 0.63, 11.94,
AddVertex, 1.34, 3.22, 11.07,
AddVertex, 1.24, 3.22, 11.07,
AddVertex, 1.24, 0.63, 11.07,
AddVertex, 1.34, 0.63, 11.07,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,uic160_rebord.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetTextureCoordinates,4, 0, 0,
SetTextureCoordinates,5, 1, 0,
SetTextureCoordinates,6, 1, 1,
SetTextureCoordinates,7, 0, 1,
SetDecalTransparentColor,0,0,255

CreateMeshBuilder,
AddVertex, 1.34, 3.22, 11.94,
AddVertex, 1.39, 3.22, 11.99,
AddVertex, 1.39, 0.63, 11.99,
AddVertex, 1.34, 0.63, 11.94,
AddVertex, 1.39, 3.22, 11.02,
AddVertex, 1.34, 3.22, 11.07,
AddVertex, 1.34, 0.63, 11.07,
AddVertex, 1.39, 0.63, 11.02,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,uic160_rebord.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetTextureCoordinates,4, 0, 0,
SetTextureCoordinates,5, 1, 0,
SetTextureCoordinates,6, 1, 1,
SetTextureCoordinates,7, 0, 1,
SetDecalTransparentColor,0,0,255

CreateMeshBuilder,
AddVertex, 1.24, 3.22, 11.94,
AddVertex, 1.24, 3.22, 11.07,
AddVertex, 1.34, 3.22, 11.07,
AddVertex, 1.39, 3.22, 11.02,
AddVertex, 1.39, 3.22, 11.99,
AddVertex, 1.24, 3.22, 11.94,
AddFace2,0,1,2,3,4,5,
SetColor, 179, 179, 179,
GenerateNormals,

CreateMeshBuilder,
AddVertex, 1.34, 3.22,-11.94,
AddVertex, 1.24, 3.22,-11.94,
AddVertex, 1.24, 0.63,-11.94,
AddVertex, 1.34, 0.63,-11.94,
AddVertex, 1.24, 3.22,-11.07,
AddVertex, 1.34, 3.22,-11.07,
AddVertex, 1.34, 0.63,-11.07,
AddVertex, 1.24, 0.63,-11.07,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,uic160_rebord.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetTextureCoordinates,4, 0, 0,
SetTextureCoordinates,5, 1, 0,
SetTextureCoordinates,6, 1, 1,
SetTextureCoordinates,7, 0, 1,
SetDecalTransparentColor,0,0,255

CreateMeshBuilder,
AddVertex, 1.39, 3.22,-11.99,
AddVertex, 1.34, 3.22,-11.94,
AddVertex, 1.34, 0.63,-11.94,
AddVertex, 1.39, 0.63,-11.99,
AddVertex, 1.34, 3.22,-11.07,
AddVertex, 1.39, 3.22,-11.02,
AddVertex, 1.39, 0.63,-11.02,
AddVertex, 1.34, 0.63,-11.07,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,uic160_rebord.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetTextureCoordinates,4, 0, 0,
SetTextureCoordinates,5, 1, 0,
SetTextureCoordinates,6, 1, 1,
SetTextureCoordinates,7, 0, 1,
SetDecalTransparentColor,0,0,255

CreateMeshBuilder,
AddVertex, 1.24, 3.22,-11.07,
AddVertex, 1.24, 3.22,-11.94,
AddVertex, 1.24, 3.22,-11.94,
AddVertex, 1.39, 3.22,-11.99,
AddVertex, 1.39, 3.22,-11.02,
AddVertex, 1.34, 3.22,-11.07,
AddFace2,0,1,2,3,4,5,
SetColor, 179, 179, 179,
GenerateNormals,

;Transparent porte droite
CreateMeshBuilder,
AddVertex, 1.23, 3.30, 11.90,
AddVertex, 1.23, 3.30, 11.10,
AddVertex, 1.23, 1.18, 11.10,
AddVertex, 1.23, 1.18, 11.90,
AddVertex, 1.23, 3.30,-11.90,
AddVertex, 1.23, 3.30,-11.10,
AddVertex, 1.23, 1.18,-11.10,
AddVertex, 1.23, 1.18,-11.90,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
SetColor, 0, 0, 0, 128,
GenerateNormals,

;----------Toiture ----------

CreateMeshBuilder,
AddVertex, 0.2, 4.05, 11.06,
AddVertex, 0.2, 4.05,-11.06,
AddVertex,-0.2, 4.05,-11.06,
AddVertex,-0.2, 4.05, 11.06,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,uic160_toit_plat.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 3,
SetTextureCoordinates,3, 0, 3,

CreateMeshBuilder,
AddVertex, 0.2, 3.95, 12.25,
AddVertex, 0.2, 4.05, 11.06,
AddVertex,-0.2, 4.05, 11.06,
AddVertex,-0.2, 3.95, 12.25,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,uic160_toit_plat.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,

CreateMeshBuilder,
AddVertex, 0.2, 4.05, -11.06,
AddVertex, 0.2, 3.95, -12.25,
AddVertex,-0.2, 3.95, -12.25,
AddVertex,-0.2, 4.05, -11.06,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,uic160_toit_plat.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,

CreateMeshBuilder,
AddVertex, 0.2, 4.10, 11.06,		;0
AddVertex, 0.2, 4.10, 9.76,		;1
AddVertex,-0.2, 4.10, 9.76,		;2
AddVertex,-0.2, 4.10, 11.06,		;3
AddVertex,-0.60, 4.01, 9.76,		;4
AddVertex,-0.60, 4.01, 11.06,		;5
AddVertex, 0.60, 4.01, 9.76,		;6
AddVertex, 0.60, 4.01, 11.06,		;7
AddVertex, 0.2, 4.05, 11.06,		;8
AddVertex,-0.2, 4.05, 11.06,		;9
AddVertex, 0.2, 4.05, 9.76,		;10
AddVertex,-0.2, 4.05, 9.76,		;11
AddVertex, 0.60, 3.96, 11.06,		;12
AddVertex, 0.60, 3.96, 9.76,		;13
AddVertex,-0.60, 3.96, 11.06,		;14
AddVertex,-0.60, 3.96, 9.76,		;15
AddFace2, 0,1,2,3,
AddFace2, 3,2,4,5,
AddFace2, 7,6,1,0,
AddFace2, 0,3,9,8,
AddFace2, 1,2,11,10,
AddFace2, 7,0,8,12,
AddFace2, 3,5,14,9,
AddFace2, 5,4,15,14,
AddFace2, 6,7,12,13,
AddFace2, 2,1,10,11,
AddFace2, 1,6,13,10,
AddFace2, 4,2,11,15,
SetColor, 56, 77, 58,
GenerateNormals,

CreateMeshBuilder,
AddVertex,-0.2, 4.10,-11.06,		;0
AddVertex,-0.2, 4.10,-9.76,		;1
AddVertex, 0.2, 4.10,-9.76,		;2
AddVertex, 0.2, 4.10,-11.06,		;3
AddVertex, 0.60, 4.01,-9.76,		;4
AddVertex, 0.60, 4.01,-11.06,		;5
AddVertex,-0.60, 4.01,-9.76,		;6
AddVertex,-0.60, 4.01,-11.06,		;7
AddVertex,-0.2, 4.05,-11.06,		;8
AddVertex, 0.2, 4.05,-11.06,		;9
AddVertex,-0.2, 4.05,-9.76,		;10
AddVertex, 0.2, 4.05,-9.76,		;11
AddVertex,-0.60, 3.96,-11.06,		;12
AddVertex,-0.60, 3.96,-9.76,		;13
AddVertex, 0.60, 3.96,-11.06,		;14
AddVertex, 0.60, 3.96,-9.76,		;15
AddFace2, 0,1,2,3,
AddFace2, 3,2,4,5,
AddFace2, 7,6,1,0,
AddFace2, 0,3,9,8,
AddFace2, 1,2,11,10,
AddFace2, 7,0,8,12,
AddFace2, 3,5,14,9,
AddFace2, 5,4,15,14,
AddFace2, 6,7,12,13,
AddFace2, 2,1,10,11,
AddFace2, 1,6,13,10,
AddFace2, 4,2,11,15,
SetColor, 56, 77, 58,
GenerateNormals,

;Toiture gauche

CreateMeshBuilder,
AddVertex,-0.20, 4.05, 11.06,
AddVertex,-0.20, 4.05,-11.06,
AddVertex,-0.60, 3.96,-11.06,
AddVertex,-0.60, 3.96, 11.06,
AddVertex,-1.26, 3.58,-11.06, 1.5,1,1,
AddVertex,-1.26, 3.58, 11.06, 1.5,1,1,
AddVertex,-1.39, 3.30,-11.06, -2,1,1,
AddVertex,-1.39, 3.30, 11.06, -2,1,1,
AddFace2,0,1,2,3,
AddFace2,3,2,4,5,
AddFace2,5,4,6,7,
GenerateNormals,

LoadTexture,uic160_toit.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 0.62,
SetTextureCoordinates,3, 0, 0.62,
SetTextureCoordinates,4, 0, 0.72,
SetTextureCoordinates,5, 1, 0.72,
SetTextureCoordinates,6, 0, 1,
SetTextureCoordinates,7, 1, 1,
SetDecalTransparentColor,0,0,255

CreateMeshBuilder,
AddVertex,-0.20, 3.95, 12.25,
AddVertex,-0.20, 4.05, 11.06,
AddVertex,-0.60, 3.96, 11.06,
AddVertex,-0.60, 3.86, 12.25,
AddVertex,-1.26, 3.58, 11.06, 1.5,1,1,
AddVertex,-1.26, 3.48, 12.25, 1.5,1,1,
AddVertex,-1.39, 3.30, 11.06, -2,1,1,
AddVertex,-1.39, 3.30, 12.25, -2,1,1,
AddFace2,0,1,2,3,
AddFace2,3,2,4,5,
AddFace2,5,4,6,7,
GenerateNormals,

LoadTexture,uic160_toit.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 0.62,
SetTextureCoordinates,3, 0, 0.62,
SetTextureCoordinates,4, 0, 0.72,
SetTextureCoordinates,5, 1, 0.72,
SetTextureCoordinates,6, 0, 1,
SetTextureCoordinates,7, 1, 1,

CreateMeshBuilder,
AddVertex,-0.20, 4.05,-11.06,
AddVertex,-0.20, 3.95,-12.25,
AddVertex,-0.60, 3.86,-12.25,
AddVertex,-0.60, 3.96,-11.06,
AddVertex,-1.26, 3.58,-11.06, 1.5,1,1,
AddVertex,-1.26, 3.48,-12.25, 1.5,1,1,
AddVertex,-1.39, 3.30,-11.06, -2,1,1,
AddVertex,-1.39, 3.30,-12.25, -2,1,1,
AddFace2,0,1,2,3,
AddFace2,3,2,5,4,
AddFace2,4,5,7,6,
GenerateNormals,

LoadTexture,uic160_toit.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 0.62,
SetTextureCoordinates,3, 0, 0.62,
SetTextureCoordinates,4, 0, 0.72,
SetTextureCoordinates,5, 1, 0.72,
SetTextureCoordinates,6, 0, 1,
SetTextureCoordinates,7, 1, 1,

;Toiture droite

CreateMeshBuilder,
AddVertex,0.20, 4.05, 11.06,
AddVertex,0.20, 4.05,-11.06,
AddVertex,0.60, 3.96,-11.06,
AddVertex,0.60, 3.96, 11.06,
AddVertex,1.26, 3.58, 11.06, 1.5,1,1,
AddVertex,1.26, 3.58,-11.06, 1.5,1,1,
AddVertex,1.39, 3.30, 11.06, -2,1,1,
AddVertex,1.39, 3.30,-11.06, -2,1,1,
AddFace2,3,2,1,0,
AddFace2,4,5,2,3,
AddFace2,6,7,5,4,
GenerateNormals,

LoadTexture,uic160_toit.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 0.62,
SetTextureCoordinates,3, 0, 0.62,
SetTextureCoordinates,4, 0, 0.72,
SetTextureCoordinates,5, 1, 0.72,
SetTextureCoordinates,6, 0, 1,
SetTextureCoordinates,7, 1, 1,

CreateMeshBuilder,
AddVertex,0.20, 3.95, 12.25,
AddVertex,0.20, 4.05, 11.06,
AddVertex,0.60, 3.96, 11.06,
AddVertex,0.60, 3.86, 12.25,
AddVertex,1.26, 3.48, 12.25, 1.5,1,1,
AddVertex,1.26, 3.58, 11.06, 1.5,1,1,
AddVertex,1.39, 3.30, 12.25, -2,1,1,
AddVertex,1.39, 3.30, 11.06, -2,1,1,
AddFace2,3,2,1,0,
AddFace2,4,5,2,3,
AddFace2,6,7,5,4,
GenerateNormals,

LoadTexture,uic160_toit.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 0.62,
SetTextureCoordinates,3, 0, 0.62,
SetTextureCoordinates,4, 0, 0.72,
SetTextureCoordinates,5, 1, 0.72,
SetTextureCoordinates,6, 0, 1,
SetTextureCoordinates,7, 1, 1,

CreateMeshBuilder,
AddVertex,0.20, 4.05, -11.06,
AddVertex,0.20, 3.95, -12.25,
AddVertex,0.60, 3.86, -12.25,
AddVertex,0.60, 3.96, -11.06,
AddVertex,1.26, 3.58, -11.06, 1.5,1,1,
AddVertex,1.26, 3.48, -12.25, 1.5,1,1,
AddVertex,1.39, 3.30, -11.06, -2,1,1,
AddVertex,1.39, 3.30, -12.25, -2,1,1,
AddFace2,3,2,1,0,
AddFace2,4,5,2,3,
AddFace2,6,7,5,4,
GenerateNormals,

LoadTexture,uic160_toit.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 0.62,
SetTextureCoordinates,3, 0, 0.62,
SetTextureCoordinates,4, 0, 0.72,
SetTextureCoordinates,5, 1, 0.72,
SetTextureCoordinates,6, 0, 1,
SetTextureCoordinates,7, 1, 1,

CreateMeshBuilder,
cylinder, 12, 0.05, 0.05, 0.10,
Translate, 0, 4.08, 2.16
SetColor,56, 77, 58,

CreateMeshBuilder,
cylinder, 14, 0.14, 0.14, 0.10,
Translate, 0, 4.18, 2.16
SetColor,56, 77, 58,

CreateMeshBuilder,
cylinder, 12, 0.05, 0.05, 0.10,
Translate, 0, 4.08, 4.73
SetColor,56, 77, 58,

CreateMeshBuilder,
cylinder, 14, 0.14, 0.14, 0.10,
Translate, 0, 4.18, 4.73
SetColor,56, 77, 58,


;----------Sol----------

CreateMeshBuilder,
AddVertex,-1.38, 1.18,-11.02,
AddVertex,-1.38, 1.18, 11.02,
AddVertex, 1.38, 1.18, 11.02,
AddVertex, 1.38, 1.18,-11.02,
AddFace2,0,1,2,3,
;SetColor,0,0,0,

LoadTexture,sol_1cl.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 18, 0,
SetTextureCoordinates,2, 18, 2,
SetTextureCoordinates,3, 0, 2,

;Plafond

CreateMeshBuilder,
AddVertex,-1.38, 3.30,-12.22,
AddVertex,-1.38, 3.30, 12.22,
AddVertex, 1.38, 3.30, 12.22,
AddVertex, 1.38, 3.30,-12.22,
AddFace2,0,1,2,3,
SetColor,100,100,100,

;Essieux gauche
CreateMeshBuilder,
AddVertex,-0.80, 0.00, 10.48,
AddVertex,-0.80, 0.90, 10.48,
AddVertex,-0.80, 0.90, 6.78,
AddVertex,-0.80, 0.00, 6.78,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,uic160_essieux.png,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,192,192,192

CreateMeshBuilder,
AddVertex,-0.80, 0.00,-6.78,
AddVertex,-0.80, 0.90,-6.78,
AddVertex,-0.80, 0.90,-10.48,
AddVertex,-0.80, 0.00,-10.48,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,uic160_essieux.png,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,192,192,192


;Essieux droite
CreateMeshBuilder,
AddVertex, 0.80, 0.00, 6.78,
AddVertex, 0.80, 0.90, 6.78,
AddVertex, 0.80, 0.90, 10.48,
AddVertex, 0.80, 0.00, 10.48,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,uic160_essieux.png,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,192,192,192

CreateMeshBuilder,
AddVertex, 0.80, 0.00,-10.48,
AddVertex, 0.80, 0.90,-10.48,
AddVertex, 0.80, 0.90,-6.78,
AddVertex, 0.80, 0.00,-6.78,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,uic160_essieux.png,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,192,192,192


CreateMeshBuilder,
AddVertex, 1.351, 0.34, 12.25,
AddVertex, 1.351, 1.13, 12.25,
AddVertex, 1.351, 1.13,-12.25,
AddVertex, 1.351, 0.34,-12.25,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,uic160_caisse.png,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255

CreateMeshBuilder,
Cube, 0.39, 0.36, 0.92
Translate, 0.96, 0.77,-5.74
SetColor, 17, 7, 1

CreateMeshBuilder,
Cube, 0.39, 0.36, 0.71
Translate, 0.96, 0.77,-0.36
SetColor, 13, 7, 17

CreateMeshBuilder,
Cube, 0.56, 0.39, 0.96
Translate, 0.79, 0.74, 2.32
SetColor, 17, 7, 1

CreateMeshBuilder,
Cube, 0.39, 0.36, 0.53
Translate, 0.96, 0.77, 5.69
SetColor, 17, 7, 1

;Couplings


;-----------Heurtoirs----------,

;Avant gauche,
CreateMeshBuilder,
cylinder, 12, 0.12, 0.12, 0.28,
rotate, 1, 0, 0, 90,
translate,-0.80, 1.05, 12.12,
SetColor, 76, 76, 76,
GenerateNormals,

CreateMeshBuilder,
cylinder, 10, 0.10, 0.10, 0.20,
rotate, 1, 0, 0, 90,
translate,-0.80, 1.05, 12.36,
SetColor, 66, 66, 66,
GenerateNormals,

CreateMeshBuilder,
cylinder, 20, 0.18, 0.18, 0.02,
rotate,1,0,0,90,
translate,-0.89, 1.05, 12.47,
SetColor, 166, 166, 166,
GenerateNormals,

CreateMeshBuilder,
Cube, 0.18, 0.01, 0.18,
Rotate, 1, 0, 0, 90,
Translate,-0.71, 1.05, 12.47,
SetColor, 166, 166, 166,

;Avant droite,
CreateMeshBuilder,
cylinder, 10, 0.12, 0.12, 0.28,
rotate, 1, 0, 0, 90,
translate, 0.80, 1.05, 12.12,
SetColor, 76, 76, 76,
GenerateNormals,

CreateMeshBuilder,
cylinder,10, 0.10, 0.10, 0.20,
rotate, 1, 0, 0, 90,
translate, 0.80,1.05, 12.36,
SetColor, 66, 66, 66,
GenerateNormals,

CreateMeshBuilder,
cylinder, 20, 0.18, 0.18, 0.02,
rotate, 1, 0, 0,90,
translate, 0.89, 1.05, 12.47,
SetColor, 166, 166, 166,
GenerateNormals,

CreateMeshBuilder,
Cube, 0.18, 0.01, 0.18,
Rotate, 1, 0, 0, 90,
Translate, 0.71, 1.05, 12.47,
SetColor, 166, 166, 166,

;Arrière gauche,
CreateMeshBuilder,
cylinder, 10, 0.12, 0.12, 0.28,
rotate,1,0,0,90,
translate,-0.80, 1.05,-12.12,
SetColor, 76, 76, 76,
GenerateNormals,

CreateMeshBuilder,
cylinder, 10, 0.10, 0.10, 0.2,
rotate,1,0,0,90,
translate,-0.80, 1.05,-12.36,
SetColor, 66, 66, 66,
GenerateNormals,

CreateMeshBuilder,
cylinder, 20, 0.18, 0.18, 0.02,
rotate, 1, 0, 0, 90,
translate,-0.89, 1.05,-12.47,
SetColor, 166, 166, 166,
GenerateNormals,

CreateMeshBuilder,
Cube, 0.18, 0.01, 0.18,
Rotate, 1, 0, 0, 90,
Translate,-0.71, 1.05,-12.47,
SetColor, 166, 166, 166,

;Arrière droite
CreateMeshBuilder,
cylinder, 10, 0.12, 0.12, 0.28,
rotate, 1, 0, 0, 90,
translate, 0.80, 1.05,-12.12,
SetColor, 76, 76, 76,
GenerateNormals,

CreateMeshBuilder,
cylinder, 10, 0.10, 0.10, 0.20,
rotate, 1, 0, 0, 90,
translate, 0.80, 1.05,-12.36,
SetColor, 66, 66, 66,
GenerateNormals,

CreateMeshBuilder,
cylinder, 30, 0.18, 0.18, 0.02,
rotate, 1, 0, 0, 90,
translate, 0.89, 1.05,-12.47,
SetColor, 166, 166, 166,
GenerateNormals,

CreateMeshBuilder,
Cube, 0.18, 0.01, 0.18,
Rotate, 1, 0, 0, 90,
Translate, 0.71, 1.05,-12.47,
SetColor, 166, 166, 166,

