;SNCF BB 63074 vert

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

;Moteur
CreateMeshBuilder,
AddVertex,-0.80, 3.12, 6.30,
AddVertex,-0.80, 3.12,-6.07,
AddVertex,-0.80, 1.60,-6.07,
AddVertex,-0.80, 1.60, 6.30,
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.40, 2.84, 6.75,
AddVertex,-1.40, 2.84,-6.75,
AddVertex,-1.40, 0.50,-6.75,
AddVertex,-1.40, 0.50, 6.75,
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.39, 2.84, 2.68,
AddVertex,-1.39, 2.84, 4.68,
AddVertex,-1.39, 1.60, 4.68,
AddVertex,-1.39, 1.60, 2.68,
AddFace2,0,1,2,3,
SetColor, 49, 135, 74,


CreateMeshBuilder,
AddVertex,-1.10, 1.60, 6.72,
AddVertex,-1.10, 1.60,-6.72,
AddVertex,-1.10, 0.50,-6.72,
AddVertex,-1.10, 0.50, 6.72,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,Side-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.40, 1.42, 6.069,
AddVertex,-1.09, 1.42, 6.069,
AddVertex,-1.09, 0.88, 6.069,
AddVertex,-1.40, 0.88, 6.069,
AddFace2,0,1,2,3,
SetColor, 79, 91, 91,
GenerateNormals,

CreateMeshBuilder,
Cube, 0.01, 0.13, 0.18,
Translate,-1.40, 1.28, 3.75,
SetColor, 79, 91, 91,

CreateMeshBuilder,
Cube, 0.01, 0.13, 0.18,
Translate,-1.40, 1.28,-3.75,
SetColor, 79, 91, 91,

CreateMeshBuilder,
Cube, 0.155, 0.01, 6.07,
Translate,-1.255, 1.41, 0,
SetColor, 79, 91, 91,

CreateMeshBuilder,
Cube, 0.155, 0.01, 5.56,
Translate,-1.255, 1.15, 0,
SetColor, 79, 91, 91,

CreateMeshBuilder,
Cube, 0.155, 0.55, 0.01,
Translate,-1.26, 1.05, 6.71,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.155, 0.549, 0.01,
Translate,-1.26, 1.05, 6.08,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.155, 0.01, 0.085,
Translate,-1.26, 1.255, 6.165,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.155, 0.01, 0.165,
Translate,-1.26, 0.885, 6.555,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.165, 0.01, 0.325,
Translate,-1.27, 0.51, 6.395,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.155, 0.01, 0.06,
Translate,-1.27, 0.89, 6.02,
SetColor, 79, 91, 91,

CreateMeshBuilder,
Cube, 0.155, 0.01, 0.245,
Rotate, 1,0,0, 32.8
Translate,-1.27, 1.02, 5.76,
SetColor, 79, 91, 91,

CreateMeshBuilder,
AddVertex,-1.09, 1.42,-6.069,
AddVertex,-1.40, 1.42,-6.069,
AddVertex,-1.40, 0.88,-6.069,
AddVertex,-1.09, 0.88,-6.069,
AddFace2,0,1,2,3,
SetColor, 79, 91, 91,
GenerateNormals,

CreateMeshBuilder,
Cube, 0.155, 0.55, 0.01,
Translate,-1.26, 1.05,-6.71,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.155, 0.549, 0.01,
Translate,-1.26, 1.05,-6.08,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.155, 0.01, 0.085,
Translate,-1.26, 1.255,-6.165,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.155, 0.01, 0.165,
Translate,-1.26, 0.885,-6.555,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.165, 0.01, 0.325,
Translate,-1.27, 0.51,-6.395,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.155, 0.01, 0.06,
Translate,-1.27, 0.89,-6.02,
SetColor, 79, 91, 91,

CreateMeshBuilder,
Cube, 0.155, 0.01, 0.245,
Rotate, 1,0,0, -32.8
Translate,-1.27, 1.02,-5.76,
SetColor, 79, 91, 91,


;Rambarde avant
CreateMeshBuilder,
Cube, 0.015, 0.015, 4.38,
Translate,-1.475, 2.595,-1.67,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.015, 4.38,
Translate,-1.475, 2.095,-1.67,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.79, 0.015,
Translate,-1.475, 1.81,-6.035,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.20, 0.015, 0.015,
Translate,-1.29, 1.02,-6.035,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.55, 0.015,
Translate,-1.475, 2.055,-4.945,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.05, 0.015, 0.015,
Translate,-1.44, 1.505,-4.945,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.55, 0.015,
Translate,-1.475, 2.055,-3.855,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.05, 0.015, 0.015,
Translate,-1.44, 1.505,-3.855,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.55, 0.015,
Translate,-1.475, 2.055,-2.765,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.05, 0.015, 0.015,
Translate,-1.44, 1.505,-2.765,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.55, 0.015,
Translate,-1.475, 2.055,-1.675,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.05, 0.015, 0.015,
Translate,-1.44, 1.505,-1.675,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.55, 0.015,
Translate,-1.475, 2.055,-0.585,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.05, 0.015, 0.015,
Translate,-1.44, 1.505,-0.585,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.55, 0.015,
Translate,-1.475, 2.055, 0.505,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.05, 0.015, 0.015,
Translate,-1.44, 1.505, 0.505,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.55, 0.015,
Translate,-1.475, 2.055, 1.595,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.05, 0.015, 0.015,
Translate,-1.44, 1.505, 1.595,
SetColor, 49, 135, 74,

;Rambarde arrière,
CreateMeshBuilder,
Cube, 0.015, 0.015, 0.69,
Translate,-1.475, 2.595, 5.36,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.015, 0.69,
Translate,-1.475, 2.095, 5.36,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.79, 0.015,
Translate,-1.475, 1.81, 6.035,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.20, 0.015, 0.015,
Translate,-1.29, 1.02, 6.035,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.55, 0.015,
Translate,-1.475, 2.055, 5.345,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.05, 0.015, 0.015,
Translate,-1.44, 1.505, 5.345,
SetColor, 49, 135, 74,


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

;Moteur,
CreateMeshBuilder,
AddVertex, 0.80, 3.12,-6.07,
AddVertex, 0.80, 3.12, 6.30,
AddVertex, 0.80, 1.60, 6.30,
AddVertex, 0.80, 1.60,-6.07,
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.40, 2.84,-6.75,
AddVertex, 1.40, 2.84, 6.75,
AddVertex, 1.40, 0.50, 6.75,
AddVertex, 1.40, 0.50,-6.75,
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.39, 2.84, 2.68,
AddVertex, 1.39, 2.84, 4.68,
AddVertex, 1.39, 1.60, 4.68,
AddVertex, 1.39, 1.60, 2.68,
AddFace2,0,1,2,3,
SetColor, 49, 135, 74,


CreateMeshBuilder,
AddVertex, 1.10, 1.60,-6.72,
AddVertex, 1.10, 1.60, 6.72,
AddVertex, 1.10, 0.50, 6.72,
AddVertex, 1.10, 0.50,-6.72,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,Side-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.09, 1.42, 6.069,
AddVertex, 1.40, 1.42, 6.069,
AddVertex, 1.40, 0.88, 6.069,
AddVertex, 1.09, 0.88, 6.069,
AddFace2,0,1,2,3,
SetColor, 79, 91, 91,
GenerateNormals,

CreateMeshBuilder,
Cube, 0.01, 0.13, 0.18,
Translate, 1.40, 1.28, 3.75,
SetColor, 79, 91, 91,

CreateMeshBuilder,
Cube, 0.01, 0.13, 0.18,
Translate, 1.40, 1.28,-3.75,
SetColor, 79, 91, 91,

CreateMeshBuilder,
Cube, 0.155, 0.01, 6.07,
Translate, 1.255, 1.41,0,
SetColor, 79, 91, 91,

CreateMeshBuilder,
Cube, 0.155, 0.01, 5.56,
Translate, 1.255, 1.15,0,
SetColor, 79, 91, 91,

CreateMeshBuilder,
Cube, 0.155, 0.55, 0.01,
Translate, 1.26, 1.05, 6.71,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.155, 0.549, 0.01,
Translate, 1.26, 1.05, 6.08,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.155, 0.01, 0.085,
Translate, 1.26, 1.255, 6.165,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.155, 0.01, 0.165,
Translate, 1.26, 0.885, 6.555,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.165, 0.01, 0.325,
Translate, 1.27, 0.51, 6.395,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.155, 0.01, 0.06,
Translate, 1.27, 0.89, 6.02,
SetColor, 79, 91, 91,

CreateMeshBuilder,
Cube, 0.155, 0.01, 0.245,
Rotate, 1,0,0, 32.8
Translate, 1.27, 1.02, 5.76,
SetColor, 79, 91, 91,

CreateMeshBuilder,
AddVertex, 1.40, 1.42,-6.069,
AddVertex, 1.09, 1.42,-6.069,
AddVertex, 1.09, 0.88,-6.069,
AddVertex, 1.40, 0.88,-6.069,
AddFace2,0,1,2,3,
SetColor, 79, 91, 91,
GenerateNormals,

CreateMeshBuilder,
Cube, 0.155, 0.55, 0.01,
Translate, 1.26, 1.05,-6.71,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.155, 0.549, 0.01,
Translate, 1.26, 1.05,-6.08,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.155, 0.01, 0.085,
Translate, 1.26, 1.255,-6.165,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.155, 0.01, 0.165,
Translate, 1.26, 0.885,-6.555,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.165, 0.01, 0.325,
Translate, 1.27, 0.51,-6.395,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.155, 0.01, 0.06,
Translate, 1.27, 0.89,-6.02,
SetColor, 79, 91, 91,

CreateMeshBuilder,
Cube, 0.155, 0.01, 0.245,
Rotate, 1,0,0, -32.8
Translate, 1.27, 1.02,-5.76,
SetColor, 79, 91, 91,


;Rambarde avant
CreateMeshBuilder,
Cube, 0.015, 0.015, 4.38,
Translate, 1.475, 2.595,-1.67
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.015, 4.38,
Translate, 1.475, 2.095,-1.67
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.79, 0.015,
Translate, 1.475, 1.81,-6.035,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.20, 0.015, 0.015,
Translate, 1.29, 1.02,-6.035,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.55, 0.015,
Translate, 1.475, 2.055,-4.945,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.05, 0.015, 0.015,
Translate, 1.44, 1.505,-4.945,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.55, 0.015,
Translate, 1.475, 2.055,-3.855,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.05, 0.015, 0.015,
Translate, 1.44, 1.505,-3.855,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.55, 0.015,
Translate, 1.475, 2.055,-2.765,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.05, 0.015, 0.015,
Translate, 1.44, 1.505,-2.765,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.55, 0.015,
Translate, 1.475, 2.055,-1.675,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.05, 0.015, 0.015,
Translate, 1.44, 1.505,-1.675,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.55, 0.015,
Translate, 1.475, 2.055,-0.585,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.05, 0.015, 0.015,
Translate, 1.44, 1.505,-0.585,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.55, 0.015,
Translate, 1.475, 2.055, 0.505,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.05, 0.015, 0.015,
Translate, 1.44, 1.505, 0.505,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.55, 0.015,
Translate, 1.475, 2.055, 1.595,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.05, 0.015, 0.015,
Translate, 1.44, 1.505, 1.595,
SetColor, 49, 135, 74,

;Rambarde arrière,
CreateMeshBuilder,
Cube, 0.015, 0.015, 0.69,
Translate, 1.475, 2.595, 5.36,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.015, 0.69,
Translate, 1.475, 2.095, 5.36,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.79, 0.015,
Translate, 1.475, 1.81, 6.035,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.20, 0.015, 0.015,
Translate, 1.29, 1.02, 6.035,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.015, 0.55, 0.015,
Translate, 1.475, 2.055, 5.345,
SetColor, 49, 135, 74,

CreateMeshBuilder,
Cube, 0.05, 0.015, 0.015,
Translate, 1.44, 1.505, 5.345,
SetColor, 49, 135, 74,


;Front moteur
CreateMeshBuilder,
AddVertex,-0.80, 3.32,-6.07,
AddVertex, 0.80, 3.32,-6.07,
AddVertex, 0.80, 1.60,-6.07,
AddVertex,-0.80, 1.60,-6.07,
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,
Cube, 1.318, 0.015, 0.015,
Translate, 0, 2.595, 6.80,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 1.49, 0.015, 0.015,
Translate, 0, 2.095, 6.80,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.27, 0.015,
Rotate, 0, 0, 1, 22
Translate, 1.405, 2.355, 6.80,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.485, 0.015,
Translate, 1.505, 1.63, 6.80,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.10, 0.015,
Rotate, 0, 0, 1, -45
Translate, 1.435, 1.085, 6.80,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.015, 0.05,
Translate, 1.365, 1.02, 6.765,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.486, 0.015,
Translate, 0.405, 2.096, 6.80,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.10, 0.015,
Rotate, 1, 0, 0, 45
Translate, 0.405, 1.550, 6.734,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.486, 0.015,
Translate,-0.405, 2.096, 6.80,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.10, 0.015,
Rotate, 1, 0, 0, 45
Translate,-0.405, 1.550, 6.734,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.485, 0.015,
Translate,-1.505, 1.63, 6.80,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.10, 0.015,
Rotate, 0, 0, 1, 45
Translate,-1.435, 1.085, 6.80,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.015, 0.05,
Translate,-1.365, 1.02, 6.765,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.27, 0.015,
Rotate, 0, 0, 1,-22
Translate,-1.405, 2.355, 6.80,
SetColor, 245, 245, 245,


;phares avant
CreateMeshBuilder,
Cylinder, 20, 0.17, 0.07, 0.1
Rotate, 1, 0, 0, 90
Translate, 1.02, 1.80, 6.70,
SetColor, 245, 245, 245,

CreateMeshBuilder,
AddVertex, 1.18, 1.96, 6.751,
AddVertex, 0.86, 1.96, 6.751,
AddVertex, 0.86, 1.64, 6.751,
AddVertex, 1.18, 1.64, 6.751,
AddFace2,0,1,2,3,
GenerateNormals,

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

;Lueur droite avant
CreateMeshBuilder,
AddVertex, 1.65, 2.455, 6.76,
AddVertex, 0.39, 2.455, 6.76,
AddVertex, 0.39, 1.195, 6.76,
AddVertex, 1.65, 1.195, 6.76,
AddFace2, 0,1,2,3,

LoadTexture,lueur_blanche.png,
SetTextureCoordinates, 0, 0, 0,
SetTextureCoordinates, 1, 1, 0,
SetTextureCoordinates, 2, 1, 1,
SetTextureCoordinates, 3, 0, 1,
SetDecalTransparentColor,0,0,0,
SetEmissiveColor, 255,255,255,
setBlendMode,Additive,10,

CreateMeshBuilder,
Cylinder, 20, 0.17, 0.07, 0.1
Rotate, 1, 0, 0, 90
Translate,-1.02, 1.80, 6.70,
SetColor, 245, 245, 245,

CreateMeshBuilder,
AddVertex,-0.86, 1.96, 6.751,
AddVertex,-1.18, 1.96, 6.751,
AddVertex,-1.18, 1.64, 6.751,
AddVertex,-0.86, 1.64, 6.751,
AddFace2,0,1,2,3,
GenerateNormals,

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

;Lueur gauche avant
CreateMeshBuilder,
AddVertex,-0.39, 2.455, 6.76,
AddVertex,-1.65, 2.455, 6.76,
AddVertex,-1.65, 1.195, 6.76,
AddVertex,-0.39, 1.195, 6.76,
AddFace2, 0,1,2,3,

LoadTexture,lueur_blanche.png,
SetTextureCoordinates, 0, 0, 0,
SetTextureCoordinates, 1, 1, 0,
SetTextureCoordinates, 2, 1, 1,
SetTextureCoordinates, 3, 0, 1,
SetDecalTransparentColor,0,0,0,
SetEmissiveColor, 255,255,255,
setBlendMode,Additive,10,


;Rear moteur
CreateMeshBuilder,
AddVertex, 0.80, 3.12, 6.30,
AddVertex,-0.80, 3.12, 6.30,
AddVertex,-0.80, 1.60, 6.30,
AddVertex, 0.80, 1.60, 6.30,
AddFace2,0,1,2,3,
GenerateNormals,

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

;Rear rampe
CreateMeshBuilder,
Cube, 1.318, 0.015, 0.015,
Translate, 0, 2.595,-6.80,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 1.49, 0.015, 0.015,
Translate, 0, 2.095,-6.80,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.27, 0.015,
Rotate, 0, 0, 1, 22
Translate, 1.405, 2.355,-6.80,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.485, 0.015,
Translate, 1.505, 1.63,-6.80,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.10, 0.015,
Rotate, 0, 0, 1, -45
Translate, 1.435, 1.085,-6.80,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.015, 0.05,
Translate, 1.365, 1.02,-6.765,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.486, 0.015,
Translate, 0.405, 2.096,-6.80,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.10, 0.015,
Rotate, 1, 0, 0,-45
Translate, 0.405, 1.550,-6.734,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.486, 0.015,
Translate,-0.405, 2.096,-6.80,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.10, 0.015,
Rotate, 1, 0, 0,-45
Translate,-0.405, 1.550,-6.734,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.485, 0.015,
Translate,-1.505, 1.63,-6.80,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.10, 0.015,
Rotate, 0, 0, 1, 45
Translate,-1.435, 1.085,-6.80,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.015, 0.05,
Translate,-1.365, 1.02,-6.765,
SetColor, 245, 245, 245,

CreateMeshBuilder,
Cube, 0.015, 0.27, 0.015,
Rotate, 0, 0, 1,-22
Translate,-1.405, 2.355,-6.80,
SetColor, 245, 245, 245,


;phares arrière

CreateMeshBuilder,
Cylinder, 20, 0.17, 0.07, 0.1
Rotate, 1, 0, 0,-90
Translate, 1.02, 1.80,-6.70,
SetColor, 245, 245, 245,

CreateMeshBuilder,
AddVertex, 1.18, 1.96,-6.751,
AddVertex, 0.86, 1.96,-6.751,
AddVertex, 0.86, 1.64,-6.751,
AddVertex, 1.18, 1.64,-6.751,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,phare-rouge.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,192,192,192,

CreateMeshBuilder,
Cylinder, 20, 0.17, 0.07, 0.1
Rotate, 1, 0, 0,-90
Translate,-1.02, 1.80,-6.70,
SetColor, 245, 245, 245,

CreateMeshBuilder,
AddVertex,-0.86, 1.96,-6.751,
AddVertex,-1.18, 1.96,-6.751,
AddVertex,-1.18, 1.64,-6.751,
AddVertex,-0.86, 1.64,-6.751,
AddFace2,0,1,2,3,
GenerateNormals,

LoadTexture,phare-rouge.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,192,192,192,


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

CreateMeshBuilder,
AddVertex, 1.40, 1.60, 6.75,
AddVertex, 1.40, 1.60,-6.75,
AddVertex,-1.40, 1.60,-6.75,
AddVertex,-1.40, 1.60, 6.75,
AddFace,0,1,2,3,
;SetColor, 60, 60, 60,
GenerateNormals,

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

CreateMeshBuilder,
AddVertex, 1.10, 1.16, 6.75,
AddVertex, 1.10, 1.16,-6.75,
AddVertex,-1.10, 1.16,-6.75,
AddVertex,-1.10, 1.16, 6.75,
AddFace2,0,1,2,3,
SetColor, 10, 10, 10,
GenerateNormals,


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

;Avant
CreateMeshBuilder,
AddVertex,-1.40, 3.98, 2.68,
AddVertex, 1.40, 3.98, 2.68,
AddVertex, 1.40, 1.60, 2.68,
AddVertex,-1.40, 1.60, 2.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, 1.07, 3.74, 2.69,
AddVertex,-1.07, 3.74, 2.69,
AddVertex,-1.38, 2.78, 2.69,
AddVertex, 1.38, 2.78, 2.69,
AddFace2,0,1,2,3,
SetColor, 0, 0, 0, 128,
GenerateNormals,

CreateMeshBuilder,
AddVertex, 1.40, 3.98, 2.70,
AddVertex,-1.40, 3.98, 2.70,
AddVertex,-1.40, 1.60, 2.70,
AddVertex, 1.40, 1.60, 2.70,
AddFace2,0,1,2,3,
GenerateNormals,

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

;Arrière
CreateMeshBuilder,
AddVertex, 1.40, 3.98, 4.68,
AddVertex,-1.40, 3.98, 4.68,
AddVertex,-1.40, 1.60, 4.68,
AddVertex, 1.40, 1.60, 4.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, 1.07, 3.74, 4.67,
AddVertex,-1.07, 3.74, 4.67,
AddVertex,-1.38, 2.78, 4.67
AddVertex, 1.38, 2.78, 4.67,
AddFace2,0,1,2,3,
SetColor, 0, 0, 0, 128,
GenerateNormals,

CreateMeshBuilder,
AddVertex,-1.40, 3.98, 4.66,
AddVertex, 1.40, 3.98, 4.66,
AddVertex, 1.40, 1.60, 4.66,
AddVertex,-1.40, 1.60, 4.66,
AddFace2,0,1,2,3,
GenerateNormals,

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


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

;Barre
CreateMeshBuilder,
Cube, 1.30, 0.39, 0.01,
Translate, 0, 1.21, 6.74,
SetColor, 245, 245, 245,

;Avant gauche
CreateMeshBuilder,
Cylinder, 16, 0.12, 0.14, 0.28,
Rotate, 1,0,0,90,
Translate, 0.8, 1.05, 6.87,
SetColor, 79, 91, 91,

CreateMeshBuilder,
Cylinder, 16, 0.10, 0.10, 0.20, 
Rotate, 1,0,0,90,
Translate, 0.8, 1.05, 7.11,
SetColor, 66,66,66,

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

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

;Avant droite
CreateMeshBuilder,
Cylinder, 16, 0.12, 0.14, 0.28,
Rotate, 1,0,0,90,
Translate,-0.8, 1.05, 6.87,
SetColor, 79, 91, 91,

CreateMeshBuilder,
Cylinder, 16, 0.10, 0.10, 0.20, 
Rotate, 1,0,0,90,
Translate,-0.8, 1.05, 7.11,
SetColor, 66, 66, 66,

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

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

;Barre
CreateMeshBuilder,
Cube, 1.30, 0.39, 0.01,
Translate, 0, 1.21,-6.74,
SetColor, 245, 245, 245,

;Arriere gauche
CreateMeshBuilder,
Cylinder, 16, 0.12, 0.12, 0.28,
Rotate, 1,0,0,90,
Translate, 0.8, 1.05,-6.87,
SetColor, 79, 91, 91,

CreateMeshBuilder,
Cylinder, 16, 0.10, 0.10, 0.20, 
Rotate, 1,0,0,90,
Translate, 0.8, 1.05,-7.11,
SetColor, 66, 66, 66,

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

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

;Arriere droite
CreateMeshBuilder,
Cylinder, 16, 0.12, 0.12, 0.28,
Rotate, 1,0,0,90,
Translate,-0.8, 1.05,-6.87,
SetColor, 79, 91, 91,

CreateMeshBuilder,
Cylinder, 16, 0.10, 0.10, 0.20, 
Rotate, 1,0,0,90,
Translate,-0.8, 1.05,-7.11,
SetColor, 66, 66, 66,

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

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

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

;Cabine
CreateMeshBuilder,
AddVertex, 1.21, 3.60, 4.68
AddVertex, 1.21, 3.60, 2.68
AddVertex, 1.08, 3.74, 2.42
AddVertex, 1.08, 3.74, 4.94
AddVertex, 0.92, 3.83, 2.42
AddVertex, 0.92, 3.83, 4.94
AddVertex, 0.60, 3.93, 2.42
AddVertex, 0.60, 3.93, 4.94
AddVertex, 0.00, 3.98, 2.42
AddVertex, 0.00, 3.98, 4.94
AddVertex,-0.60, 3.93, 2.42
AddVertex,-0.60, 3.93, 4.94
AddVertex,-0.92, 3.83, 2.42
AddVertex,-0.92, 3.83, 4.94
AddVertex,-1.08, 3.74, 2.42
AddVertex,-1.08, 3.74, 4.94
AddVertex,-1.21, 3.60, 2.68
AddVertex,-1.21, 3.60, 4.68
AddFace2,0,1,2,3,
AddFace2,3,2,4,5,
AddFace2,5,4,6,7,
AddFace2,7,6,8,9,
AddFace2,9,8,10,11,
AddFace2,11,10,12,13,
AddFace2,13,12,14,15,
AddFace2,15,14,16,17,
SetColor, 79, 91, 91,
GenerateNormals,

CreateMeshBuilder,
AddVertex, 1.19, 3.60, 4.68
AddVertex, 1.19, 3.60, 2.68
AddVertex, 1.40, 2.84, 2.68
AddVertex, 1.40, 2.84, 4.68
AddVertex,-1.19, 3.60, 2.68
AddVertex,-1.19, 3.60, 4.68
AddVertex,-1.40, 2.84, 4.68
AddVertex,-1.40, 2.84, 2.68
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.18, 3.60, 4.58
AddVertex, 1.18, 3.60, 2.78
AddVertex, 1.39, 2.84, 2.78
AddVertex, 1.39, 2.84, 4.58
AddVertex,-1.18, 3.60, 2.78
AddVertex,-1.18, 3.60, 4.58
AddVertex,-1.39, 2.84, 4.58
AddVertex,-1.39, 2.84, 2.78
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
SetColor, 0, 0, 0, 128,
GenerateNormals,


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

;Dessus
CreateMeshBuilder,
AddVertex, 0.771, 3.12, 6.30,
AddVertex,-0.771, 3.12, 6.30,
AddVertex,-0.771, 3.32, 4.68,
AddVertex, 0.771, 3.32, 4.68,
AddVertex,-0.771, 3.32,-6.07,
AddVertex, 0.771, 3.32,-6.07,
AddFace2,0,1,2,3,
AddFace2,3,2,4,5,

LoadTexture,toit-m.png,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,0.13,0,
SetTextureCoordinates,3,0.13,1,
SetTextureCoordinates,4,1,0,
SetTextureCoordinates,5,1,1,
SetDecalTransparentColor,0,0,255,

;coté avant
CreateMeshBuilder,
AddVertex, 0.77, 3.32,-6.07,
AddVertex, 0.77, 3.32, 2.68,
AddVertex, 0.80, 3.28, 2.68,
AddVertex, 0.80, 3.28,-6.07,
AddVertex, 0.80, 3.12, 2.68,
AddVertex, 0.81, 3.12,-6.07,
AddVertex,-0.77, 3.32, 2.68,
AddVertex,-0.77, 3.32,-6.07,
AddVertex,-0.80, 3.28,-6.07,
AddVertex,-0.80, 3.28, 2.68,
AddVertex,-0.80, 3.12,-6.07,
AddVertex,-0.80, 3.12, 2.68,
AddFace2,0,1,2,3,
AddFace2,3,2,4,5,
AddFace2,6,7,8,9,
AddFace2,9,8,10,11,

LoadTexture,toit-ma.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,0.55,
SetTextureCoordinates,3,0,0.55,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,
SetTextureCoordinates,6,0,0,
SetTextureCoordinates,7,1,0,
SetTextureCoordinates,8,1,0.55,
SetTextureCoordinates,9,0,0.55,
SetTextureCoordinates,10,1,1,
SetTextureCoordinates,11,0,1,


;coté arrière
CreateMeshBuilder,
AddVertex, 0.77, 3.32, 4.68,
AddVertex, 0.77, 3.12, 6.30,
AddVertex, 0.80, 3.08, 6.30,
AddVertex, 0.80, 3.28, 4.68,
AddVertex, 0.80, 3.00, 6.30,
AddVertex, 0.80, 3.00, 4.68,
AddVertex,-0.77, 3.12, 6.30,
AddVertex,-0.77, 3.32, 4.68
AddVertex,-0.80, 3.28, 4.68,
AddVertex,-0.80, 3.08, 6.30,
AddVertex,-0.80, 3.00, 4.68,
AddVertex,-0.80, 3.00, 6.30,
AddFace2,0,1,2,3,
AddFace2,3,2,4,5,
AddFace2,6,7,8,9,
AddFace2,9,8,10,11,

LoadTexture,toit-ma.png,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,0.55,
SetTextureCoordinates,3,0,0.55,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,
SetTextureCoordinates,6,0,0,
SetTextureCoordinates,7,1,0,
SetTextureCoordinates,8,1,0.55,
SetTextureCoordinates,9,0,0.55,
SetTextureCoordinates,10,1,1,
SetTextureCoordinates,11,0,1,


;Ventilo sur moteur
CreateMeshBuilder,
Cylinder, 20, 0.10, 0.21, 0.04,
Translate, 0, 3.40,-4.60,
SetColor, 79, 91, 91,

CreateMeshBuilder,
Cylinder, 70, 0.6, 0.6, 0.06,
Translate, 0, 3.35,-4.60,
SetColor, 79, 91, 91,

CreateMeshBuilder,
AddVertex,-0.6, 3.381,-5.20,
AddVertex,-0.6, 3.381,-4.00,
AddVertex, 0.6, 3.381,-4.00,
AddVertex, 0.6, 3.381,-5.20,
AddFace,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.6, 0.31, 0.64,
Translate, 0, 3.07,-2.06,
SetColor, 79, 91, 91,

;Cheminée,
CreateMeshBuilder,
Cylinder, 10, 0.08, 0.08, 0.06,
Translate, 0.69, 3.97, 2.60,
SetColor, 190, 190, 200,

CreateMeshBuilder,
Cube, 0.08, 0.31, 0.08,
Translate, 0.69, 3.63, 2.60,
SetColor, 78, 90, 90,

CreateMeshBuilder,
Cylinder, 10, 0.08, 0.08, 0.06,
Translate,-0.69, 3.97, 2.60,
SetColor, 190, 190, 200,

CreateMeshBuilder,
Cube, 0.08, 0.31, 0.08,
Translate,-0.69, 3.63, 2.60,
SetColor, 78, 90, 90,


CreateMeshBuilder,
AddVertex,-1.00, 1.16, 1.5,
AddVertex,-1.00, 1.16,-0.3,
AddVertex,-1.00, 0.60,-0.3,
AddVertex,-1.00, 0.60, 1.5,
AddVertex,-0.74, 0.34,-0.3,
AddVertex,-0.74, 0.34, 1.5,
AddVertex, 0.74, 0.34,-0.3,
AddVertex, 0.74, 0.34, 1.5,
AddVertex, 1.00, 0.60,-0.3,
AddVertex, 1.00, 0.60, 1.5,
AddVertex, 1.00, 1.16,-0.3,
AddVertex, 1.00, 1.16, 1.5,
AddFace, 0,1,2,3,
AddFace, 3,2,4,5,
AddFace, 5,4,6,7,
AddFace, 7,6,8,9,
AddFace, 9,8,10,11,
AddFace, 1,10,8,6,4,2,
AddFace, 11,0,3,5,7,9,
SetColor, 53, 53, 53,



