;//東急8000系　先頭車,,,
;------ボディ------,,,
CreateMeshBuilder,,;//前面,
AddVertex,-1.4,1,-19.5
AddVertex,-1.4,3.35,-19.5
AddVertex,-1.35,3.46,-19.5
AddVertex,-1.255,3.56,-19.5
AddVertex,-1.135,3.61,-19.5
AddVertex,-0.54,3.68,-19.5
AddVertex,0,3.7,-19.5
AddVertex,0.54,3.68,-19.5
AddVertex,1.135,3.61,-19.5
AddVertex,1.255,3.56,-19.5
AddVertex,1.35,3.46,-19.5
AddVertex,1.4,3.35,-19.5
AddVertex,1.4,1,-19.5
AddFace2,12,0,1,11
AddFace2,11,1,2,10
AddFace2,10,2,3,9
AddFace2,9,3,4,8
AddFace2,8,4,5,7
AddFace2,7,5,6,
SetDecalTransparentColor,0,0,255,
GenerateNormals,,,,

LoadTexture,front1.bmp,,,
SetTextureCoordinates,0,0,0.997,
SetTextureCoordinates,1,0,0.13,
SetTextureCoordinates,2,0.018,0.089,
SetTextureCoordinates,3,0.052,0.052,
SetTextureCoordinates,4,0.095,0.033,
SetTextureCoordinates,5,0.307,0.007,
SetTextureCoordinates,6,0.5,0.001
SetTextureCoordinates,7,0.693,0.007
SetTextureCoordinates,8,0.905,0.033
SetTextureCoordinates,9,0.948,0.052
SetTextureCoordinates,10,0.982,0.089
SetTextureCoordinates,11,1,0.13
SetTextureCoordinates,12,1,0.997

CreateMeshBuilder,,;//後面,,
AddVertex,-1.4,1,0,
AddVertex,-1.4,3.35,0,
AddVertex,-1.35,3.46,0,
AddVertex,-1.255,3.56,0,
AddVertex,-1.135,3.61,0,
AddVertex,-0.54,3.68,0,
AddVertex,0,3.7,0,
AddVertex,0.54,3.68,0,
AddVertex,1.135,3.61,0,
AddVertex,1.255,3.56,0,
AddVertex,1.35,3.46,0,
AddVertex,1.4,3.35,0,
AddVertex,1.4,1,0,
AddFace,12,11,1,0
AddFace,11,10,2,1
AddFace,10,9,3,2
AddFace,9,8,4,3
AddFace,8,7,5,4
AddFace,7,6,5,
GenerateNormals,,,,

LoadTexture,rear.bmp,,
SetTextureCoordinates,0,0,0.997
SetTextureCoordinates,1,0,0.13
SetTextureCoordinates,2,0.018,0.089
SetTextureCoordinates,3,0.052,0.052
SetTextureCoordinates,4,0.095,0.033
SetTextureCoordinates,5,0.307,0.007
SetTextureCoordinates,6,0.5,0.001
SetTextureCoordinates,7,0.693,0.007
SetTextureCoordinates,8,0.905,0.033
SetTextureCoordinates,9,0.948,0.052
SetTextureCoordinates,10,0.982,0.089
SetTextureCoordinates,11,1,0.13
SetTextureCoordinates,12,1,0.997
SetDecalTransparentColor,0,0,0


CreateMeshBuilder,,;//後面,
AddVertex,-1.4,1,-0.005
AddVertex,-1.4,3.35,-0.005
AddVertex,-1.35,3.46,-0.005
AddVertex,-1.255,3.56,-0.005
AddVertex,-1.135,3.61,-0.005
AddVertex,-0.54,3.68,-0.005
AddVertex,0,3.7,-0.005
AddVertex,0.54,3.68,-0.005
AddVertex,1.135,3.61,-0.005
AddVertex,1.255,3.56,-0.005
AddVertex,1.35,3.46,-0.005
AddVertex,1.4,3.35,-0.005
AddVertex,1.4,1,-0.005
AddFace,0,1,11,12
AddFace,1,2,10,11
AddFace,2,3,9,10
AddFace,3,4,8,9
AddFace,4,5,7,8
AddFace,5,6,7,
GenerateNormals,,,,

LoadTexture,rear int.bmp,,,
SetTextureCoordinates,0,0,0.997,
SetTextureCoordinates,1,0,0.13,
SetTextureCoordinates,2,0.018,0.089,
SetTextureCoordinates,3,0.052,0.052,
SetTextureCoordinates,4,0.095,0.033,
SetTextureCoordinates,5,0.307,0.007,
SetTextureCoordinates,6,0.5,0.001,
SetTextureCoordinates,7,0.693,0.007
SetTextureCoordinates,8,0.905,0.033
SetTextureCoordinates,9,0.948,0.052
SetTextureCoordinates,10,0.982,0.089
SetTextureCoordinates,11,1,0.13
SetTextureCoordinates,12,1,0.997
SetDecalTransparentColor,0,0,0

CreateMeshBuilder,,;//連結幌,
AddVertex     ,-0.5,3.2,0.3
AddVertex     ,-0.5,3.2,0
AddVertex     ,0.5,3.2,0
AddVertex     ,0.5,3.2,0.3
AddVertex     ,0.6,3.13,0
AddVertex     ,0.6,3.13,0.3
AddVertex     ,0.6,1.19,0
AddVertex     ,0.6,1.19,0.3,
AddVertex     ,0.5,1.12,0,
AddVertex     ,0.5,1.12,0.3,
AddVertex     ,-0.6,3.13,0.3,
AddVertex     ,-0.6,3.13,0,
AddVertex     ,-0.6,1.19,0,
AddVertex     ,-0.6,1.19,0.3,
AddVertex     ,-0.5,1.12,0,
AddVertex     ,-0.5,1.12,0.3,
AddFace2,0,1,2,3
AddFace2,4,2,3,5
AddFace2,6,4,5,7
AddFace2,8,6,7,9
AddFace2,1,11,10,0
AddFace2,11,12,13,10
AddFace2,12,14,15,13
AddFace2,8,14,15,9
GenerateNormals,,,,

LoadTexture,horo.bmp,,,
SetTextureCoordinates,0,1,0,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,1,
SetTextureCoordinates,3,1,0,
SetTextureCoordinates,4,0,1,
SetTextureCoordinates,5,1,0,
SetTextureCoordinates,6,0,5,
SetTextureCoordinates,7,1,0,
SetTextureCoordinates,8,0,1,
SetTextureCoordinates,9,1,0,
SetTextureCoordinates,10,1,0,
SetTextureCoordinates,11,0,1,
SetTextureCoordinates,12,0,5,
SetTextureCoordinates,13,1,0,
SetTextureCoordinates,14,0,1,
SetTextureCoordinates,15,1,0,


CreateMeshBuilder,,;//左側面,,
AddVertex,1.4,1,-19.5,
AddVertex,1.4,3.35,-19.5,
AddVertex,1.4,3.35,0,
AddVertex,1.4,1,0,
AddFace,0,1,2,3
GenerateNormals,,,,

LoadTexture,side1.bmp,,,
SetTextureCoordinates,0,0.001,1,
SetTextureCoordinates,1,0.001,0.01,
SetTextureCoordinates,2,1,0.01,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,255,255,255,

CreateMeshBuilder,,;//左側面,,
AddVertex,1.37,1,-19.5,
AddVertex,1.37,3.35,-19.5,
AddVertex,1.37,3.35,0,
AddVertex,1.37,1,0,
AddFace,3,2,1,0
GenerateNormals,,,,

LoadTexture,side int.bmp,,,
SetTextureCoordinates,0,0.001,1,
SetTextureCoordinates,1,0.001,0.01,
SetTextureCoordinates,2,1,0.01,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,255,255,255,

CreateMeshBuilder,,;//左側面方向幕,,
AddVertex,1.405,3.09,-9.577,
AddVertex,1.405,3.27,-9.577,
AddVertex,1.405,3.27,-8.93,
AddVertex,1.405,3.09,-8.93,
AddFace,0,1,2,3
GenerateNormals,,,,

LoadTexture,ikisaki.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,


CreateMeshBuilder,,;//左側面転落防止幌,,
AddVertex,1.41,1.2,-0.03,
AddVertex,1.41,2.4,-0.03,
AddVertex,1.41,2.4,0.2,
AddVertex,1.41,1.2,0.2,
AddFace2,0,1,2,3
GenerateNormals,,,,

LoadTexture,horo2.bmp,,,
SetTextureCoordinates,0,0.03,1,
SetTextureCoordinates,1,0.03,0,
SetTextureCoordinates,2,0.99,0,
SetTextureCoordinates,3,0.99,1,
SetDecalTransparentColor,0,0,0,


CreateMeshBuilder,,;//右側面,,
AddVertex,-1.4,1,-19.5,
AddVertex,-1.4,3.35,-19.5,
AddVertex,-1.4,3.35,0,
AddVertex,-1.4,1,0,
AddFace,0,3,2,1
GenerateNormals,,,,

LoadTexture,side1-2.bmp,,,
SetTextureCoordinates,0,0.001,1,
SetTextureCoordinates,1,0.001,0.01,
SetTextureCoordinates,2,1,0.01,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,255,255,255,

CreateMeshBuilder,,;//右側面,,
AddVertex,-1.37,1,-19.5,
AddVertex,-1.37,3.35,-19.5,
AddVertex,-1.37,3.35,0,
AddVertex,-1.37,1,0,
AddFace,1,2,3,0
GenerateNormals,,,,

LoadTexture,side int.bmp,,,
SetTextureCoordinates,0,0.001,1,
SetTextureCoordinates,1,0.001,0.01,
SetTextureCoordinates,2,1,0.01,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,255,255,255,

CreateMeshBuilder,,;//右側面方向幕,,
AddVertex,-1.405,3.09,-9.577,
AddVertex,-1.405,3.27,-9.577,
AddVertex,-1.405,3.27,-8.93,
AddVertex,-1.405,3.09,-8.93,
AddFace,0,3,2,1
GenerateNormals,,,,

LoadTexture,ikisaki.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,


CreateMeshBuilder,,;//右側面転落防止幌,,
AddVertex,-1.41,1.2,-0.03,
AddVertex,-1.41,2.4,-0.03,
AddVertex,-1.41,2.4,0.2,
AddVertex,-1.41,1.2,0.2,
AddFace2,0,1,2,3
GenerateNormals,,,,

LoadTexture,horo2.bmp,,,
SetTextureCoordinates,0,0.03,1,
SetTextureCoordinates,1,0.03,0,
SetTextureCoordinates,2,0.99,0,
SetTextureCoordinates,3,0.99,1,
SetDecalTransparentColor,0,0,0,


CreateMeshBuilder,,;//底面,,
AddVertex,-1.4,1,-19.5,
AddVertex,1.4,1,-19.5,
AddVertex,-1.4,1,0,
AddVertex,1.4,1,0,
AddFace,0,1,3,2
SetColor,0,0,0,
GenerateNormals,,,,


;------屋根------,,,,
CreateMeshBuilder,,;//屋根,,
AddVertex,-1.4,3.35,-19.5,
AddVertex,-1.35,3.46,-19.5,
AddVertex,-1.255,3.56,-19.5,
AddVertex,-1.135,3.61,-19.5,
AddVertex,-0.54,3.68,-19.5
AddVertex,0,3.7,-19.5
AddVertex,0.54,3.68,-19.5
AddVertex,1.135,3.61,-19.5
AddVertex,1.255,3.56,-19.5
AddVertex,1.35,3.46,-19.5
AddVertex,1.4,3.35,-19.5
AddVertex,-1.4,3.35,0
AddVertex,-1.35,3.46,0
AddVertex,-1.255,3.56,0
AddVertex,-1.135,3.61,0
AddVertex,-0.54,3.68,0
AddVertex,0,3.7,0
AddVertex,0.54,3.68,0
AddVertex,1.135,3.61,0
AddVertex,1.255,3.56,0
AddVertex,1.35,3.46,0,
AddVertex,1.4,3.35,0,
AddFace2,1,0,11,12
AddFace2,2,1,12,13
AddFace2,3,2,13,14
AddFace2,4,3,14,15
AddFace2,5,4,15,16
AddFace2,6,5,16,17
AddFace2,7,6,17,18
AddFace2,8,7,18,19
AddFace2,9,8,19,20
AddFace2,10,9,20,21
GenerateNormals,,,,

LoadTexture,yane.bmp,,,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,0.04,0
SetTextureCoordinates,2,0.125,0
SetTextureCoordinates,3,0.15,0
SetTextureCoordinates,4,0.3,0
SetTextureCoordinates,5,0.5,0
SetTextureCoordinates,6,0.7,0
SetTextureCoordinates,7,0.85,0
SetTextureCoordinates,8,0.875,0
SetTextureCoordinates,9,0.96,0
SetTextureCoordinates,10,1,0
SetTextureCoordinates,11,0,1
SetTextureCoordinates,12,0.04,1
SetTextureCoordinates,13,0.125,1
SetTextureCoordinates,14,0.15,1
SetTextureCoordinates,15,0.3,1
SetTextureCoordinates,16,0.5,1
SetTextureCoordinates,17,0.7,1
SetTextureCoordinates,18,0.85,1
SetTextureCoordinates,19,0.875,1
SetTextureCoordinates,20,0.96,1
SetTextureCoordinates,21,1,1


CreateMeshBuilder,,;//ランボード,
AddVertex,-1.25,3.57,-18.92
AddVertex,-1.23,3.63,-18.92
AddVertex,-1.25,3.57,-0.4
AddVertex,-1.23,3.63,-0.4
AddVertex,1.25,3.57,-18.92
AddVertex,1.23,3.63,-18.92
AddVertex,1.25,3.57,-0.4
AddVertex,1.23,3.63,-0.4
AddFace2,2,3,1,0
AddFace2,3,7,5,1
AddFace2,4,5,7,6
AddFace2,0,1,5,4
AddFace2,6,7,3,2
SetColor,120,120,120,
GenerateNormals,,,,


;------屋根上機器------,,,,
CreateMeshBuilder,,;//アンテナ,,
AddVertex          ,-0.02,3.75,-17.67,
AddVertex          ,-0.02,4.08,-17.61,
AddVertex          ,0.02,4.08,-17.61,
AddVertex          ,0.02,3.75,-17.67,
AddVertex          ,-0.02,4.08,-17.33,
AddVertex          ,0.02,4.08,-17.33,
AddVertex          ,-0.02,4.05,-17.33,
AddVertex          ,0.02,4.05,-17.33,
AddVertex          ,-0.02,3.75,-17.54,
AddVertex          ,-0.02,4.03,-17.54,
AddVertex          ,0.02,3.75,-17.54,
AddVertex          ,0.02,4.03,-17.54,
AddFace2,0,1,2,3
AddFace2,1,4,5,2
AddFace2,4,6,7,5
AddFace2,8,9,1,0
AddFace2,10,3,2,11
AddFace2,6,4,1,9
AddFace2,7,11,2,5
AddFace2,8,10,11,9
AddFace2,9,11,7,6
SetColor,160,160,160,
Translate,0,0,-1.3,
GenerateNormals,,,,


CreateMeshBuilder,,;//アンテナ,,
Cylinder,10,0.08,0.1,0.22
Translate,0,3.75,-18.89,
SetColor,140,140,140,


CreateMeshBuilder,,;//クーラー,,
AddVertex,-0.77,3.6,-17.6,
AddVertex,-0.53,4.13,-17.55,
AddVertex,-0.77,3.6,-15.4,
AddVertex,-0.53,4.13,-15.45,
AddVertex,0.77,3.6,-17.6,
AddVertex,0.53,4.13,-17.55,
AddVertex,0.77,3.6,-15.4,
AddVertex,0.53,4.13,-15.45,
AddFace,2,3,1,0
AddFace,3,7,5,1
AddFace,4,5,7,6
AddFace,0,1,5,4
AddFace,6,7,3,2
GenerateNormals,,,,

LoadTexture,cooler2.bmp,,,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,0.025,0.21,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,0.975,0.21,
SetTextureCoordinates,4,0,1,
SetTextureCoordinates,5,0.025,0.79,
SetTextureCoordinates,6,1,1,
SetTextureCoordinates,7,0.975,0.79,


CreateMeshBuilder,,;//クーラー,,
AddVertex,-0.77,3.6,-17.6,
AddVertex,-0.53,4.13,-17.55,
AddVertex,-0.77,3.6,-15.4,
AddVertex,-0.53,4.13,-15.45,
AddVertex,0.77,3.6,-17.6,
AddVertex,0.53,4.13,-17.55,
AddVertex,0.77,3.6,-15.4,
AddVertex,0.53,4.13,-15.45,
AddFace,2,3,1,0
AddFace,3,7,5,1
AddFace,4,5,7,6
AddFace,0,1,5,4
AddFace,6,7,3,2
Translate,0,0,4.82,
GenerateNormals,,,,

LoadTexture,cooler.bmp,,,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,0.025,0.21,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,0.975,0.21,
SetTextureCoordinates,4,0,1,
SetTextureCoordinates,5,0.025,0.79,
SetTextureCoordinates,6,1,1,
SetTextureCoordinates,7,0.975,0.79,


CreateMeshBuilder,,;//クーラー,,
AddVertex,-0.77,3.6,-17.6,
AddVertex,-0.53,4.13,-17.55,
AddVertex,-0.77,3.6,-15.4,
AddVertex,-0.53,4.13,-15.45,
AddVertex,0.77,3.6,-17.6,
AddVertex,0.53,4.13,-17.55,
AddVertex,0.77,3.6,-15.4,
AddVertex,0.53,4.13,-15.45,
AddFace,2,3,1,0
AddFace,3,7,5,1
AddFace,4,5,7,6
AddFace,0,1,5,4
AddFace,6,7,3,2
Translate,0,0,9.64
GenerateNormals,,,

LoadTexture,cooler.bmp,,
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0.025,0.21
SetTextureCoordinates,2,1,0
SetTextureCoordinates,3,0.975,0.21
SetTextureCoordinates,4,0,1
SetTextureCoordinates,5,0.025,0.79
SetTextureCoordinates,6,1,1
SetTextureCoordinates,7,0.975,0.79


CreateMeshBuilder,,;//クーラー,
AddVertex,-0.77,3.6,-17.6,
AddVertex,-0.53,4.13,-17.55,
AddVertex,-0.77,3.6,-15.4,
AddVertex,-0.53,4.13,-15.45,
AddVertex,0.77,3.6,-17.6,
AddVertex,0.53,4.13,-17.55,
AddVertex,0.77,3.6,-15.4,
AddVertex,0.53,4.13,-15.45,
AddFace,2,3,1,0
AddFace,3,7,5,1
AddFace,4,5,7,6
AddFace,0,1,5,4
AddFace,6,7,3,2
Translate,0,0,14.46,
GenerateNormals,,,,

LoadTexture,cooler2.bmp,,,
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0.025,0.21
SetTextureCoordinates,2,1,0
SetTextureCoordinates,3,0.975,0.21
SetTextureCoordinates,4,0,1
SetTextureCoordinates,5,0.025,0.79
SetTextureCoordinates,6,1,1
SetTextureCoordinates,7,0.975,0.79

CreateMeshBuilder,,;//前面窓部,,
AddVertex,-1.4,0.1,-19.5,
AddVertex,1.4,0.1,-19.5,
AddVertex,1.4,1,-19.5,
AddVertex,-1.4,1,-19.5,
AddFace2,3,2,1,0
LoadTexture,skart.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,0,

CreateMeshBuilder,,;//ジャンパ栓,
AddVertex,-0.94,0.9,-19.45
AddVertex,-1.24,0.9,-19.45
AddVertex,-1.24,0.5,-19.45
AddVertex,-0.94.7,0.5,-19.45
AddFace2,0,1,2,3
GenerateNormals,,,,

LoadTexture,plug.bmp,,,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,0,

CreateMeshBuilder,,;//ホース栓,,
AddVertex,0.5,1,-19.48,
AddVertex,1.25,1,-19.48,
AddVertex,1.25,0.43,-19.48,
AddVertex,0.5,0.43,-19.48,
AddFace2,0,1,2,3
GenerateNormals,,,,

LoadTexture,front-under2.bmp,,,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,0,




;------連結器------,,,
CreateMeshBuilder,,;//連結器,
Cube,0.08,0.065,0.15
SetColor,35,35,35
Translate        ,0,0.88,-19.5
GenerateNormals,,,


CreateMeshBuilder,,;//連結器,
Cube,0.08,0.1,0.04
SetColor,35,35,35
Translate        ,-0.08,0.88,-19.8
GenerateNormals,,,


CreateMeshBuilder,,;//連結器,
Cube,0.04,0.09,0.08
SetColor,35,35,35
Translate        ,-0.13,0.88,-19.7
GenerateNormals,,,


CreateMeshBuilder,,;//連結器,
Cube,0.05,0.11,0.03
SetColor,35,35,35
Translate        ,0,0.88,-19.65
GenerateNormals,,,


CreateMeshBuilder,,;//連結器,
Cube,0.13,0.11,0.03
SetColor,35,35,35
Translate        ,0,0.88,-19.62
GenerateNormals,,,


CreateMeshBuilder,,;//連結器,
Cube,0.04,0.09,0.1
SetColor,35,35,35
Translate        ,0.13,0.88,-19.65


CreateMeshBuilder,,;//連結器,
AddVertex,0.17,0.965,-19.75
AddVertex,0.09,0.965,-19.75
AddVertex,0.13,0.88,-19.85
AddVertex,0.09,0.795,-19.75
AddVertex,0.17,0.795,-19.75
AddFace,0,2,1
AddFace,2,4,3
AddFace,3,1,2
AddFace,0,4,2
SetColor,35,35,35
GenerateNormals,,,


CreateMeshBuilder,,;//連結器,
AddVertex,-0.35,0.6,-19.45
AddVertex,-0.35,0.9,-19.45
AddVertex,0.25,0.9,-19.45
AddVertex,0.25,0.6,-19.45,
AddFace2,0,1,2,3
GenerateNormals,,,,

LoadTexture,lever.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,0,


CreateMeshBuilder,,;//後面連結器,,
Cube,0.1,0.1,0.75,
SetColor,35,35,35,
Translate,0,0.9,0,
GenerateNormals,,,,


;------台車(前）------,,,,

CreateMeshBuilder,,;//左台車,,
AddVertex,0.9,0.17,-18.13,
AddVertex,0.9,0.94,-18.13,
AddVertex,0.9,0.94,-15.07,
AddVertex,0.9,0.17,-15.07,
AddFace,0,1,2,3
GenerateNormals,,,,

LoadTexture,daisha1.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,0,


CreateMeshBuilder,,;//左台車,,
AddVertex,0.75,0.17,-18.13,
AddVertex,0.75,0.94,-18.13,
AddVertex,0.75,0.94,-15.07,
AddVertex,0.75,0.17,-15.07,
AddFace2,0,1,2,3
SetColor,50,50,50,
GenerateNormals,,,,

LoadTexture,daisha1.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,0,


CreateMeshBuilder,,;//右台車,,
AddVertex,-0.9,0.17,-18.13,
AddVertex,-0.9,0.94,-18.13,
AddVertex,-0.9,0.94,-15.07,
AddVertex,-0.9,0.17,-15.07,
AddFace,0,3,2,1
GenerateNormals,,,,

LoadTexture,daisha1.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,0,


CreateMeshBuilder,,;//右台車,,
AddVertex,-0.75,0.17,-18.13,
AddVertex,-0.75,0.94,-18.13,
AddVertex,-0.75,0.94,-15.07,
AddVertex,-0.75,0.17,-15.07,
AddFace2,0,3,2,1
SetColor,50,50,50,
GenerateNormals,,,,

LoadTexture,daisha1.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,0,


CreateMeshBuilder,,;//左側空気バネ,,
Cylinder,6,0.38,0.38,0.15
SetColor,30,30,30,
Translate,0.95,0.92,-16.6,


CreateMeshBuilder,,;//左側空気バネ,,
Cylinder,6,0.21,0.21,0.1
SetColor,60,56,56,
Translate,0.95,0.8,-16.6,


CreateMeshBuilder,,;//右側空気バネ,,
Cylinder,6,0.38,0.38,0.15
SetColor,30,30,30,
Translate,-0.95,0.92,-16.6,


CreateMeshBuilder,,;//右側空気バネ,,
Cylinder,6,0.21,0.21,0.1
SetColor,60,56,56,
Translate,-0.95,0.8,-16.6,


;------台車(後）------,,,,

CreateMeshBuilder,,;//左台車,,
AddVertex,0.9,0.17,-4.43,
AddVertex,0.9,0.94,-4.43,
AddVertex,0.9,0.94,-1.37,
AddVertex,0.9,0.17,-1.37,
AddFace,0,1,2,3
GenerateNormals,,,,

LoadTexture,daisha1.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,0,


CreateMeshBuilder,,;//左台車,,
AddVertex,0.75,0.17,-4.43,
AddVertex,0.75,0.94,-4.43,
AddVertex,0.75,0.94,-1.37,
AddVertex,0.75,0.17,-1.37,
AddFace2,0,1,2,3
SetColor,50,50,50,
GenerateNormals,,,,

LoadTexture,daisha1.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,0,


CreateMeshBuilder,,;//右台車,,
AddVertex,-0.9,0.17,-4.43,
AddVertex,-0.9,0.94,-4.43,
AddVertex,-0.9,0.94,-1.37,
AddVertex,-0.9,0.17,-1.37,
AddFace,0,3,2,1
GenerateNormals,,,,

LoadTexture,daisha1.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,0,


CreateMeshBuilder,,;//右台車,,
AddVertex,-0.75,0.17,-4.43,
AddVertex,-0.75,0.94,-4.43,
AddVertex,-0.75,0.94,-1.37,
AddVertex,-0.75,0.17,-1.37,
AddFace2,0,3,2,1
SetColor,50,50,50,
GenerateNormals,,,,

LoadTexture,daisha1.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,0,


CreateMeshBuilder,,;//左側空気バネ,,
Cylinder,6,0.38,0.38,0.15
SetColor,30,30,30,
Translate,0.95,0.92,-2.9,


CreateMeshBuilder,,;//左側空気バネ,,
Cylinder,6,0.21,0.21,0.1
SetColor,60,56,56,
Translate,0.95,0.8,-2.9,


CreateMeshBuilder,,;//右側空気バネ,,
Cylinder,6,0.38,0.38,0.15
SetColor,30,30,30,
Translate,-0.95,0.92,-2.9,


CreateMeshBuilder,,;//右側空気バネ,,
Cylinder,6,0.21,0.21,0.1
SetColor,60,56,56,
Translate,-0.95,0.8,-2.9,


;------床下機器------,,,,
CreateMeshBuilder,,;//ステップ,,
AddVertex,1.32,0.47,-18.74,
AddVertex,1.32,1,-18.74,
AddVertex,1.32,1,-18.49,
AddVertex,1.32,0.47,-18.49,
AddVertex,-1.32,0.47,-18.74,
AddVertex,-1.32,1,-18.74,
AddVertex,-1.32,1,-18.49,
AddVertex,-1.32,0.47,-18.49,
AddFace2,0,1,2,3
AddFace2,4,5,6,7
GenerateNormals,,,,

LoadTexture,step.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetTextureCoordinates,4,1,1,
SetTextureCoordinates,5,1,0,
SetTextureCoordinates,6,0,0,
SetTextureCoordinates,7,0,1,
SetDecalTransparentColor,0,0,0,


CreateMeshBuilder,,;//床下機器,,
AddVertex,1.1,0.25,-14.1,
AddVertex,1.1,1,-14.1,
AddVertex,1.1,1,-4.65,
AddVertex,1.1,0.25,-4.65,
AddVertex,-1.1,0.25,-14.1,
AddVertex,-1.1,1,-14.1,
AddVertex,-1.1,1,-4.65,
AddVertex,-1.1,0.25,-4.65,
AddFace,0,1,2,3
AddFace,4,7,6,5
AddFace,4,5,1,0
AddFace,3,2,6,7
GenerateNormals,,,,

LoadTexture,Tc-under.bmp,,,
SetTextureCoordinates,0,0.005,0.99,
SetTextureCoordinates,1,0.005,0.03,
SetTextureCoordinates,2,0.998,0.03,
SetTextureCoordinates,3,0.998,0.99,
SetTextureCoordinates,4,0.005,0.99,
SetTextureCoordinates,5,0.005,0.03,
SetTextureCoordinates,6,0.998,0.03,
SetTextureCoordinates,7,0.998,0.99,


CreateMeshBuilder,,;//床下機器,,
Cube,0.75,0.15,0.55
SetColor,18,19,19
Translate,0,0.9,-18.8
GenerateNormals,,,


CreateMeshBuilder,,;//床下機器,
Cube,0.75,0.15,0.7
SetColor,22,19,10
Translate,0,0.9,-0.701
GenerateNormals,,,



CreateMeshBuilder,,;//前面,
AddVertex,-1.4,1,-18
AddVertex,-1.4,3.35,-18,
AddVertex,-1.35,3.46,-18,
AddVertex,-1.255,3.56,-18,
AddVertex,-1.135,3.61,-18,
AddVertex,-0.54,3.68,-18,
AddVertex,0,3.7,-18,
AddVertex,0.54,3.68,-18,
AddVertex,1.135,3.61,-18,
AddVertex,1.255,3.56,-18,
AddVertex,1.35,3.46,-18,
AddVertex,1.4,3.35,-18,
AddVertex,1.4,1,-18,
AddFace2,12,0,1,11
AddFace2,11,1,2,10
AddFace2,10,2,3,9
AddFace2,9,3,4,8
AddFace2,8,4,5,7
AddFace2,7,5,6,
GenerateNormals,,,,

LoadTexture,cabin.bmp,,,
SetTextureCoordinates,0,0,0.997,
SetTextureCoordinates,1,0,0.13,
SetTextureCoordinates,2,0.018,0.089,
SetTextureCoordinates,3,0.052,0.052,
SetTextureCoordinates,4,0.095,0.033,
SetTextureCoordinates,5,0.307,0.007,
SetTextureCoordinates,6,0.5,0.001,
SetTextureCoordinates,7,0.693,0.007,
SetTextureCoordinates,8,0.905,0.033,
SetTextureCoordinates,9,0.948,0.052,
SetTextureCoordinates,10,0.982,0.089,
SetTextureCoordinates,11,1,0.13,
SetTextureCoordinates,12,1,0.997,
SetDecalTransparentColor,0,0,255


CreateMeshBuilder,,;//底面,,
AddVertex    ,-1.4,1,-19.5,
AddVertex    ,-1.4,1,0,
AddVertex    ,1.4,1,0,
AddVertex    ,1.4,1,-19.5,
AddVertex    ,-1.4,1,-19.5,
AddVertex    ,1.4,1,-19.5,
AddFace,0,3,2,1
AddFace,4,5,3,0
SetColor,0,0,0,
GenerateNormals,,,,

CreateMeshBuilder,,;//底面,,
AddVertex    ,-1.4,1.12,-19,5
AddVertex    ,-1.4,1.12,0,
AddVertex    ,1.4,1.12,0,
AddVertex    ,1.4,1.12,-19.5,
AddVertex    ,-1.4,1.12,-19.5,
AddVertex    ,1.4,1.12,-19.5,
AddFace,0,1,2,3
AddFace,4,0,3,5
SetColor,172,143,119,
GenerateNormals,,,,

;------Kaca--------;,,,,
CreateMeshBuilder,,,,
AddVertex,1.39,1.9,-10.75,
AddVertex,1.39,3.2,-10.75,
AddVertex,1.39,3.2,-8.7,
AddVertex,1.39,1.9,-8.7,
AddFace2,0,1,2,3
SetColor,80,80,160,90
Translate,0,0,0,

CreateMeshBuilder,,,,
AddVertex,-1.39,1.9,-10.75,
AddVertex,-1.39,3.2,-10.75,
AddVertex,-1.39,3.2,-8.7,
AddVertex,-1.39,1.9,-8.7,
AddFace2,3,2,1,0
SetColor,80,80,160,90
Translate,0,0,0,

CreateMeshBuilder,,,,
AddVertex,1.39,1.9,-10.75,
AddVertex,1.39,3.2,-10.75,
AddVertex,1.39,3.2,-8.7,
AddVertex,1.39,1.9,-8.7,
AddFace2,0,1,2,3
SetColor,80,80,160,90
Translate,0,0,4.8,

CreateMeshBuilder,,,,
AddVertex,-1.39,1.9,-10.75,
AddVertex,-1.39,3.2,-10.75,
AddVertex,-1.39,3.2,-8.7,
AddVertex,-1.39,1.9,-8.7,
AddFace2,3,2,1,0
SetColor,80,80,160,90
Translate,0,0,4.8,

CreateMeshBuilder,,,,
AddVertex,1.39,1.9,-10.75,
AddVertex,1.39,3.2,-10.75,
AddVertex,1.39,3.2,-8.7,
AddVertex,1.39,1.9,-8.7,
AddFace2,0,1,2,3
SetColor,80,80,160,90
Translate,0,0,-4.85,

CreateMeshBuilder,,,,
AddVertex,-1.39,1.9,-10.75,
AddVertex,-1.39,3.2,-10.75,
AddVertex,-1.39,3.2,-8.7,
AddVertex,-1.39,1.9,-8.7,
AddFace2,3,2,1,0
SetColor,80,80,160,90
Translate,0,0,-4.85,

CreateMeshBuilder,,,,
AddVertex,1.39,1.9,-10.65,
AddVertex,1.39,3.2,-10.65,
AddVertex,1.39,3.2,-9.55,
AddVertex,1.39,1.9,-9.55,
AddFace2,0,1,2,3
SetColor,80,80,160,90
Translate,0,0,9.45,

CreateMeshBuilder,,,,
AddVertex,-1.39,1.9,-10.75,
AddVertex,-1.39,3.2,-10.75,
AddVertex,-1.39,3.2,-9.55,
AddVertex,-1.39,1.9,-9.55,
AddFace2,3,2,1,0
SetColor,80,80,160,90
Translate,0,0,9.45,

CreateMeshBuilder,,,,
AddVertex,-1.65,1.9,-9.452,
AddVertex,-1.65,2.9,-9.452,
AddVertex,-2.25,2.9,-9.452,
AddVertex,-2.25,1.9,-9.452,
AddFace2,0,1,2,3
SetColor,80,80,160,90
Translate,1,0,9.45,


CreateMeshBuilder,,,,
AddVertex,-1.65,1.9,-9.452,
AddVertex,-1.65,2.9,-9.452,
AddVertex,-2.25,2.9,-9.452,
AddVertex,-2.25,1.9,-9.452,
AddFace2,0,1,2,3
SetColor,80,80,160,90
Translate,2.9,0,9.45,

CreateMeshBuilder,,;//atap interior,,
AddVertex,-1.32,3.45,-19.5,
AddVertex,-1.32,3.45,0,
AddVertex,1.32,3.45,0,
AddVertex,1.32,3.45,-19.5,
AddFace2,0,1,2,3
SetColor,255,255,255
GenerateNormals

LoadTexture,ceiling.bmp
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,1,1
SetTextureCoordinates,2,1,0
SetTextureCoordinates,3,0,0

;--Kaca kabin masinis--

;Kiri
CreateMeshBuilder,,,,
AddVertex,1.39,1.9,-9.6,
AddVertex,1.39,3.2,-9.6,
AddVertex,1.39,3.2,-10.5,
AddVertex,1.39,1.9,-10.5,
AddFace2,0,1,2,3
SetColor,80,80,160,90
Translate,0,0,-8.75,

;Kanan
CreateMeshBuilder,,,,
AddVertex,-1.39,1.9,-9.6,
AddVertex,-1.39,3.2,-9.6,
AddVertex,-1.39,3.2,-10.5,
AddVertex,-1.39,1.9,-10.5,
AddFace2,3,2,1,0
SetColor,80,80,160,90
Translate,0,0,-8.65,

;--Kaca depan--
;Kanan
CreateMeshBuilder,,,,
AddVertex,-1.53,2.045,-19.497,
AddVertex,-1.53,2.935,-19.497,
AddVertex,-2.33,2.935,-19.497,
AddVertex,-2.33,2.045,-19.497,
AddFace2,0,1,2,3
Setcolor,80,80,160,90
Translate,1.02,0,0,

;Tengah
CreateMeshBuilder,,,,
AddVertex,-2.62,2.07,-19.497,
AddVertex,-2.62,2.905,-19.497,
AddVertex,-3.16,2.905,-19.497,
AddVertex,-3.16,2.07,-19.497,
AddFace2,0,1,2,3
Setcolor,80,80,160,90
Translate,2.9,0,0,

;Kiri
CreateMeshBuilder,,,,
AddVertex,-1.59,2.03,-19.497,
AddVertex,-1.59,2.935,-19.497,
AddVertex,-2.375,2.935,-19.497,
AddVertex,-2.375,2.03,-19.497,
AddFace2,0,1,2,3
Setcolor,80,80,160,90
Translate,2.9,0,0,


;------影------,,,,
CreateMeshBuilder,,;//影,,
AddVertex,-1.4,-0.1,-19.5,
AddVertex,-1.4,-0.1,0.25,
AddVertex,1.4,-0.1,0.25,
AddVertex,1.4,-0.1,-19.5,
AddFace,0,1,2,3
SetColor,0,0,0,150
GenerateNormals,,,,

;----- Panel kabin -----
CreateMeshBuilder,,;//前面,
AddVertex,-1.4,1,-19.495
AddVertex,-1.4,3.35,-19.495
AddVertex,-1.35,3.46,-19.495
AddVertex,-1.255,3.56,-19.495
AddVertex,-1.135,3.61,-19.495,
AddVertex,-0.54,3.68,-19.495,
AddVertex,0,3.7,-19.495,
AddVertex,0.54,3.68,-19.495,
AddVertex,1.135,3.61,-19.495,
AddVertex,1.255,3.56,-19.495,
AddVertex,1.35,3.46,-19.495,
AddVertex,1.4,3.35,-19.495,
AddVertex,1.4,1,-19.495,
AddFace2,12,0,1,11
AddFace2,11,1,2,10
AddFace2,10,2,3,9
AddFace2,9,3,4,8
AddFace2,8,4,5,7
AddFace2,7,5,6,
SetDecalTransparentColor,0,0,255,

LoadTexture,front3.bmp,,
SetTextureCoordinates,0,0,0.997
SetTextureCoordinates,1,0,0.13
SetTextureCoordinates,2,0.018,0.089
SetTextureCoordinates,3,0.052,0.052
SetTextureCoordinates,4,0.095,0.033
SetTextureCoordinates,5,0.307,0.007
SetTextureCoordinates,6,0.5,0.001
SetTextureCoordinates,7,0.693,0.007
SetTextureCoordinates,8,0.905,0.033
SetTextureCoordinates,9,0.948,0.052
SetTextureCoordinates,10,0.982,0.089
SetTextureCoordinates,11,1,0.13
SetTextureCoordinates,12,1,0.997

CreateMeshBuilder,,;//前面窓部,,
AddVertex,1.35,1.82,-19.49,
AddVertex,0.5,1.82,-19.49,
AddVertex,0.5,2.18,-19.49,
AddVertex,1.35,2.18,-19.49,
AddFace2,0,1,2,3
SetColor,91,38,24

CreateMeshBuilder,,;//前面窓部,,
AddVertex,1.35,1.82,-19.25,
AddVertex,0.5,1.82,-19.25,
AddVertex,0.5,2.2,-19.35,
AddVertex,1.35,2.2,-19.35,
AddFace,3,2,1,0
Translate,0,-0.02,0
LoadTexture,panel.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//前面窓部,,
AddVertex,1.35,2.2,-19.35,
AddVertex,0.5,2.2,-19.35,
AddVertex,0.5,2.2,-19.5,
AddVertex,1.35,2.2,-19.5,
AddFace2,3,2,1,0
Translate,0,-0.02,0
LoadTexture,panel2.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,,;//前面窓部,,
AddVertex,0.5,1.82,-19.25,
AddVertex,1.35,1.82,-19.25,
AddVertex,1.35,1.77,-18.95,
AddVertex,0.5,1.77,-18.95,
AddFace2,3,2,1,0
Translate,0,-0.02,0
LoadTexture,panel3.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,,;//前面窓部,,
AddVertex,0.5,1.77,-18.95,
AddVertex,1.35,1.77,-18.95,
AddVertex,1.35,1.72,-18.95,
AddVertex,0.5,1.72,-18.95,
AddFace,3,2,1,0
Translate,0,-0.02,0
LoadTexture,panel4.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,,;//前面窓部,,
AddVertex,0.5,1.75,-18.95,
AddVertex,1.4,1.75,-18.95,
AddVertex,1.4,1.75,-19.35,
AddVertex,0.5,1.75,-19.35,
AddFace2,3,2,1,0
Translate,0,-0.02,0
LoadTexture,panel2.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,



CreateMeshBuilder,,;//前面窓部,,
AddVertex,0.5,1.75,-19.35,
AddVertex,1.4,1.75,-19.35,
AddVertex,1.4,1.12,-19.35,
AddVertex,0.5,1.12,-19.35,
AddFace2,3,2,1,0
Translate,0,-0.02,0
LoadTexture,panel2.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//前面窓部,,
AddVertex,0.5,2.2,-19.5,
AddVertex,0.5,2.2,-18.95,
AddVertex,0.5,1.12,-18.95,
AddVertex,0.5,1.12,-19.5,
AddFace2,3,2,1,0
Translate,0,-0.02,0
LoadTexture,panel-side.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//前面窓部,,
AddVertex,0.5,1.28,-19.35,
AddVertex,1.4,1.28,-19.35,
AddVertex,1.4,1.19,-18.95,
AddVertex,0.5,1.19,-18.95,
AddFace,3,2,1,0
Translate,0,-0.02,0
LoadTexture,klaxon.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,,;//前面窓部,,
AddVertex,0.5,1.19,-18.95,
AddVertex,1.4,1.19,-18.95,
AddVertex,1.4,1.12,-18.95,
AddVertex,0.5,1.12,-18.95,
AddFace,3,2,1,0
Translate,0,-0.02,0
LoadTexture,klaxon2.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,


;----- Kursi masinis -----
;Penyangga
CreateMeshBuilder
Cylinder,10,0.05,0.05,0.5
SetColor,50,50,50
Translate,0.93,1.37,-18.3
GenerateNormals

;Horizontal
CreateMeshBuilder
Cube,0.3,0.03,0.28
SetColor,255,255,0
Translate,0.93,1.6,-18.3
GenerateNormals

;Vertikal
CreateMeshBuilder
Cube,0.3,0.3,0.02
SetColor,255,255,0
Translate,0.93,1.9,-18.04

;----- Panel kanan -----
; panel workspace
CreateMeshBuilder
AddVertex, -1.35, 2.00, -19.5
AddVertex, -1.35, 2.00, -19.2
AddVertex, -0.45, 2.00, -19.2
AddVertex, -0.45, 2.00, -19.5
AddFace2, 3, 2, 1, 0 ; top
AddVertex, -1.35, 2.00, -19.2
AddVertex, -1.35, 1.10, -19.2
AddVertex, -0.45, 1.10, -19.2
AddVertex, -0.45, 2.00, -19.2
AddFace2, 7, 6, 5, 4 ; front
AddVertex, -0.45, 2.00, -19.5
AddVertex, -0.45, 1.10, -19.5
AddVertex, -0.45, 1.10, -19.2
AddVertex, -0.45, 2.00, -19.2
AddFace2, 8, 9, 10, 11 ; right
AddVertex, -1.35, 1.10, -19.2
AddVertex, -1.35, 2.00, -19.2
AddVertex, -1.35, 2.00, -19.5
AddVertex, -1.35, 1.10, -19.5
AddFace2, 12, 13, 14, 15 ; left
SetColor,172,143,119

;-----Tongkat kemudi-----
;Vertikal
CreateMeshBuilder
Cube,0.01,0.11,0.01
SetColor,50,50,50
Translate,0.926,1.85,-19

;Vertikal
CreateMeshBuilder
Cube,0.03,0.05,0.01
SetColor,50,50,50
Translate,0.926,1.9,-19

;Horizontal
CreateMeshBuilder
Cube,0.1,0.01,0.01
SetColor,50,50,50
Translate,0.926,1.95,-19

;-----Peringatan kabin (bhs. Jepang)-----
CreateMeshBuilder
AddVertex,0.19,2.7,-17.997
AddVertex,0.19,2.6,-17.997
AddVertex,-0.19,2.6,-17.997
AddVertex,-0.19,2.7,-17.997
AddFace2,0,1,2,3
Translate,0.003,0,0
GenerateNormals

LoadTexture,cabin-res.bmp
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1
SetTextureCoordinates,2,1,1
SetTextureCoordinates,3,1,0

; ----- Tambahan -----
; 1. Logo Tokyu Car Corp.
; a
;CreateMeshBuilder
;AddVertex,0.55,3.1,-17.997
;AddVertex,0.55,3.0,-17.997
;AddVertex,0.98,3.0,-17.997
;AddVertex,0.98,3.1,-17.997
;AddFace2,0,1,2,3
;Translate,0,0,0
;GenerateNormals

;LoadTexture,tokyu-logo.bmp
;SetTextureCoordinates,0,0,0
;SetTextureCoordinates,1,0,1
;SetTextureCoordinates,2,1,1
;SetTextureCoordinates,3,1,0

; b
;CreateMeshBuilder
;AddVertex,0.55,2.97,-17.997
;AddVertex,0.55,2.87,-17.997
;AddVertex,0.98,2.87,-17.997
;AddVertex,0.98,2.97,-17.997
;AddFace2,0,1,2,3
;Translate,0,0,0
;GenerateNormals

;LoadTexture,tokyusharyou.bmp
;SetTextureCoordinates,0,0,0
;SetTextureCoordinates,1,0,1
;SetTextureCoordinates,2,1,1
;SetTextureCoordinates,3,1,0


; 2. Logo Laurel Prize
;CreateMeshBuilder
;AddVertex,0.1,3.35,-17.997
;AddVertex,0.1,3.1,-17.997
;AddVertex,-0.1,3.1,-17.997
;AddVertex,-0.1,3.35,-17.997
;AddFace2,0,1,2,3
;Translate,0,0,0
;GenerateNormals

;LoadTexture,laurel-logo.bmp
;SetTextureCoordinates,0,0,0
;SetTextureCoordinates,1,0,1
;SetTextureCoordinates,2,1,1
;SetTextureCoordinates,3,1,0

; 3. Nomor gerbong & rangkaian
CreateMeshBuilder,,;//右側面車番,,
AddVertex,-1.05,3.1,-17.997
AddVertex,-1.05,3.2,-17.997
AddVertex,-0.75,3.2,-17.997
AddVertex,-0.75,3.1,-17.997
AddFace2,0,1,2,3
GenerateNormals,,,,

LoadTexture,num.bmp,,,
SetTextureCoordinates,0,1,0.12,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,0.12,

CreateMeshBuilder,,;//右側面車番,,
AddVertex,-0.65,3.3,-17.997
AddVertex,-0.65,3.4,-17.997
AddVertex,-0.55,3.4,-17.997
AddVertex,-0.55,3.3,-17.997
AddFace2,0,1,2,3
GenerateNormals,,,,

LoadTexture,carnum.bmp,,,
SetTextureCoordinates,0,1,0.12,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,0.12,

;Belakang
CreateMeshBuilder,,;//右側面車番,,
AddVertex,1.1,3.15,-0.007
AddVertex,1.1,3.25,-0.007
AddVertex,0.8,3.25,-0.007
AddVertex,0.8,3.15,-0.007
AddFace2,0,3,2,1
GenerateNormals,,,,

LoadTexture,num.bmp,,,
SetTextureCoordinates,0,1,0.12,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,0.12,

CreateMeshBuilder,,;//右側面車番,,
AddVertex,0.69,3.3,-0.007
AddVertex,0.69,3.4,-0.007
AddVertex,0.59,3.4,-0.007
AddVertex,0.59,3.3,-0.007
AddFace2,0,3,2,1
GenerateNormals,,,,

LoadTexture,carnum.bmp,,,
SetTextureCoordinates,0,1,0.12,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,0.12,

;Terdepan
CreateMeshBuilder,,;//右側面車番,,
AddVertex,1.17,2.95,-19.503
AddVertex,1.17,3.11,-19.503
AddVertex,0.64,3.11,-19.503
AddVertex,0.64,2.95,-19.503
AddFace2,0,3,2,1
GenerateNormals,,,,

LoadTexture,num.bmp,,,
SetTextureCoordinates,0,1,0.12,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,0.12,

;4. Tanda peringatan
;CreateMeshBuilder
;AddVertex,0.1,3.05,-17.997
;AddVertex,0.1,2.95,-17.997
;AddVertex,-0.1,2.95,-17.997
;AddVertex,-0.1,3.05,-17.997
;AddFace2,0,1,2,3
;Translate,0,0,0
;GenerateNormals

;LoadTexture,forbidden.bmp
;SetTextureCoordinates,0,0,0
;SetTextureCoordinates,1,0,1
;SetTextureCoordinates,2,1,1
;SetTextureCoordinates,3,1,0

CreateMeshBuilder,,;//左側面,,
AddVertex,0.7,1.1,-19.5,
AddVertex,0.7,3.45,-19.5,
AddVertex,0.7,3.45,0,
AddVertex,0.7,1.1,0,
AddFace2,3,2,1,0
GenerateNormals,,,,
,,,,
LoadTexture,pegangan2.bmp,,,
SetTextureCoordinates,0,0.001,1,
SetTextureCoordinates,1,0.001,0.01,
SetTextureCoordinates,2,1,0.01,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,0,
,,,,
CreateMeshBuilder,,;//左側面,,
AddVertex,-0.7,1.1,-19.5,
AddVertex,-0.7,3.45,-19.5,
AddVertex,-0.7,3.45,0,
AddVertex,-0.7,1.1,0,
AddFace2,3,2,1,0
GenerateNormals,,,,
,,,,
LoadTexture,pegangan2.bmp,,,
SetTextureCoordinates,0,0.001,1,
SetTextureCoordinates,1,0.001,0.01,
SetTextureCoordinates,2,1,0.01,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,0,

CreateMeshBuilder,,,,
addVertex,-1.39,3.1,0,
addVertex,-1.39,3.1,-19.5,
addVertex,1.39,3.1,-19.5,
addVertex,1.39,3.1,0,
addFace2,0,1,2,3
,,,,
LoadTexture,rak3.png,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,-1,0,
SetTextureCoordinates,3,-1,1,
SetDecalTransparentColor,0,0,0,

;------openBVE用------,,,,
;TranslateAll,0,0,9.75,
;openBVEの運転車両用として使う場合は上記;TranslateAllの;を消去してください。,,,,

TranslateAll,0,0,10,
RotateAll,0,1,0,180

;-------------------,,,,
CreateMeshBuilder,,,,
AddVertex,-0.65,1.97,8.42,
AddVertex,-1.35,1.97,8.42,
AddVertex,-1.35,1.24,8.42,
AddVertex,-0.65,1.24,8.42,
AddVertex,1.3,1.97,8.42,
AddVertex,0.6,1.97,8.42,
AddVertex,0.6,1.24,8.42,
AddVertex,1.3,1.24,8.42,
AddFace,0,1,2,3
AddFace,4,5,6,7
Translate,0,0.1,1.09,
GenerateNormals,,,

LoadTexture,glow_white.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,0
SetEmissiveColor,255,255,255
SetBlendMode,Additive,2,

;//Nomor gerbong - kiri
CreateMeshBuilder,,;//右側面車番,,
AddVertex,-1.41,2.64,-6.7,
AddVertex,-1.41,2.8,-6.7,
AddVertex,-1.41,2.8,-6.15,
AddVertex,-1.41,2.64,-6.15,
AddFace2,0,3,2,1
Translate,0,0,12.38,
GenerateNormals,,,,

LoadTexture,num.bmp,,,
SetTextureCoordinates,0,1,0.12,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,0.12,

;//Nomor gerbong - kanan
CreateMeshBuilder,,;//左側面車番,,
AddVertex,1.41,2.64,-6.7,
AddVertex,1.41,2.8,-6.7,
AddVertex,1.41,2.8,-6.15,
AddVertex,1.41,2.64,-6.15,
AddFace2,0,1,2,3
GenerateNormals,,,,

LoadTexture,num.bmp,,,
SetTextureCoordinates,0,0,0.12,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,0.12,

;//Nomor gerbong - kabin
CreateMeshBuilder,,;//左側面車番,,
AddVertex,-1.36,2.44,-6.65,
AddVertex,-1.36,2.6,-6.65,
AddVertex,-1.36,2.6,-6.15,
AddVertex,-1.36,2.44,-6.15,
AddFace2,0,1,2,3
Translate,0,0,15.6
GenerateNormals,,,,

LoadTexture,num.bmp,,,
SetTextureCoordinates,0,0,0.12,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,0.12,

;---- Urutan gerbong ----

;//Nomor gerbong - kiri
CreateMeshBuilder,,;//右側面車番,,
AddVertex,-1.41,2.64,-6.3,
AddVertex,-1.41,2.8,-6.3,
AddVertex,-1.41,2.8,-6.15,
AddVertex,-1.41,2.64,-6.15,
AddFace2,0,3,2,1
Translate,0,0,14.28,
GenerateNormals,,,,

LoadTexture,carnum.bmp,,,
SetTextureCoordinates,0,1,0.12,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,0.12,

;//Nomor gerbong - kanan
CreateMeshBuilder,,;//左側面車番,,
AddVertex,1.41,2.64,-6.3,
AddVertex,1.41,2.8,-6.3,
AddVertex,1.41,2.8,-6.15,
AddVertex,1.41,2.64,-6.15,
AddFace2,0,1,2,3
Translate,0,0,-2.3
GenerateNormals,,,,

LoadTexture,carnum.bmp,,,
SetTextureCoordinates,0,0,0.12,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,0.12,