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

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

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

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

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

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


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

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

LoadTexture,usi_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, 1.23,-12.37,
AddVertex, 1.39, 1.23,-12.37,
AddVertex, 1.39, 0.25,-12.37,
AddVertex,-1.39, 0.25,-12.37,
AddFace2,0,1,2,3,

LoadTexture,usi_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.55,
AddVertex, 1.39, 4.05, 12.55,
AddVertex,-1.39, 4.05, 12.55,
AddVertex,-1.39, 0.72, 12.55,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,usi_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, 1.23, 12.37,
AddVertex,-1.39, 1.23, 12.37,
AddVertex,-1.39, 0.25, 12.37,
AddVertex, 1.39, 0.25, 12.37,
AddFace2,0,1,2,3,
SetColor, 50, 50, 50,

LoadTexture,usi_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.55,
AddVertex,-1.39, 3.30,-12.55,
AddVertex,-1.39, 0.63,-12.55,
AddVertex,-1.39, 0.63, 12.55,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,usi_1cl_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.55,
AddVertex,-1.35, 3.30,-12.55,
AddVertex,-1.35, 1.13,-12.55,
AddVertex,-1.35, 1.13, 12.55,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,usi_fen_g.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, 9.63,
AddVertex,-1.37, 3.30,-9.63,
AddVertex,-1.37, 1.13,-9.63,
AddVertex,-1.37, 1.13, 9.63,
AddVertex,-1.37, 3.30, 11.83,
AddVertex,-1.37, 3.30, 11.19,
AddVertex,-1.37, 1.13, 11.19,
AddVertex,-1.37, 1.13, 11.83,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
SetColor, 0, 0, 0, 148,
GenerateNormals,

;Portes gauche
CreateMeshBuilder,
AddVertex,-1.24, 3.30, 12.55,
AddVertex,-1.24, 3.30,-12.55,
AddVertex,-1.24, 1.13,-12.55,
AddVertex,-1.24, 1.13, 12.55,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,usi_portes_1.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.33, 3.22, 10.97,
AddVertex,-1.24, 3.22, 10.97,
AddVertex,-1.24, 0.63, 10.97,
AddVertex,-1.33, 0.63, 10.97,
AddVertex,-1.24, 3.22, 10.03,
AddVertex,-1.33, 3.22, 10.03,
AddVertex,-1.33, 0.63, 10.03,
AddVertex,-1.24, 0.63, 10.03,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,usi_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.330, 3.22, 10.97,
AddVertex,-1.391, 3.22, 11.03,
AddVertex,-1.391, 0.63, 11.03,
AddVertex,-1.330, 0.63, 10.97,
AddVertex,-1.391, 3.22, 9.97,
AddVertex,-1.330, 3.22, 10.03,
AddVertex,-1.330, 0.63, 10.03,
AddVertex,-1.391, 0.63, 9.97,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,usi_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.12, 10.03,
AddVertex,-1.24, 3.12, 10.97,
AddVertex,-1.33, 3.12, 10.97,
AddVertex,-1.39, 3.12, 11.03,
AddVertex,-1.39, 3.12, 9.97,
AddVertex,-1.33, 3.12, 10.03,
AddFace2,0,1,2,3,4,5,
SetColor, 56, 77, 58,
GenerateNormals,

CreateMeshBuilder,
AddVertex,-1.24, 3.22,-10.97,
AddVertex,-1.33, 3.22,-10.97,
AddVertex,-1.33, 0.63,-10.97,
AddVertex,-1.24, 0.63,-10.97,
AddVertex,-1.33, 3.22,-10.03,
AddVertex,-1.24, 3.22,-10.03,
AddVertex,-1.24, 0.63,-10.03,
AddVertex,-1.33, 0.63,-10.03,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,usi_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.03,
AddVertex,-1.33, 3.22,-10.97,
AddVertex,-1.33, 0.63,-10.97,
AddVertex,-1.39, 0.63,-11.03,
AddVertex,-1.33, 3.22,-10.03,
AddVertex,-1.39, 3.22,-9.97,
AddVertex,-1.39, 0.63,-9.97,
AddVertex,-1.33, 0.63,-10.03,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,usi_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.12,-10.97,
AddVertex,-1.24, 3.12,-10.03,
AddVertex,-1.33, 3.12,-10.03,
AddVertex,-1.39, 3.12,-9.97,
AddVertex,-1.39, 3.12,-11.03,
AddVertex,-1.33, 3.12,-10.97,
AddFace2,0,1,2,3,4,5,
SetColor, 56, 77, 58,
GenerateNormals,

;Transparent porte gauche
CreateMeshBuilder,
AddVertex,-1.23, 3.30, 10.97,
AddVertex,-1.23, 3.30, 10.03,
AddVertex,-1.23, 1.18, 10.03,
AddVertex,-1.23, 1.18, 10.97,
AddVertex,-1.23, 3.30,-10.97,
AddVertex,-1.23, 3.30,-10.03,
AddVertex,-1.23, 1.18,-10.03,
AddVertex,-1.23, 1.18,-10.97,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
SetColor, 0, 0, 0, 148,
GenerateNormals,

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

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

LoadTexture,usi_1cl_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.55,
AddVertex,1.35, 3.30,-12.55,
AddVertex,1.35, 1.13,-12.55,
AddVertex,1.35, 1.13, 12.55,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,usi_fen_g.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,-9.63,
AddVertex,1.37, 3.30, 9.63,
AddVertex,1.37, 1.13, 9.63,
AddVertex,1.37, 1.13,-9.63,
AddVertex,1.37, 3.30,-11.83,
AddVertex,1.37, 3.30,-11.19,
AddVertex,1.37, 1.13,-11.19,
AddVertex,1.37, 1.13,-11.83,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
SetColor, 0, 0, 0, 148,
GenerateNormals,

;Portes droite
CreateMeshBuilder,
AddVertex, 1.24, 3.30, 12.55,
AddVertex, 1.24, 3.30,-12.55,
AddVertex, 1.24, 1.13,-12.55,
AddVertex, 1.24, 1.13, 12.55,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,usi_portes_1.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, 10.97,
AddVertex, 1.33, 3.22, 10.97,
AddVertex, 1.33, 0.63, 10.97,
AddVertex, 1.24, 0.63, 10.97,
AddVertex, 1.33, 3.22, 10.03,
AddVertex, 1.24, 3.22, 10.03,
AddVertex, 1.24, 0.63, 10.03,
AddVertex, 1.33, 0.63, 10.03,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,usi_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.33, 3.22, 10.97,
AddVertex, 1.39, 3.22, 11.03,
AddVertex, 1.39, 0.63, 11.03,
AddVertex, 1.33, 0.63, 10.97,
AddVertex, 1.39, 3.22, 9.97,
AddVertex, 1.33, 3.22, 10.03,
AddVertex, 1.33, 0.63, 10.03,
AddVertex, 1.39, 0.63, 9.97,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,usi_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.12, 10.97,
AddVertex, 1.24, 3.12, 10.03,
AddVertex, 1.33, 3.12, 10.03,
AddVertex, 1.39, 3.12, 9.97,
AddVertex, 1.39, 3.12, 11.03,
AddVertex, 1.33, 3.12, 10.97,
AddFace2,0,1,2,3,4,5,
SetColor, 56, 77, 58,
GenerateNormals,

CreateMeshBuilder,
AddVertex, 1.33, 3.22,-10.97,
AddVertex, 1.24, 3.22,-10.97,
AddVertex, 1.24, 0.63,-10.97,
AddVertex, 1.33, 0.63,-10.97,
AddVertex, 1.24, 3.22,-10.03,
AddVertex, 1.33, 3.22,-10.03,
AddVertex, 1.33, 0.63,-10.03,
AddVertex, 1.24, 0.63,-10.03,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,usi_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.03,
AddVertex, 1.33, 3.22,-10.97,
AddVertex, 1.33, 0.63,-10.97,
AddVertex, 1.39, 0.63,-11.03,
AddVertex, 1.33, 3.22,-10.03,
AddVertex, 1.39, 3.22,-9.97,
AddVertex, 1.39, 0.63,-9.97,
AddVertex, 1.33, 0.63,-10.03,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,usi_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.12,-10.03,
AddVertex, 1.24, 3.12,-10.97,
AddVertex, 1.33, 3.12,-10.97,
AddVertex, 1.39, 3.12,-11.03,
AddVertex, 1.39, 3.12,-9.97,
AddVertex, 1.33, 3.12,-10.03,
AddFace2,0,1,2,3,4,5,
SetColor, 56, 77, 58,
GenerateNormals,

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

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


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

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

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

LoadTexture,usi_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.72,
AddVertex, 0.2, 4.05, -12.55,
AddVertex,-0.2, 4.05, -12.55,
AddVertex,-0.2, 4.05, -11.72,
AddFace2,0,1,2,3,
GenerateNormals,

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

;Toiture gauche

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

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

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

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

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

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

;Toiture droite

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

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

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

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

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

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

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

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

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

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


;Sol

CreateMeshBuilder,
AddVertex,-1.37, 1.18, 12.53,
AddVertex, 1.37, 1.18, 12.53,
AddVertex, 1.37, 1.18, 11.03,
AddVertex,-1.37, 1.18, 11.03,
AddVertex,-1.24, 1.18, 11.03,
AddVertex, 1.24, 1.18, 11.03,
AddVertex, 1.24, 1.18, 9.97,
AddVertex,-1.24, 1.18, 9.97,
AddVertex,-1.37, 1.18, 9.97,
AddVertex, 1.37, 1.18, 9.97,
AddVertex, 1.37, 1.18,-9.97,
AddVertex,-1.37, 1.18,-9.97,
AddVertex,-1.24, 1.18,-9.97,
AddVertex, 1.24, 1.18,-9.97,
AddVertex, 1.24, 1.18,-11.03,
AddVertex,-1.24, 1.18,-11.03,
AddVertex,-1.37, 1.18,-11.03,
AddVertex, 1.37, 1.18,-11.03,
AddVertex, 1.37, 1.18,-12.53,
AddVertex,-1.37, 1.18,-12.53,
AddFace,0,1,2,3,
AddFace,4,5,6,7,
AddFace,8,9,10,11,
AddFace,12,13,14,15,
AddFace,16,17,18,19,

LoadTexture,sol_1cl.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 2, 0,
SetTextureCoordinates,2, 2, 1,
SetTextureCoordinates,3, 0, 1,
SetTextureCoordinates,4, 0, 0,
SetTextureCoordinates,5, 2, 0,
SetTextureCoordinates,6, 2, 1,
SetTextureCoordinates,7, 0, 1,
SetTextureCoordinates,8, 0, 0,
SetTextureCoordinates,9, 2, 0,
SetTextureCoordinates,10, 2, 16,
SetTextureCoordinates,11, 0, 16,
SetTextureCoordinates,12, 0, 0,
SetTextureCoordinates,13, 2, 0,
SetTextureCoordinates,14, 2, 1,
SetTextureCoordinates,15, 0, 1,
SetTextureCoordinates,16, 0, 0,
SetTextureCoordinates,17, 2, 0,
SetTextureCoordinates,18, 2, 1,
SetTextureCoordinates,19, 0, 1,

;Plafond

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

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

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

CreateMeshBuilder,
AddVertex,-0.80, 0.90,-6.56,
AddVertex,-0.80, 0.90,-10.26,
AddVertex,-0.80, 0.00,-10.26,
AddVertex,-0.80, 0.00,-6.56,
AddFace2,0,1,2,3,
GenerateNormals,

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

;Essieux droite
CreateMeshBuilder,
AddVertex, 0.80, 0.90, 6.56,
AddVertex, 0.80, 0.90, 10.26,
AddVertex, 0.80, 0.00, 10.26,
AddVertex, 0.80, 0.00, 6.56,
AddFace2,0,1,2,3,
GenerateNormals,

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

CreateMeshBuilder,
AddVertex, 0.80, 0.90,-10.16,
AddVertex, 0.80, 0.90,-6.56,
AddVertex, 0.80, 0.00,-6.56,
AddVertex, 0.80, 0.00,-10.16,
AddFace2,0,1,2,3,
GenerateNormals,

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


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

LoadTexture,usi_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.94
Translate, 0.96, 0.77,-5.23
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



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

;Avant gauche,
CreateMeshBuilder,
cylinder, 12, 0.12, 0.12, 0.28,
rotate, 1, 0, 0, 90,
translate,-0.80, 1.05, 12.43,
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.67,
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.78,
SetColor, 166, 166, 166,
GenerateNormals,

CreateMeshBuilder,
Cube, 0.18, 0.01, 0.18,
Rotate, 1, 0, 0, 90,
Translate,-0.71, 1.05, 12.78,
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.43,
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.67,
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.78,
SetColor, 166, 166, 166,
GenerateNormals,

CreateMeshBuilder,
Cube, 0.18, 0.01, 0.18,
Rotate, 1, 0, 0, 90,
Translate, 0.71, 1.05, 12.78,
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.43,
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.67,
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.78,
SetColor, 166, 166, 166,
GenerateNormals,

CreateMeshBuilder,
Cube, 0.18, 0.01, 0.18,
Rotate, 1, 0, 0, 90,
Translate,-0.71, 1.05,-12.78,
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.43,
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.67,
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.78,
SetColor, 166, 166, 166,
GenerateNormals,

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

