;SNCF Vossloh G1000 

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

;Moteur
CreateMeshBuilder,
AddVertex,-0.90, 3.29, 6.42,
AddVertex,-0.90, 3.29,-6.54,
AddVertex,-0.90, 1.49,-6.54,
AddVertex,-0.90, 1.49, 6.42,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,Side-m_l.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,

;Cabine
CreateMeshBuilder,
AddVertex,-1.54, 2.99, 3.68,
AddVertex,-1.54, 2.99, 1.77,
AddVertex,-1.54, 1.49, 1.77,
AddVertex,-1.54, 1.49, 3.68,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,Side-c_l.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex,-1.489, 2.99, 1.77,
AddVertex,-1.489, 2.99, 3.68,
AddVertex,-1.489, 1.49, 3.68,
AddVertex,-1.489, 1.49, 1.77,
AddFace2,0,1,2,3,
SetColor, 165, 46, 42,

CreateMeshBuilder,
AddVertex,-1.54, 1.43,-1.19,
AddVertex,-1.54, 1.43, 1.19,
AddVertex,-1.54, 0.60, 1.19,
AddVertex,-1.54, 0.60,-1.19,
AddFace2,0,1,2,3,

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

CreateMeshBuilder,
AddVertex,-1.54, 0.60, 1.19,
AddVertex,-1.54, 0.60,-1.19,
AddVertex,-1.24, 0.30,-1.19,
AddVertex,-1.24, 0.30, 1.19,
AddFace2,0,1,2,3,
SetColor, 100, 100, 100,

;Rambarde arriere,
CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.45,
Translate,-1.52, 2.145, 1.71,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 7.80,
Rotate, 1, 0, 0, 90,
Translate,-1.52, 2.37, -2.17,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 7.80,
Rotate, 1, 0, 0, 90,
Translate,-1.52, 1.92, -2.17,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cube, 0.02, 0.45, 0.01,
Translate,-1.52, 1.92, 1.42,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cube, 0.02, 0.45, 0.01,
Translate,-1.52, 1.92, 0.36,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cube, 0.02, 0.45, 0.01,
Translate,-1.52, 1.92,-0.70,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cube, 0.02, 0.45, 0.01,
Translate,-1.52, 1.92,-1.77,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cube, 0.02, 0.45, 0.01,
Translate,-1.52, 1.92,-2.84,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cube, 0.02, 0.45, 0.01,
Translate,-1.52, 1.92,-3.91,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cube, 0.02, 0.45, 0.01,
Translate,-1.52, 1.92,-4.98,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 1.07,
Translate,-1.52, 1.825,-6.05,
SetColor, 217, 60, 65,


;Rambarde avant,
CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.45,
Translate,-1.52, 2.145, 3.75,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 2.34,
Rotate, 1, 0, 0, 90,
Translate,-1.52, 2.37, 4.90,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 2.34,
Rotate, 1, 0, 0, 90,
Translate,-1.52, 1.92, 4.90,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cube, 0.02, 0.450, 0.01,
Translate,-1.52, 1.92, 5.04,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cube, 0.02, 0.450, 0.01,
Translate,-1.52, 1.92, 4.04,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 1.07,
Translate,-1.52, 1.825, 6.05,
SetColor, 217, 60, 65,


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

;Moteur,
CreateMeshBuilder,
AddVertex, 0.90, 3.29,-6.54,
AddVertex, 0.90, 3.29, 6.42,
AddVertex, 0.90, 1.49, 6.42,
AddVertex, 0.90, 1.49,-6.54,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,Side-m_r.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,

;Cabine
CreateMeshBuilder,
AddVertex, 1.54, 2.99, 1.77,
AddVertex, 1.54, 2.99, 3.68,
AddVertex, 1.54, 1.49, 3.68,
AddVertex, 1.54, 1.49, 1.77,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,Side-c_r.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex, 1.52, 2.99, 1.77,
AddVertex, 1.52, 2.99, 3.68,
AddVertex, 1.52, 1.49, 3.68,
AddVertex, 1.52, 1.49, 1.77,
AddFace2,0,1,2,3,
SetColor, 165, 46, 42,

CreateMeshBuilder,
AddVertex, 1.54, 1.43, 1.19,
AddVertex, 1.54, 1.43,-1.19,
AddVertex, 1.54, 0.60,-1.19,
AddVertex, 1.54, 0.60, 1.19,
AddFace2,0,1,2,3,

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

CreateMeshBuilder,
AddVertex, 1.54, 0.60,-1.19,
AddVertex, 1.54, 0.60, 1.19,
AddVertex, 1.24, 0.30, 1.19,
AddVertex, 1.24, 0.30,-1.19,
AddFace2,0,1,2,3,
SetColor, 100, 100, 100,

CreateMeshBuilder,
AddVertex, 1.54, 1.43, 1.19,
AddVertex,-1.54, 1.43, 1.19,
AddVertex,-1.54, 0.60, 1.19,
AddVertex,-1.24, 0.30, 1.19,
AddVertex, 1.24, 0.30, 1.19,
AddVertex, 1.54, 0.60, 1.19,
AddFace2,0,1,2,3,4,5,
SetColor, 100, 100, 100,

CreateMeshBuilder,
AddVertex,-1.54, 1.43,-1.19,
AddVertex, 1.54, 1.43,-1.19,
AddVertex, 1.54, 0.60,-1.19,
AddVertex, 1.24, 0.30,-1.19,
AddVertex,-1.24, 0.30,-1.19,
AddVertex,-1.54, 0.60,-1.19,
AddFace2,0,1,2,3,4,5,
SetColor, 100, 100, 100,


;Rambarde arriere
CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.45,
Translate, 1.52, 2.145, 1.71,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 7.80,
Rotate, 1, 0, 0, 90,
Translate, 1.52, 2.37, -2.17,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 7.80,
Rotate, 1, 0, 0, 90,
Translate, 1.52, 1.92, -2.17,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cube, 0.02, 0.45, 0.01,
Translate, 1.52, 1.92, 1.42,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cube, 0.02, 0.45, 0.01,
Translate, 1.52, 1.92, 0.36,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cube, 0.02, 0.45, 0.01,
Translate, 1.52, 1.92,-0.70,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cube, 0.02, 0.45, 0.01,
Translate, 1.52, 1.92,-1.77,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cube, 0.02, 0.45, 0.01,
Translate, 1.52, 1.92,-2.84,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cube, 0.02, 0.45, 0.01,
Translate, 1.52, 1.92,-3.91,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cube, 0.02, 0.45, 0.01,
Translate, 1.52, 1.92,-4.98,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 1.07,
Translate, 1.52, 1.825,-6.05,
SetColor, 217, 60, 65,

;Rambarde avant,
CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.45,
Translate, 1.52, 2.145, 3.75,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 2.34,
Rotate, 1, 0, 0, 90,
Translate, 1.52, 2.37, 4.90,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 2.34,
Rotate, 1, 0, 0, 90,
Translate, 1.52, 1.92, 4.90,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cube, 0.02, 0.450, 0.01,
Translate, 1.52, 1.92, 5.04,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cube, 0.02, 0.450, 0.01,
Translate, 1.52, 1.92, 4.04,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 1.07,
Translate, 1.52, 1.825, 6.05,
SetColor, 217, 60, 65,


;Front moteur
CreateMeshBuilder,
AddVertex, 0.90, 3.21, 6.42,
AddVertex,-0.90, 3.21, 6.42,
AddVertex,-0.90, 1.49, 6.42,
AddVertex, 0.90, 1.49, 6.42,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,front-m.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,

;Front rampe

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.80,
Rotate, 1, 0, 0, 90,
Rotate, 0, 1, 0, -52,
Translate, 1.215, 2.37, 6.87,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 1.82,
Rotate, 0, 0, 1, 90,
Translate, 0, 2.37, 7.12,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.80,
Rotate, 1, 0, 0, 90,
Rotate, 0, 1, 0, 52,
Translate, -1.215, 2.37, 6.87,
SetColor, 217, 60, 65,


CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 1.07,
Translate, 1.52, 1.825, 6.63,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.44,
Rotate, 1, 0, 0, 90,
Rotate, 0, 1, 0, -52,
Translate, 1.34, 1.92, 6.77,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.30,
Rotate, 0, 0, 1, 90,
Translate, 1.03, 1.92, 6.90,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.52,
Translate, 0.88, 1.74, 6.90,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.44,
Rotate, 1, 0, 0, 30,
Translate, 0.88, 2.175, 7.005,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.12,
Rotate, 1, 0, 0, 90,
Translate, 0.88, 1.98, 6.96,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.64,
Rotate, 0, 0, 1, 90,
Translate, 0.56, 1.98, 7.00,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.40,
Rotate, 1, 0, 0, 17,
Translate, 0.26, 2.175, 7.06,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.52,
Rotate, 0, 0, 1, 90,
Translate, 0, 2.075, 7.03,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.40,
Rotate, 1, 0, 0, 17,
Translate,-0.26, 2.175, 7.06,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.64,
Rotate, 0, 0, 1, 90,
Translate, -0.56, 1.98, 7.00,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.12,
Rotate, 1, 0, 0, 90,
Translate,-0.88, 1.98, 6.96,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.44,
Rotate, 1, 0, 0, 30,
Translate,-0.88, 2.175, 7.005,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.52,
Translate,-0.88, 1.740, 6.90,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.30,
Rotate, 0, 0, 1, 90,
Translate, -1.03, 1.92, 6.90,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.44,
Rotate, 1, 0, 0, 90,
Rotate, 0, 1, 0, 52,
Translate,-1.34, 1.92, 6.77,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 1.07,
Translate,-1.52, 1.825, 6.63,
SetColor, 217, 60, 65,


;Rear moteur
CreateMeshBuilder,
AddVertex,-0.90, 3.21,-6.54,
AddVertex, 0.90, 3.21,-6.54,
AddVertex, 0.90, 1.49,-6.54
AddVertex,-0.90, 1.49,-6.54
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,rear-m.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,

;Rear rampe

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.80,
Rotate, 1, 0, 0, 90,
Rotate, 0, 1, 0, 52,
Translate, 1.215, 2.37, -6.87,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 1.82,
Rotate, 0, 0, 1, 90,
Translate, 0, 2.37, -7.12,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.80,
Rotate, 1, 0, 0, 90,
Rotate, 0, 1, 0, -52,
Translate, -1.215, 2.37, -6.87,
SetColor, 217, 60, 65,


CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 1.07,
Translate, 1.52, 1.825, -6.63,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.44,
Rotate, 1, 0, 0, 90,
Rotate, 0, 1, 0, 52,
Translate, 1.34, 1.92, -6.77,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.30,
Rotate, 0, 0, 1, 90,
Translate, 1.03, 1.92, -6.90,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.52,
Translate, 0.88, 1.74, -6.90,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.44,
Rotate, 1, 0, 0, -30,
Translate, 0.88, 2.175, -7.005,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.12,
Rotate, 1, 0, 0, 90,
Translate, 0.88, 1.98, -6.96,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.64,
Rotate, 0, 0, 1, 90,
Translate, 0.56, 1.98, -7.00,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.40,
Rotate, 1, 0, 0, -17,
Translate, 0.26, 2.175, -7.06,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.52,
Rotate, 0, 0, 1, 90,
Translate, 0, 2.075, -7.03,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.40,
Rotate, 1, 0, 0, -17,
Translate,-0.26, 2.175, -7.06,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.64,
Rotate, 0, 0, 1, 90,
Translate, -0.56, 1.98, -7.00,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.12,
Rotate, 1, 0, 0, 90,
Translate,-0.88, 1.98, -6.96,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.44,
Rotate, 1, 0, 0, -30,
Translate,-0.88, 2.175, -7.005,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.52,
Translate,-0.88, 1.740, -6.90,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.30,
Rotate, 0, 0, 1, 90,
Translate, -1.03, 1.92, -6.90,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 0.44,
Rotate, 1, 0, 0, 90,
Rotate, 0, 1, 0, -52,
Translate,-1.34, 1.92, -6.77,
SetColor, 217, 60, 65,

CreateMeshBuilder,
Cylinder, 10, 0.02, 0.02, 1.07,
Translate,-1.52, 1.825, -6.63,
SetColor, 217, 60, 65,


;phares arrière



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

CreateMeshBuilder,
Cube, 0.90, 0.02, 0.545,
Translate, 0, 1.46, 6.375,
SetColor, 40, 40, 40,

CreateMeshBuilder,
Cube, 1.54, 0.02, 5.82,
Translate, 0, 1.47, 0,
SetColor, 40, 40, 40,

CreateMeshBuilder,
Cube, 0.90, 0.02, 0.545,
Translate, 0, 1.46, -6.375,
SetColor, 40, 40, 40,


;----------Cabine----------

;Arrière
CreateMeshBuilder,
AddVertex, 1.54, 4.05, 1.77,
AddVertex,-1.54, 4.05, 1.77,
AddVertex,-1.54, 1.49, 1.77,
AddVertex, 1.54, 1.49, 1.77,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,front-c.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex, 0.99, 4.03, 1.79,
AddVertex,-0.99, 4.03, 1.79,
AddVertex,-1.17, 3.85, 1.79,
AddVertex,-1.48, 2.96, 1.79,
AddVertex, 1.48, 2.96, 1.79,
AddVertex, 1.17, 3.85, 1.79,
AddFace2,0,1,2,3,4,5,
SetColor, 0, 0, 0, 128,
GenerateNormals,

;Avant
CreateMeshBuilder,
AddVertex, 1.54, 4.05, 3.68,
AddVertex,-1.54, 4.05, 3.68,
AddVertex,-1.54, 1.49, 3.68,
AddVertex, 1.54, 1.49, 3.68,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,front-c.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex, 0.99, 4.03, 3.66,
AddVertex,-0.99, 4.03, 3.66,
AddVertex,-1.17, 3.85, 3.66,
AddVertex,-1.48, 2.96, 3.66,
AddVertex, 1.48, 2.96, 3.66,
AddVertex, 1.17, 3.85, 3.66,
AddFace2,0,1,2,3,4,5,
SetColor, 0, 0, 0, 128,
GenerateNormals,


;----------Heurtoir----------

CreateMeshBuilder,
AddVertex, 1.49, 1.48, 6.711,
AddVertex,-1.49, 1.48, 6.711,
AddVertex,-1.49, 0.40, 6.711,
AddVertex, 1.49, 0.40, 6.711,
AddFace2,0,1,2,3,

LoadTexture,front-heurtoir.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,

;Barre
;CreateMeshBuilder,
;Cube, 1.49, 0.36, 0.01,
;Translate, 0, 1.12, 6.57,
;SetColor, 40, 40, 40,

;Avant gauche
CreateMeshBuilder,
Cylinder, 16, 0.12, 0.12, 0.38,
Rotate, 1,0,0,90,
Translate, 0.8, 1.05, 6.91,
SetColor, 80, 80, 80,

CreateMeshBuilder,
Cylinder, 16, 0.10, 0.10, 0.24, 
Rotate, 1,0,0,90,
Translate, 0.8, 1.05, 7.21,
SetColor, 66,66,66,

CreateMeshBuilder,
Cylinder, 16, 0.18, 0.18, 0.02,
Rotate, 1,0,0,90,
Translate, 0.89, 1.05, 7.34,
SetColor, 166,166,166,

CreateMeshBuilder,
Cube, 0.18, 0.18, 0.01,
Translate, 0.71, 1.05, 7.34,
SetColor, 166,166,166,

;Avant droite
CreateMeshBuilder,
Cylinder, 16, 0.12, 0.12, 0.38,
Rotate, 1,0,0,90,
Translate,-0.8, 1.05, 6.91,
SetColor, 80, 80, 80,

CreateMeshBuilder,
Cylinder, 16, 0.10, 0.10, 0.24, 
Rotate, 1,0,0,90,
Translate,-0.8, 1.05, 7.21,
SetColor, 66, 66, 66,

CreateMeshBuilder,
Cylinder, 16, 0.18, 0.18, 0.02,
Rotate, 1,0,0,90,
Translate,-0.89, 1.05, 7.34,
SetColor, 166, 166, 166,

CreateMeshBuilder,
Cube, 0.18, 0.18, 0.01,
Translate,-0.71, 1.05, 7.34,
SetColor, 166, 166, 166,


CreateMeshBuilder,
AddVertex, 1.49, 1.48,-6.711,
AddVertex,-1.49, 1.48,-6.711,
AddVertex,-1.49, 0.40,-6.711,
AddVertex, 1.49, 0.40,-6.711,
AddFace2,0,1,2,3,

LoadTexture,front-heurtoir.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,

;Arriere gauche
CreateMeshBuilder,
Cylinder, 16, 0.12, 0.12, 0.38,
Rotate, 1,0,0,90,
Translate, 0.8, 1.05,-6.91,
SetColor, 80, 80, 80,

CreateMeshBuilder,
Cylinder, 16, 0.10, 0.10, 0.24, 
Rotate, 1,0,0,90,
Translate, 0.8, 1.05,-7.21,
SetColor, 66, 66, 66,

CreateMeshBuilder,
Cylinder, 16, 0.18, 0.18, 0.02,
Rotate, 1,0,0,90,
Translate, 0.89, 1.05,-7.34,
SetColor, 166, 166, 166,

CreateMeshBuilder,
Cube, 0.18, 0.18, 0.01,
Translate, 0.71, 1.05,-7.34,
SetColor, 166, 166, 166,

;Arriere droite
CreateMeshBuilder,
Cylinder, 16, 0.12, 0.12, 0.38,
Rotate, 1,0,0,90,
Translate,-0.8, 1.05,-6.91,
SetColor, 80, 80, 80,

CreateMeshBuilder,
Cylinder, 16, 0.10, 0.10, 0.24, 
Rotate, 1,0,0,90,
Translate,-0.8, 1.05,-7.21,
SetColor, 66, 66, 66,

CreateMeshBuilder,
Cylinder, 16, 0.18, 0.18, 0.02,
Rotate, 1,0,0,90,
Translate,-0.89, 1.05,-7.34,
SetColor, 166, 166, 166,

CreateMeshBuilder,
Cube, 0.18, 0.18, 0.01,
Translate,-0.71, 1.05,-7.34,
SetColor, 166, 166, 166,

;----------Toit----------

;Cabine
CreateMeshBuilder,
AddVertex, 1.19, 3.87, 3.68
AddVertex, 1.19, 3.87, 1.77
AddVertex, 0.99, 4.05, 1.47
AddVertex, 0.99, 4.05, 3.98
AddVertex,-0.99, 4.05, 1.47
AddVertex,-0.99, 4.05, 3.98
AddVertex,-1.19, 3.87, 1.77
AddVertex,-1.19, 3.87, 3.68
AddFace2,0,1,2,3,
AddFace2,3,2,4,5,
AddFace2,5,4,6,7,
SetColor, 65, 65, 65,
GenerateNormals,

CreateMeshBuilder,
AddVertex, 1.190, 3.87, 3.68
AddVertex, 1.190, 3.87, 1.77
AddVertex, 1.491, 2.99, 1.77
AddVertex, 1.491, 2.99, 3.68
AddVertex,-1.190, 3.87, 1.77
AddVertex,-1.190, 3.87, 3.68
AddVertex,-1.491, 2.99, 3.68
AddVertex,-1.491, 2.99, 1.77
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,

LoadTexture,toit-cote.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.17, 3.86, 3.66
AddVertex, 1.17, 3.86, 1.79
AddVertex, 1.47, 3.00, 1.79
AddVertex, 1.47, 3.00, 3.66
AddVertex,-1.17, 3.86, 1.79
AddVertex,-1.17, 3.86, 3.66
AddVertex,-1.47, 3.00, 3.66
AddVertex,-1.47, 3.00, 1.79
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
SetColor, 0, 0, 0, 128,
GenerateNormals,

CreateMeshBuilder,
Cylinder, 20, 0.2, 0.2, 1.4
Translate, 0, 3.7, 1.40
SetColor, 165, 46, 42,

;----------Moteur----------

CreateMeshBuilder,
Cube, 0.71, 0.86, 0.05,
Translate, 0, 2.34, -2.57,
SetColor, 0,0,0,

CreateMeshBuilder,
Cube, 0.71, 0.86, 0.05,
Translate, 0, 2.34, -0.47,
SetColor, 0,0,0,

CreateMeshBuilder,
Cube, 0.71, 0.86, 0.05,
Translate, 0, 2.34, 1.19,
SetColor, 0,0,0,


CreateMeshBuilder,
AddVertex,-0.81, 3.22,-0.42,
AddVertex, 0.81, 3.22,-0.42,
AddVertex, 0.81, 1.48,-0.42,
AddVertex,-0.81, 1.48,-0.42,
AddFace2,0,1,2,3,

LoadTexture,toit-ma.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,

CreateMeshBuilder,
AddVertex, 0.81, 3.22,-0.52,
AddVertex,-0.81, 3.22,-0.52,
AddVertex,-0.81, 1.48,-0.52,
AddVertex, 0.81, 1.48,-0.52,
AddFace2,0,1,2,3,

LoadTexture,toit-ma.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,

CreateMeshBuilder,
AddVertex,-0.81, 3.22,-2.52,
AddVertex, 0.81, 3.22,-2.52,
AddVertex, 0.81, 1.48,-2.52,
AddVertex,-0.81, 1.48,-2.52,
AddFace2,0,1,2,3,

LoadTexture,toit-ma.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,

CreateMeshBuilder,
AddVertex, 0.81, 3.22,-2.62,
AddVertex,-0.81, 3.22,-2.62,
AddVertex,-0.81, 1.48,-2.62,
AddVertex, 0.81, 1.48,-2.62,
AddFace2,0,1,2,3,

LoadTexture,toit-ma.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,

;Dessus
CreateMeshBuilder,
AddVertex, 0.90, 3.21,-3.69,
AddVertex, 0.90, 3.21,-6.54,
AddVertex,-0.90, 3.21,-6.54,
AddVertex,-0.90, 3.21,-3.69,
AddFace2,0,1,2,3,

LoadTexture,toit-ma.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,

CreateMeshBuilder,
AddVertex, 0.90, 3.29, 1.71,
AddVertex, 0.90, 3.29,-3.69,
AddVertex,-0.90, 3.29,-3.69,
AddVertex,-0.90, 3.29, 1.71,
AddFace2,0,1,2,3,

LoadTexture,toit-ma.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,

CreateMeshBuilder,
AddVertex, 0.90, 3.21, 6.42,
AddVertex, 0.90, 3.21, 3.73,
AddVertex,-0.90, 3.21, 3.73,
AddVertex,-0.90, 3.21, 6.42,
AddFace2,0,1,2,3,

LoadTexture,toit-ma.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,


;Ventilo sur moteur

;CreateMeshBuilder,
;AddVertex, 0.75, 3.21,-3.42,
;AddVertex, 0.75, 3.21,-4.92,
;AddVertex,-0.75, 3.21,-4.92,
;AddVertex,-0.75, 3.21,-3.42,
;AddFace2,0,1,2,3,

;LoadTexture,soufle.png,
;SetTextureCoordinates,0,0,0,
;SetTextureCoordinates,1,1,0,
;SetTextureCoordinates,2,1,1,
;SetTextureCoordinates,3,0,1,
;SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
Cube, 0.36, 0.03, 0.58,
Translate, 0, 3.25, -1.52,
SetColor,217, 218, 222,

CreateMeshBuilder,
Cube, 0.36, 0.03, 0.58,
Translate, 0, 3.25, 0.20,
SetColor,217, 218, 222,


CreateMeshBuilder,
Cube, 0.7, 0.20, 6.00,
Translate, 0, 1.28, 0,
SetColor,0, 0, 0,


