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

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

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

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

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

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


;Arrière
CreateMeshBuilder,
AddVertex,-1.39, 1.18,-12.96,
AddVertex,-1.39, 4.05,-12.96,
AddVertex, 1.39, 4.05,-12.96,
AddVertex, 1.39, 1.18,-12.96,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,corail_fourgon_m.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.78,
AddVertex, 1.39, 1.23,-12.78,
AddVertex, 1.39, 0.25,-12.78,
AddVertex,-1.39, 0.25,-12.78,
AddFace2,0,1,2,3,

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

CreateMeshBuilder,
AddVertex, 1.39, 1.18,-12.78,
AddVertex, 1.39, 1.54,-12.78,
AddVertex, 1.21, 1.54,-12.78,
AddVertex, 1.21, 1.18,-12.78,
AddVertex,-1.21, 1.54,-12.78,
AddVertex,-1.39, 1.54,-12.78,
AddVertex,-1.39, 1.18,-12.78,
AddVertex,-1.21, 1.18,-12.78,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
SetColor, 140, 140, 140,

CreateMeshBuilder,
AddVertex, 1.21, 1.54,-12.96,
AddVertex, 1.21, 1.54,-12.78,
AddVertex, 1.21, 1.18,-12.78,
AddVertex, 1.21, 1.18,-12.96,
AddVertex,-1.21, 1.54,-12.96,
AddVertex,-1.21, 1.54,-12.78,
AddVertex,-1.21, 1.18,-12.78,
AddVertex,-1.21, 1.18,-12.96,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
SetColor, 140, 140, 140,

CreateMeshBuilder,
AddVertex,-1.21, 1.54,-12.96,
AddVertex,-1.21, 1.54,-12.78,
AddVertex,-1.39, 1.54,-12.78,
AddVertex,-1.39, 1.54,-12.96,
AddVertex, 1.21, 1.54,-12.96,
AddVertex, 1.21, 1.54,-12.78,
AddVertex, 1.39, 1.54,-12.78,
AddVertex, 1.39, 1.54,-12.96,
AddFace2,0,1,2,3,
AddFace2,7,6,5,4,
SetColor, 140, 140, 140,

;Devant
CreateMeshBuilder,
AddVertex, 1.39, 1.18, 12.96,
AddVertex, 1.39, 4.05, 12.96,
AddVertex,-1.39, 4.05, 12.96,
AddVertex,-1.39, 1.18, 12.96,
AddFace2,0,1,2,3,
GenerateNormals,

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

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

CreateMeshBuilder,
AddVertex, 1.39, 1.18, 12.78,
AddVertex, 1.39, 1.54, 12.78,
AddVertex, 1.21, 1.54, 12.78,
AddVertex, 1.21, 1.18, 12.78,
AddVertex,-1.21, 1.54, 12.78,
AddVertex,-1.39, 1.54, 12.78,
AddVertex,-1.39, 1.18, 12.78,
AddVertex,-1.21, 1.18, 12.78,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
SetColor, 140, 140, 140,

CreateMeshBuilder,
AddVertex, 1.21, 1.54, 12.96,
AddVertex, 1.21, 1.54, 12.78,
AddVertex, 1.21, 1.18, 12.78,
AddVertex, 1.21, 1.18, 12.96,
AddVertex,-1.21, 1.54, 12.96,
AddVertex,-1.21, 1.54, 12.78,
AddVertex,-1.21, 1.18, 12.78,
AddVertex,-1.21, 1.18, 12.96,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
SetColor, 140, 140, 140,

CreateMeshBuilder,
AddVertex,-1.21, 1.54, 12.96,
AddVertex,-1.21, 1.54, 12.78,
AddVertex,-1.39, 1.54, 12.78,
AddVertex,-1.39, 1.54, 12.96,
AddVertex, 1.21, 1.54, 12.96,
AddVertex, 1.21, 1.54, 12.78,
AddVertex, 1.39, 1.54, 12.78,
AddVertex, 1.39, 1.54, 12.96,
AddFace2,3,2,1,0,
AddFace2,4,5,6,7,
SetColor, 140, 140, 140,

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

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

LoadTexture,corail_four_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.96,
AddVertex,-1.35, 3.30,-12.96,
AddVertex,-1.35, 1.13,-12.96,
AddVertex,-1.35, 1.13, 12.96,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,corail_fenf_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, 11.56,
AddVertex,-1.37, 3.30,-11.56,
AddVertex,-1.37, 1.13,-11.56,
AddVertex,-1.37, 1.13, 11.56,
AddFace2,0,1,2,3,
SetColor, 0, 0, 0, 128,
GenerateNormals,

;Portes gauche
CreateMeshBuilder,
AddVertex,-1.29, 3.30, 12.96,
AddVertex,-1.29, 3.30,-12.96,
AddVertex,-1.29, 0.63,-12.96,
AddVertex,-1.29, 0.63, 12.96,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,corail_portes_fg.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.24, 3.22, 12.65,
AddVertex,-1.34, 3.22, 12.65,
AddVertex,-1.34, 0.63, 12.65,
AddVertex,-1.24, 0.63, 12.65,
AddVertex,-1.34, 3.22, 11.78,
AddVertex,-1.24, 3.22, 11.78,
AddVertex,-1.24, 0.63, 11.78,
AddVertex,-1.34, 0.63, 11.78,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,corail_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, 12.65,
AddVertex,-1.39, 3.22, 12.70,
AddVertex,-1.39, 0.63, 12.70,
AddVertex,-1.34, 0.63, 12.65,
AddVertex,-1.39, 3.22, 11.73,
AddVertex,-1.34, 3.22, 11.78,
AddVertex,-1.34, 0.63, 11.78,
AddVertex,-1.39, 0.63, 11.73,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,corail_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.78,
AddVertex,-1.24, 3.22, 12.65,
AddVertex,-1.24, 3.22, 12.65,
AddVertex,-1.39, 3.22, 12.70,
AddVertex,-1.39, 3.22, 11.73,
AddVertex,-1.34, 3.22, 11.78,
AddFace2,0,1,2,3,4,5,
SetColor, 128, 128, 128,
GenerateNormals,

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

LoadTexture,corail_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,-12.70,
AddVertex,-1.34, 3.22,-12.65,
AddVertex,-1.34, 0.63,-12.65,
AddVertex,-1.39, 0.63,-12.70,
AddVertex,-1.34, 3.22,-11.78,
AddVertex,-1.39, 3.22,-11.73,
AddVertex,-1.39, 0.63,-11.73,
AddVertex,-1.34, 0.63,-11.78,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,corail_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,-12.65,
AddVertex,-1.24, 3.22,-11.78,
AddVertex,-1.34, 3.22,-11.78,
AddVertex,-1.39, 3.22,-11.73,
AddVertex,-1.39, 3.22,-12.70,
AddVertex,-1.24, 3.22,-12.65,
AddFace2,0,1,2,3,4,5,
SetColor, 128, 128, 128,
GenerateNormals,

;Transparent porte gauche
CreateMeshBuilder,
AddVertex,-1.23, 3.30, 12.65,
AddVertex,-1.23, 3.30, 11.78,
AddVertex,-1.23, 1.13, 11.78,
AddVertex,-1.23, 1.13, 12.65,
AddVertex,-1.23, 3.30,-12.65,
AddVertex,-1.23, 3.30,-11.78,
AddVertex,-1.23, 1.13,-11.78,
AddVertex,-1.23, 1.13,-12.65,
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.96,
AddVertex,1.39, 3.30, 12.96,
AddVertex,1.39, 0.63, 12.96,
AddVertex,1.39, 0.63,-12.96,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,corail_four_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.38, 3.30,-12.96,
AddVertex,1.38, 3.30, 12.96,
AddVertex,1.38, 1.13, 12.96,
AddVertex,1.38, 1.13,-12.96,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,corail_fenf_d.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,-11.56,
AddVertex,1.37, 3.30, 11.56,
AddVertex,1.37, 1.13, 11.56,
AddVertex,1.37, 1.13,-11.56,
AddFace2,0,1,2,3,
SetColor, 0, 0, 0, 128,
GenerateNormals,

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

LoadTexture,corail_portes_fd.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, 12.65,
AddVertex, 1.34, 3.22, 12.65,
AddVertex, 1.34, 0.63, 12.65,
AddVertex, 1.24, 0.63, 12.65,
AddVertex, 1.34, 3.22, 11.78,
AddVertex, 1.24, 3.22, 11.78,
AddVertex, 1.24, 0.63, 11.78,
AddVertex, 1.34, 0.63, 11.78,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,corail_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, 12.65,
AddVertex, 1.39, 3.22, 12.70,
AddVertex, 1.39, 0.63, 12.70,
AddVertex, 1.34, 0.63, 12.65,
AddVertex, 1.39, 3.22, 11.73,
AddVertex, 1.34, 3.22, 11.78,
AddVertex, 1.34, 0.63, 11.78,
AddVertex, 1.39, 0.63, 11.73,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,corail_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, 12.65,
AddVertex, 1.24, 3.22, 11.78,
AddVertex, 1.34, 3.22, 11.78,
AddVertex, 1.39, 3.22, 11.73,
AddVertex, 1.39, 3.22, 12.70,
AddVertex, 1.24, 3.22, 12.65,
AddFace2,0,1,2,3,4,5,
SetColor, 128, 128, 128,
GenerateNormals,

CreateMeshBuilder,
AddVertex, 1.34, 3.22,-12.65,
AddVertex, 1.24, 3.22,-12.65,
AddVertex, 1.24, 0.63,-12.65,
AddVertex, 1.34, 0.63,-12.65,
AddVertex, 1.24, 3.22,-11.78,
AddVertex, 1.34, 3.22,-11.78,
AddVertex, 1.34, 0.63,-11.78,
AddVertex, 1.24, 0.63,-11.78,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
SetColor, 66, 66, 66,
GenerateNormals,

LoadTexture,corail_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,-12.70,
AddVertex, 1.34, 3.22,-12.65,
AddVertex, 1.34, 0.63,-12.65,
AddVertex, 1.39, 0.63,-12.70,
AddVertex, 1.34, 3.22,-11.78,
AddVertex, 1.39, 3.22,-11.73,
AddVertex, 1.39, 0.63,-11.73,
AddVertex, 1.34, 0.63,-11.78,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,corail_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.78,
AddVertex, 1.24, 3.22,-12.65,
AddVertex, 1.24, 3.22,-12.65,
AddVertex, 1.39, 3.22,-12.70,
AddVertex, 1.39, 3.22,-11.73,
AddVertex, 1.34, 3.22,-11.78,
AddFace2,0,1,2,3,4,5,
SetColor, 128, 128, 128,
GenerateNormals,

;Transparent porte droite
CreateMeshBuilder,
AddVertex, 1.23, 3.30, 12.65,
AddVertex, 1.23, 3.30, 11.78,
AddVertex, 1.23, 1.13, 11.78,
AddVertex, 1.23, 1.13, 12.65,
AddVertex, 1.23, 3.30,-12.65,
AddVertex, 1.23, 3.30,-11.78,
AddVertex, 1.23, 1.13,-11.78,
AddVertex, 1.23, 1.13,-12.65,
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,corail_toit.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 3,
SetTextureCoordinates,3, 0, 3,

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

LoadTexture,corail_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.96,
AddVertex,-0.2, 4.05, -12.96,
AddVertex,-0.2, 4.05, -11.72,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,corail_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,corail_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.96,
AddVertex,-0.20, 4.05, 11.72,
AddVertex,-0.60, 3.96, 11.72, -2,1,1,
AddVertex,-0.60, 3.96, 12.96, -2,1,1,
AddVertex,-1.26, 3.58, 12.96, 1.5,1,1,
AddVertex,-1.26, 3.58, 11.72, 1.5,1,1,
AddVertex,-1.39, 3.30, 12.96, -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,corail_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.96,
AddVertex,-0.60, 3.96, -12.96, -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.96, 1.5,1,1,
AddVertex,-1.39, 3.30, -11.72, -2,1,1,
AddVertex,-1.39, 3.30, -12.96, -2,1,1,
AddFace2,0,1,2,3,
AddFace2,3,2,5,4,
AddFace2,4,5,7,6,
GenerateNormals,

LoadTexture,corail_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,corail_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.96,
AddVertex, 0.20, 4.05, 11.72,
AddVertex, 0.60, 3.96, 11.72, -2,1,1,
AddVertex, 0.60, 3.96, 12.96, -2,1,1,
AddVertex, 1.26, 3.58, 12.96, 1.5,1,1,
AddVertex, 1.26, 3.58, 11.72, 1.5,1,1,
AddVertex, 1.39, 3.30, 12.96, -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,corail_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.96,
AddVertex, 0.60, 3.96, -12.96, -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.96, 1.5,1,1,
AddVertex, 1.39, 3.30, -11.72, -2,1,1,
AddVertex, 1.39, 3.30, -12.96, -2,1,1,
AddFace2,3,2,1,0,
AddFace2,4,5,2,3,
AddFace2,6,7,5,4,
GenerateNormals,

LoadTexture,corail_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,


;Sol

CreateMeshBuilder,
AddVertex, 1.24, 1.18,-12.94,
AddVertex,-1.24, 1.18,-12.94,
AddVertex,-1.24, 1.18,-11.73,
AddVertex, 1.24, 1.18,-11.73,
AddVertex, 1.37, 1.18,-11.73,
AddVertex,-1.37, 1.18,-11.73,
AddVertex,-1.37, 1.18, 11.73,
AddVertex, 1.37, 1.18, 11.73,
AddVertex, 1.24, 1.18, 11.73,
AddVertex,-1.24, 1.18, 11.73,
AddVertex,-1.24, 1.18, 12.94,
AddVertex, 1.24, 1.18, 12.94,
AddFace,0,1,2,3,
AddFace,4,5,6,7,
AddFace,8,9,10,11,

LoadTexture,sol_2cl.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, 18,
SetTextureCoordinates,7, 0, 18,
SetTextureCoordinates,8, 0, 0,
SetTextureCoordinates,9, 2, 0,
SetTextureCoordinates,10, 2, 1,
SetTextureCoordinates,11, 0, 1,

;Plafond

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

;Essieux gauche
CreateMeshBuilder,
AddVertex,-0.80, 0.00, 11.34,
AddVertex,-0.80, 1.13, 11.34,
AddVertex,-0.80, 1.13, 7.78,
AddVertex,-0.80, 0.00, 7.78,
AddFace2,0,1,2,3,
GenerateNormals,

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

CreateMeshBuilder,
AddVertex,-0.80, 0.00,-7.78,
AddVertex,-0.80, 1.13,-7.78,
AddVertex,-0.80, 1.13,-11.34,
AddVertex,-0.80, 0.00,-11.34,
AddFace2,0,1,2,3,
GenerateNormals,

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


;Essieux droite
CreateMeshBuilder,
AddVertex, 0.80, 0.00, 11.34,
AddVertex, 0.80, 1.13, 11.34,
AddVertex, 0.80, 1.13, 7.78,
AddVertex, 0.80, 0.00, 7.78,
AddFace2,0,1,2,3,
GenerateNormals,

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

CreateMeshBuilder,
AddVertex, 0.80, 0.00,-11.34,
AddVertex, 0.80, 1.13,-11.34,
AddVertex, 0.80, 1.13,-7.78,
AddVertex, 0.80, 0.00,-7.78,
AddFace2,0,1,2,3,
GenerateNormals,

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


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,corail_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.96
Translate, 0.96, 0.77,-6.07
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.84,
SetColor, 76, 76, 76,
GenerateNormals,

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

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

CreateMeshBuilder,
Cube, 0.18, 0.01, 0.18,
Rotate, 1, 0, 0, 90,
Translate,-0.71, 1.05, 13.19,
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.84,
SetColor, 76, 76, 76,
GenerateNormals,

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

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

CreateMeshBuilder,
Cube, 0.18, 0.01, 0.18,
Rotate, 1, 0, 0, 90,
Translate, 0.71, 1.05, 13.19,
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.84,
SetColor, 76, 76, 76,
GenerateNormals,

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

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

CreateMeshBuilder,
Cube, 0.18, 0.01, 0.18,
Rotate, 1, 0, 0, 90,
Translate,-0.71, 1.05,-13.19,
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.84,
SetColor, 76, 76, 76,
GenerateNormals,

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

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

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


