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

CreateMeshBuilder,,;//前面窓部,,
AddVertex,-1.4,1,-19.495,
AddVertex,1.4,1,-19.495,
AddVertex,1.4,3.8,-19.495,
AddVertex,-1.4,3.8,-19.495,
AddFace2,3,2,1,0
LoadTexture,blk_int.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,
SetEmissiveColor,255,255,255

CreateMeshBuilder,,;//前面窓部,,
AddVertex,-1.4,1,0,
AddVertex,1.4,1,0,
AddVertex,1.4,3.8,0,
AddVertex,-1.4,3.8,0,
AddFace2,0,1,2,3
LoadTexture,blk.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,,;//前面窓部,,
AddVertex,-1.4,1,-0.005,
AddVertex,1.4,1,-0.005,
AddVertex,1.4,3.8,-0.005,
AddVertex,-1.4,3.8,-0.005,
AddFace2,0,1,2,3
LoadTexture,blk_int.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,
SetEmissiveColor,255,255,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.35,1,-19.5,
AddVertex     ,1.35,1,-19.5,
AddFace,0,3,2,1
AddFace,4,5,3,0
SetColor,0,0,0,
GenerateNormals,,,,

CreateMeshBuilder,,;//右側面転落防止幌,,
AddVertex,-1.41,1.2,-19.47,
AddVertex,-1.41,2.4,-19.47,
AddVertex,-1.41,2.4,-19.7,
AddVertex,-1.41,1.2,-19.7,
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
AddFace2,4,5,6,7
GenerateNormals,,,,

LoadTexture,horo2.bmp,,,
SetTextureCoordinates,0,0.03,1,
SetTextureCoordinates,1,0.03,0,
SetTextureCoordinates,2,0.99,0,
SetTextureCoordinates,3,0.99,1,
SetTextureCoordinates,4,0.03,1,
SetTextureCoordinates,5,0.03,0,
SetTextureCoordinates,6,0.99,0,
SetTextureCoordinates,7,0.99,1,
SetDecalTransparentColor,0,0,0,


CreateMeshBuilder,,;//連結幌,
AddVertex     ,-0.38,3.2,0.25
AddVertex     ,-0.38,3.2,0
AddVertex     ,0.38,3.2,0
AddVertex     ,0.38,3.2,0.25
AddVertex     ,0.45,3.13,0
AddVertex     ,0.45,3.13,0.25
AddVertex     ,0.45,1.19,0
AddVertex     ,0.45,1.19,0.25
AddVertex     ,0.38,1.12,0
AddVertex     ,0.38,1.12,0.25
AddVertex     ,-0.45,3.13,0.25
AddVertex     ,-0.45,3.13,0
AddVertex     ,-0.45,1.19,0
AddVertex     ,-0.45,1.19,0.25
AddVertex     ,-0.38,1.12,0
AddVertex     ,-0.38,1.12,0.25,
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     ,-0.38,3.2,-19.75
AddVertex     ,-0.38,3.2,-19.5
AddVertex     ,0.38,3.2,-19.5
AddVertex     ,0.38,3.2,-19.75
AddVertex     ,0.45,3.13,-19.5
AddVertex     ,0.45,3.13,-19.75
AddVertex     ,0.45,1.19,-19.5
AddVertex     ,0.45,1.19,-19.75
AddVertex     ,0.38,1.12,-19.5
AddVertex     ,0.38,1.12,-19.75
AddVertex     ,-0.45,3.13,-19.75
AddVertex     ,-0.45,3.13,-19.5
AddVertex     ,-0.45,1.19,-19.5
AddVertex     ,-0.45,1.19,-19.75
AddVertex     ,-0.38,1.12,-19.5
AddVertex     ,-0.38,1.12,-19.75,
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



GenerateNormals,,,,


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

LoadTexture,side2.bmp,,,
SetTextureCoordinates,0,-0.002,1,
SetTextureCoordinates,1,-0.002,0.003,
SetTextureCoordinates,2,1.002,0.003,
SetTextureCoordinates,3,1.002,1,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,,;//右側面,,
AddVertex,-1.4,1,-19.5,
AddVertex,-1.4,3.48,-19.5,
AddVertex,-1.4,3.48,0,
AddVertex,-1.4,1,0,
AddFace2,0,3,2,1

LoadTexture,side2-2.bmp,,,
SetTextureCoordinates,0,-0.002,1,
SetTextureCoordinates,1,-0.002,0.003,
SetTextureCoordinates,2,1.002,0.003,
SetTextureCoordinates,3,1.002,1,
SetDecalTransparentColor,0,0,255,

;----Interior----
CreateMeshBuilder,,;//左側面,,
AddVertex,1.37,1,-19.5,
AddVertex,1.37,3.48,-19.5,
AddVertex,1.37,3.48,0,
AddVertex,1.37,1,0,
AddFace2,0,1,2,3
GenerateNormals,,,,

LoadTexture,side int 2.bmp,,,
SetTextureCoordinates,0,-0.002,1,
SetTextureCoordinates,1,-0.002,0.003,
SetTextureCoordinates,2,1.002,0.003,
SetTextureCoordinates,3,1.002,1,
SetDecalTransparentColor,0,0,255,
SetEmissiveColor,255,255,255

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

LoadTexture,side int 2.bmp,,,
SetTextureCoordinates,0,-0.002,1,
SetTextureCoordinates,1,-0.002,0.003,
SetTextureCoordinates,2,1.002,0.003,
SetTextureCoordinates,3,1.002,1,
SetDecalTransparentColor,0,0,255,
SetEmissiveColor,255,255,255



;------屋根------,,
CreateMeshBuilder,,;//屋根
AddVertex,-1.4,3.48,-19.5
AddVertex,-1.4,3.48,0
AddVertex,-1.37,3.56,-19.5
AddVertex,-1.37,3.56,0
AddVertex,-1.31,3.6,-19.5
AddVertex,-1.31,3.6,0
AddVertex,-0.5,3.685,-19.5
AddVertex,-0.5,3.685,0
AddVertex,0,3.7,-19.5
AddVertex,0,3.7,0
AddVertex,0.5,3.685,-19.5
AddVertex,0.5,3.685,0
AddVertex,1.31,3.6,-19.5
AddVertex,1.31,3.6,0
AddVertex,1.37,3.56,-19.5
AddVertex,1.37,3.56,0
AddVertex,1.4,3.48,-19.5,
AddVertex,1.4,3.48,0,
AddFace,0,1,3,2
AddFace,2,3,5,4
AddFace,4,5,7,6
AddFace,6,7,9,8
AddFace,8,9,11,10
AddFace,10,11,13,12
AddFace,12,13,15,14
AddFace,14,15,17,16
GenerateNormals,,,,

LoadTexture,yane.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,0.03,1,
SetTextureCoordinates,3,0.03,0
SetTextureCoordinates,4,0.2,1
SetTextureCoordinates,5,0.2,0
SetTextureCoordinates,6,0.35,1
SetTextureCoordinates,7,0.35,0
SetTextureCoordinates,8,0.5,1
SetTextureCoordinates,9,0.5,0
SetTextureCoordinates,10,0.65,1
SetTextureCoordinates,11,0.65,0
SetTextureCoordinates,12,0.8,1
SetTextureCoordinates,13,0.8,0
SetTextureCoordinates,14,0.97,1
SetTextureCoordinates,15,0.97,0
SetTextureCoordinates,16,1,1
SetTextureCoordinates,17,1,0

CreateMeshBuilder,,;//クーラー,,
AddVertex,-0.8,3.6,-19.5,
AddVertex,-0.8,3.84,-19.5,
AddVertex,-0.8,3.6,-0.3,
AddVertex,-0.8,3.84,-0.3,
AddVertex,0.8,3.6,-19.5,
AddVertex,0.8,3.84,-19.5,
AddVertex,0.8,3.6,-0.3,
AddVertex,0.8,3.84,-0.3,
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
SetColor,150,150,150,
Translate,0,0,0,
GenerateNormals,,,,

CreateMeshBuilder,,;//右側面,,
AddVertex,-0.82,3.6,-19.5,
AddVertex,-0.82,3.84,-19.5,
AddVertex,-0.82,3.84,-0.3,
AddVertex,-0.82,3.6,-0.3,
AddFace,0,3,2,1
GenerateNormals,,,,

LoadTexture,cooler4.bmp,,,
SetTextureCoordinates,0,0.0035,1,
SetTextureCoordinates,1,0.0035,0.003,
SetTextureCoordinates,2,1.002,0.003,
SetTextureCoordinates,3,1.002,1,

CreateMeshBuilder,,;//左側面,,
AddVertex,0.82,3.6,-19.5,
AddVertex,0.82,3.84,-19.5,
AddVertex,0.82,3.84,-0.3,
AddVertex,0.82,3.6,-0.3,
AddFace,0,1,2,3
GenerateNormals,,,,

LoadTexture,cooler4.bmp,,,
SetTextureCoordinates,0,0.0035,1,
SetTextureCoordinates,1,0.0035,0.003,
SetTextureCoordinates,2,1.002,0.003,
SetTextureCoordinates,3,1.002,1,

CreateMeshBuilder,,;//左側面転落防止幌,,
AddVertex,1.41,1.2,-19.47,
AddVertex,1.41,2.4,-19.47,
AddVertex,1.41,2.4,-19.7,
AddVertex,1.41,1.2,-19.7,
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
AddFace2,4,5,6,7
GenerateNormals,,,,

LoadTexture,horo2.bmp,,,
SetTextureCoordinates,0,0.03,1,
SetTextureCoordinates,1,0.03,0,
SetTextureCoordinates,2,0.99,0,
SetTextureCoordinates,3,0.99,1,
SetTextureCoordinates,4,0.03,1
SetTextureCoordinates,5,0.03,0
SetTextureCoordinates,6,0.99,0
SetTextureCoordinates,7,0.99,1
SetDecalTransparentColor,0,0,0















;------連結器------,,,,
CreateMeshBuilder,,;//前面連結器,,
AddVertex,-0.18,1,-19.75,
AddVertex,0.18,1,-19.75,
AddVertex,0.18,0.7,-19.75,
AddVertex,-0.18,0.7,-19.75,
AddVertex,-0.18,1,-19.5005,
AddVertex,0.18,1,-19.5005,
AddVertex,0.18,0.7,-19.5005,
AddVertex,-0.18,0.7,-19.5005,
AddFace,0,4,5,1
AddFace,2,1,5,6
AddFace,3,7,4,0
AddFace,2,3,0,1
SetColor,25,25,25,
GenerateNormals,,,,


CreateMeshBuilder,,;//後面連結器,,
AddVertex,-0.18,1,0.25,
AddVertex,0.18,1,0.25,
AddVertex,0.18,0.7,0.25,
AddVertex,-0.18,0.7,0.25,
AddVertex,-0.18,1,0.005,
AddVertex,0.18,1,0.005,
AddVertex,0.18,0.7,0.005,
AddVertex,-0.18,0.7,0.005,
AddFace,0,1,5,4
AddFace,2,6,5,1
AddFace,3,0,4,7
AddFace,2,1,0,3
SetColor,25,25,25,
GenerateNormals,,,,


;------台車(前）------,,,,
CreateMeshBuilder,,;//左台車,,
AddVertex   ,0.95,0.05,-18.57,
AddVertex   ,0.95,1.05,-18.57,
AddVertex   ,0.95,1.05,-14.93,
AddVertex   ,0.95,0.05,-14.93,
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.8,0.05,-18.57,
AddVertex   ,0.8,1.05,-18.57,
AddVertex   ,0.8,1.05,-14.93,
AddVertex   ,0.8,0.05,-14.93,
AddFace2,0,1,2,3
SetColor,30,30,30,
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   ,1.1,0.35,-17.15,
AddVertex   ,1.1,1,-17.15,
AddVertex   ,1.1,1,-16.15,
AddVertex   ,1.1,0.35,-16.15,
AddFace,0,1,2,3
GenerateNormals,,,,

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


CreateMeshBuilder,,;//左台車,,
AddVertex   ,1,0.35,-17.15,
AddVertex   ,1,1,-17.15,
AddVertex   ,1,1,-16.15,
AddVertex   ,1,0.35,-16.15,
AddFace2,0,1,2,3
SetColor,170,170,170,
GenerateNormals,,,,

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


CreateMeshBuilder,,;//右台車,,
AddVertex   ,-0.95,0.05,-18.57,
AddVertex   ,-0.95,1.05,-18.57,
AddVertex   ,-0.95,1.05,-14.93,
AddVertex   ,-0.95,0.05,-14.93,
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.8,0.05,-18.57,
AddVertex   ,-0.8,1.05,-18.57,
AddVertex   ,-0.8,1.05,-14.93,
AddVertex   ,-0.8,0.05,-14.93,
AddFace2,0,1,2,3
SetColor,30,30,30
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   ,-1.1,0.35,-17.15
AddVertex   ,-1.1,1,-17.15
AddVertex   ,-1.1,1,-16.15
AddVertex   ,-1.1,0.35,-16.15
AddFace,0,3,2,1
Translate,0,0,-0.1,
GenerateNormals,,,,

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


CreateMeshBuilder,,;//右台車,,
AddVertex   ,-1,0.35,-17.15,
AddVertex   ,-1,1,-17.15,
AddVertex   ,-1,1,-16.15,
AddVertex   ,-1,0.35,-16.15,
AddFace2,0,1,2,3
Translate,0,0,-0.1,
SetColor,170,170,170,
GenerateNormals,,,,

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


CreateMeshBuilder,,;//左ブレーキ,,
AddVertex   ,0.62,0.15,-17.52,
AddVertex   ,0.62,0.55,-17.52,
AddVertex   ,0.62,0.55,-15.68,
AddVertex   ,0.62,0.15,-15.68,
AddFace,0,1,2,3
Translate,0,0,-0.15,
GenerateNormals,,,,

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


CreateMeshBuilder,,;//左ブレーキ,,
AddVertex   ,0.55,0.15,-17.52,
AddVertex   ,0.55,0.55,-17.52,
AddVertex   ,0.55,0.55,-15.68,
AddVertex   ,0.55,0.15,-15.68,
AddFace2,0,1,2,3
Translate,0,0,-0.15,
SetColor,30,30,30,
GenerateNormals,,,,

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


CreateMeshBuilder,,;//右ブレーキ,,
AddVertex   ,-0.62,0.15,-17.52,
AddVertex   ,-0.62,0.55,-17.52,
AddVertex   ,-0.62,0.55,-15.68,
AddVertex   ,-0.62,0.15,-15.68,
AddFace,0,3,2,1
Translate,0,0,-0.15,
GenerateNormals,,,,

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


CreateMeshBuilder,,;//右ブレーキ,,
AddVertex   ,-0.55,0.15,-17.52,
AddVertex   ,-0.55,0.55,-17.52,
AddVertex   ,-0.55,0.55,-15.68,
AddVertex   ,-0.55,0.15,-15.68,
AddFace2,0,1,2,3
Translate,0,0,-0.15,
SetColor,30,30,30,
GenerateNormals,,,,

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


CreateMeshBuilder,,;//台車,,
Cube,0.75,0.1,0.5,
SetColor,22,19,10,
Translate,0,0.9,-16.75,
GenerateNormals,,,,



;------台車(後）------,,,,
CreateMeshBuilder,,;//左台車,,
AddVertex   ,0.95,0.05,-18.57,
AddVertex   ,0.95,1.05,-18.57,
AddVertex   ,0.95,1.05,-14.93,
AddVertex   ,0.95,0.05,-14.93,
AddFace,0,1,2,3
Translate ,0,0,14
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.8,0.05,-18.57
AddVertex   ,0.8,1.05,-18.57
AddVertex   ,0.8,1.05,-14.93
AddVertex   ,0.8,0.05,-14.93
AddFace2,0,1,2,3
SetColor,30,30,30,
Translate ,0,0,14,
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   ,1.1,0.35,-17.15,
AddVertex   ,1.1,1,-17.15,
AddVertex   ,1.1,1,-16.15,
AddVertex   ,1.1,0.35,-16.15,
AddFace,0,1,2,3
Translate ,0,0,14,
GenerateNormals,,,,

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


CreateMeshBuilder,,;//左台車,,
AddVertex   ,1,0.35,-17.15,
AddVertex   ,1,1,-17.15,
AddVertex   ,1,1,-16.15,
AddVertex   ,1,0.35,-16.15,
AddFace2,0,1,2,3
SetColor,170,170,170,
Translate ,0,0,14,
GenerateNormals,,,,

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


CreateMeshBuilder,,;//右台車,,
AddVertex   ,-0.95,0.05,-18.57,
AddVertex   ,-0.95,1.05,-18.57,
AddVertex   ,-0.95,1.05,-14.93,
AddVertex   ,-0.95,0.05,-14.93,
AddFace,0,3,2,1
Translate ,0,0,14,
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.8,0.05,-18.57,
AddVertex   ,-0.8,1.05,-18.57,
AddVertex   ,-0.8,1.05,-14.93,
AddVertex   ,-0.8,0.05,-14.93,
AddFace2,0,1,2,3
SetColor,30,30,30,
Translate ,0,0,14,
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   ,-1.1,0.35,-17.15,
AddVertex   ,-1.1,1,-17.15,
AddVertex   ,-1.1,1,-16.15,
AddVertex   ,-1.1,0.35,-16.15,
AddFace,0,3,2,1
Translate ,0,0,13.9,
GenerateNormals,,,,

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


CreateMeshBuilder,,;//右台車,,
AddVertex   ,-1,0.35,-17.15,
AddVertex   ,-1,1,-17.15,
AddVertex   ,-1,1,-16.15,
AddVertex   ,-1,0.35,-16.15,
AddFace2,0,1,2,3
SetColor,170,170,170,
Translate ,0,0,13.9,
GenerateNormals,,,,

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


CreateMeshBuilder,,;//左ブレーキ,,
AddVertex   ,0.62,0.15,-17.52,
AddVertex   ,0.62,0.55,-17.52,
AddVertex   ,0.62,0.55,-15.68,
AddVertex   ,0.62,0.15,-15.68,
AddFace,0,1,2,3
Translate,0,0,13.85,
GenerateNormals,,,,

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


CreateMeshBuilder,,;//左ブレーキ,,
AddVertex   ,0.55,0.15,-17.52,
AddVertex   ,0.55,0.55,-17.52,
AddVertex   ,0.55,0.55,-15.68,
AddVertex   ,0.55,0.15,-15.68,
AddFace2,0,1,2,3
Translate,0,0,13.85,
SetColor,30,30,30,
GenerateNormals,,,,

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


CreateMeshBuilder,,;//右ブレーキ,,
AddVertex   ,-0.62,0.15,-17.52,
AddVertex   ,-0.62,0.55,-17.52,
AddVertex   ,-0.62,0.55,-15.68,
AddVertex   ,-0.62,0.15,-15.68,
AddFace,0,3,2,1
Translate,0,0,13.85,
GenerateNormals,,,,

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


CreateMeshBuilder,,;//右ブレーキ,,
AddVertex   ,-0.55,0.15,-17.52,
AddVertex   ,-0.55,0.55,-17.52,
AddVertex   ,-0.55,0.55,-15.68,
AddVertex   ,-0.55,0.15,-15.68,
AddFace2,0,1,2,3
Translate,0,0,13.85
SetColor,30,30,30
GenerateNormals,,,

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


CreateMeshBuilder,,;//台車,
Cube,0.75,0.1,0.5
SetColor,22,19,10
Translate,0,0.9,-2.75
GenerateNormals,,,,

;------床下機器------,,,,
CreateMeshBuilder,,;//床下機器,
Cube,0.75,0.15,0.6
SetColor,22,19,10
Translate,0,0.85,-0.6
GenerateNormals,,,


CreateMeshBuilder,,;//床下機器,
Cube,0.75,0.15,0.6
SetColor,22,19,10
Translate,0,0.85,-18.9,
GenerateNormals,,,,


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

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


CreateMeshBuilder,,;//床下機器,
AddVertex     ,-1.1,0.25,-14.85
AddVertex     ,-1.1,1,-14.85
AddVertex     ,1.1,1,-14.85
AddVertex     ,1.1,0.25,-14.85,
AddVertex     ,-1.1,0.25,-4.7,
AddVertex     ,-1.1,1,-4.7,
AddVertex     ,1.1,1,-4.7,
AddVertex     ,1.1,0.25,-4.7,
AddFace,0,1,2,3
AddFace,4,7,6,5
SetColor,35,30,30,
GenerateNormals,,,,


;------パンタグラフ------,,,,
CreateMeshBuilder,,;//ベース,
Cube,0.05,0.05,0.66
SetColor,130,130,130
Translate,0.55,3.82,-16.75
GenerateNormals,,,


CreateMeshBuilder,,;//ベース,
Cube,0.05,0.05,0.66
SetColor,130,130,130
Translate,-0.55,3.82,-16.75
GenerateNormals,,,


CreateMeshBuilder,,;//ベース,
Cube,0.072,0.05,0.4
SetColor,130,130,130
Translate,0,3.82,-16.75
GenerateNormals,,,





CreateMeshBuilder,,;//ベース,
Cube,0.5,0.05,0.05
SetColor,130,130,130
Translate,0,3.82,-17.05
GenerateNormals,,,


CreateMeshBuilder,,;//碍子1,,
Cylinder,6,0.09,0.09,0.35
Translate,0.55,3.61,-17.35,
SetColor,200,200,200,
GenerateNormals,,,,


CreateMeshBuilder,,;//碍子2,,
Cylinder,6,0.09,0.09,0.35
Translate,-0.55,3.61,-17.35,
SetColor,200,200,200,
GenerateNormals,,,,


CreateMeshBuilder,,;//碍子3,,
Cylinder,6,0.09,0.09,0.35
Translate,0.55,3.61,-16.15,
SetColor,200,200,200,
GenerateNormals,,,,


CreateMeshBuilder,,;//碍子4,,
Cylinder,6,0.09,0.09,0.35
Translate,-0.55,3.61,-16.15,
SetColor,200,200,200,
GenerateNormals,,,,


CreateMeshBuilder,,;//アーム取付部,,
Cylinder,6,0.05,0.05,1.2
SetColor,140,140,140,
Rotate,0,0,1,90
Translate,0,3.88,-17.1,


CreateMeshBuilder,,;//アーム取付部,,
Cylinder,6,0.05,0.05,1.2
SetColor,140,140,140,
Rotate,0,0,1,90
Translate,0,3.88,-16.4,


CreateMeshBuilder,,;//左側アーム,,
Cylinder,4,0.025,0.025,1
SetColor,120,120,120,
Rotate,1,0,0,60
Translate,0.44,4.1,-15.95,


CreateMeshBuilder,,;//左側アーム,,
Cylinder,4,0.025,0.025,1.4
SetColor,120,120,120,
Rotate,1,0,0,117
Translate,0.44,4.68,-16.15,


CreateMeshBuilder,,;//左側アーム,,
Cylinder,4,0.025,0.025,1
SetColor,120,120,120,
Rotate,1,0,0,117
Translate,0.44,4.1,-17.55,


CreateMeshBuilder,,;//左側アーム,,
Cylinder,4,0.025,0.025,1.4
SetColor,120,120,120,
Rotate,1,0,0,62
Translate,0.44,4.68,-17.35,


CreateMeshBuilder,,;//右側アーム,,
Cylinder,4,0.025,0.025,1
SetColor,120,120,120,
Rotate,1,0,0,60
Translate,-0.44,4.1,-15.95,


CreateMeshBuilder,,;//右側アーム,,
Cylinder,4,0.025,0.025,1.4
SetColor,120,120,120,
Rotate,1,0,0,117
Translate,-0.44,4.68,-16.15,


CreateMeshBuilder,,;//右側アーム,,
Cylinder,4,0.025,0.025,1
SetColor,120,120,120,
Rotate,1,0,0,117
Translate,-0.44,4.1,-17.55,


CreateMeshBuilder,,;//右側アーム,,
Cylinder,4,0.025,0.025,1.4
SetColor,120,120,120,
Rotate,1,0,0,62
Translate,-0.44,4.68,-17.35,


CreateMeshBuilder,,;//アーム斜め棒,,
Cylinder,4,0.025,0.025,1.6
SetColor,120,120,120,
Rotate,1,0,0.73,65.5
Translate,0,4.68,-17.35,


CreateMeshBuilder,,;//アーム斜め棒,,
Cylinder,4,0.025,0.025,1.6
SetColor,120,120,120,
Rotate,1,0,0.7,112
Translate,0,4.7,-16.2,


CreateMeshBuilder,,;//アーム斜め棒,,
Cylinder,4,0.025,0.025,1.3
SetColor,120,120,120,
Rotate,1,0,0.95,112
Translate,0,4.07,-17.5,


CreateMeshBuilder,,;//アーム斜め棒,,
Cylinder,4,0.025,0.025,1.3
SetColor,120,120,120,
Rotate,1,0,0.95,65
Translate,0,4.07,-16,


CreateMeshBuilder,,;//アーム,,
Cylinder,4,0.02,0.02,0.95
SetColor,140,140,140,
Rotate,0,0,1,90
Translate,0,4.35,-17.97,


CreateMeshBuilder,,;//アーム,,
Cylinder,4,0.02,0.02,0.95
SetColor,140,140,140,
Rotate,0,0,1,90
Translate,0,4.35,-15.52,


CreateMeshBuilder,,;//アーム,,
Cylinder,4,0.025,0.025,0.95
SetColor,140,140,140,
Rotate,0,0,1,90
Translate,0,5.02,-16.75


CreateMeshBuilder,,;//集電部,
Cube,0.6,0.03,0.05
SetColor,90,90,90
Translate,0,5.07,-16.85
GenerateNormals,,,


CreateMeshBuilder,,;//集電部,
Cube,0.6,0.03,0.05
SetColor,90,90,90
Translate,0,5.07,-16.65
GenerateNormals,,,


CreateMeshBuilder,,;//集電部,,
Cylinder,4,0.02,0.02,1.5
SetColor,140,140,140,
Rotate,0,0,1,90
Translate,0,5.07,-16.85,


CreateMeshBuilder,,;//集電部,,
Cylinder,4,0.02,0.02,0.3
SetColor,140,140,140,
Rotate,0,0,1,45
Translate,0.85,4.97,-16.85,


CreateMeshBuilder,,;//集電部,,
Cylinder,4,0.02,0.02,0.3
SetColor,140,140,140,
Rotate,0,0,1,315
Translate,-0.85,4.97,-16.85,


CreateMeshBuilder,,;//集電部,,
Cylinder,4,0.02,0.02,1.5
SetColor,140,140,140,
Rotate,0,0,1,90
Translate,0,5.07,-16.65,


CreateMeshBuilder,,;//集電部,,
Cylinder,4,0.02,0.02,0.3
SetColor,140,140,140,
Rotate,0,0,1,45
Translate,0.85,4.97,-16.65,


CreateMeshBuilder,,;//集電部,,
Cylinder,4,0.02,0.02,0.3
SetColor,140,140,140,
Rotate,0,0,1,315
Translate,-0.85,4.97,-16.65,

CreateMeshBuilder,,;//機器箱,,
Cube,0.12,0.08,0.37,
SetColor,170,170,170,
Translate,-0.53,3.97,-18.9,
GenerateNormals,,,,


CreateMeshBuilder,,;//機器箱支柱,,
Cylinder,4,0.05,0.05,0.15
Translate             ,-0.53,3.85,-19.08,
SetColor,120,120,120,
GenerateNormals,,,,


CreateMeshBuilder,,;//機器箱支柱,,
Cylinder,4,0.05,0.05,0.15
Translate             ,-0.53,3.85,-18.72,
SetColor,120,120,120,
GenerateNormals,,,,


CreateMeshBuilder,,;//機器箱,,
Cube,0.12,0.08,0.37,
SetColor,170,170,170,
Translate,0.53,3.97,-18.9,
GenerateNormals,,,,


CreateMeshBuilder,,;//機器箱支柱,,
Cylinder,4,0.05,0.05,0.15
Translate             ,0.53,3.85,-19.08,
SetColor,120,120,120,
GenerateNormals,,,,


CreateMeshBuilder,,;//機器箱支柱,,
Cylinder,4,0.05,0.05,0.15
Translate             ,0.53,3.85,-18.72,
SetColor,120,120,120,
GenerateNormals,,,,


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


;------屋根上機器------,,,,
CreateMeshBuilder,,;//屋根上機器,,
AddVertex ,0.9,3.62,-13.4,;0
AddVertex ,0.9,3.83,-13.4,;1
AddVertex ,0.9,3.83,-10.4,;2
AddVertex ,0.9,3.62,-10.4,;3
AddVertex ,0.6,3.98,-13.4,;4
AddVertex ,0.6,3.98,-10.4,;5
AddVertex ,0,4.07,-10.4,;6
AddVertex ,0,4.07,-13.4,;7
AddVertex ,-0.6,3.98,-13.4,;8
AddVertex ,-0.6,3.98,-10.4,;9
AddVertex ,-0.9,3.62,-13.4,;10
AddVertex ,-0.9,3.83,-13.4,;11
AddVertex ,-0.9,3.83,-10.4,;12
AddVertex ,-0.9,3.62,-10.4,;13
AddFace,0,1,2,3
AddFace,1,4,5,2
AddFace,4,7,6,5
AddFace,7,8,9,6
AddFace,8,11,12,9
AddFace,11,10,13,12
GenerateNormals,,,,

LoadTexture,cooler.bmp,,,
SetTextureCoordinates,0,1,0
SetTextureCoordinates,1,1,0.2
SetTextureCoordinates,2,0,0.2
SetTextureCoordinates,3,0,0
SetTextureCoordinates,4,1,0.5
SetTextureCoordinates,5,0,0.5
SetTextureCoordinates,6,0,0.99
SetTextureCoordinates,7,1,0.99
SetTextureCoordinates,8,1,0.5
SetTextureCoordinates,9,0,0.5
SetTextureCoordinates,10,1,0
SetTextureCoordinates,11,1,0.2
SetTextureCoordinates,12,0,0.2
SetTextureCoordinates,13,0,0


CreateMeshBuilder,,;//屋根上機器,,,,,
AddVertex ,-0.9,3.6,-13.4,,,,
AddVertex ,-0.9,3.83,-13.4,,,,
AddVertex ,-0.6,3.98,-13.4,,,,
AddVertex ,0,4.07,-13.4,,,,
AddVertex ,0.6,3.98,-13.4,,,,
AddVertex ,0.9,3.83,-13.4,,,,
AddVertex ,0.9,3.6,-13.4,,,,
AddVertex ,-0.9,3.6,-10.4,,,,
AddVertex ,-0.9,3.83,-10.4,,,,
AddVertex ,-0.6,3.98,-10.4,,,,
AddVertex ,0,4.07,-10.4,,,,
AddVertex ,0.6,3.98,-10.4,,,,
AddVertex ,0.9,3.83,-10.4,,,,
AddVertex ,0.9,3.6,-10.4,,,,
AddFace2,0,1,2,3,4,5,6
AddFace2,7,8,9,10,11,12,13
SetColor,200,200,200,,,,
GenerateNormals,,,,,,,


CreateMeshBuilder,,;//屋根上機器,,,,,
AddVertex ,0.9,3.62,-7.1,;0,,,
AddVertex ,0.9,3.83,-7.1,;1,,,
AddVertex ,0.9,3.83,-4.1,;2,,,
AddVertex ,0.9,3.62,-4.1,;3,,,
AddVertex ,0.6,3.98,-7.1,;4,,,
AddVertex ,0.6,3.98,-4.1,;5,,,
AddVertex ,0,4.07,-4.1,;6,,,
AddVertex ,0,4.07,-7.1,;7,,,
AddVertex ,-0.6,3.98,-7.1,;8,,,
AddVertex ,-0.6,3.98,-4.1,;9,,,
AddVertex ,-0.9,3.62,-7.1,;10
AddVertex ,-0.9,3.83,-7.1,;11
AddVertex ,-0.9,3.83,-4.1,;12
AddVertex ,-0.9,3.62,-4.1,;13
AddFace,0,1,2,3
AddFace,1,4,5,2
AddFace,4,7,6,5
AddFace,7,8,9,6
AddFace,8,11,12,9
AddFace,11,10,13,12
GenerateNormals,,,,

LoadTexture,cooler.bmp,,,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,0,0.2,
SetTextureCoordinates,2,1,0.2,
SetTextureCoordinates,3,1,0
SetTextureCoordinates,4,0,0.5
SetTextureCoordinates,5,1,0.5
SetTextureCoordinates,6,1,0.99
SetTextureCoordinates,7,0,0.99
SetTextureCoordinates,8,0,0.5
SetTextureCoordinates,9,1,0.5
SetTextureCoordinates,10,0,0
SetTextureCoordinates,11,0,0.2
SetTextureCoordinates,12,1,0.2
SetTextureCoordinates,13,1,0


CreateMeshBuilder,,;//屋根上機器,
AddVertex ,-0.9,3.6,-7.1
AddVertex ,-0.9,3.83,-7.1
AddVertex ,-0.6,3.98,-7.1,,,,
AddVertex ,0,4.07,-7.1,,,,
AddVertex ,0.6,3.98,-7.1,,,,
AddVertex ,0.9,3.83,-7.1,,,,
AddVertex ,0.9,3.6,-7.1,,,,
AddVertex ,-0.9,3.6,-4.1,,,,
AddVertex ,-0.9,3.83,-4.1,,,,
AddVertex ,-0.6,3.98,-4.1,,,,
AddVertex ,0,4.07,-4.1,,,,
AddVertex ,0.6,3.98,-4.1,,,,
AddVertex ,0.9,3.83,-4.1,,,,
AddVertex ,0.9,3.6,-4.1,,,,
AddFace2,0,1,2,3,4,5,6
AddFace2,7,8,9,10,11,12,13
SetColor,200,200,200,,,,
GenerateNormals,,,,,,,

CreateMeshBuilder,,;//lantai interior,,
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,

LoadTexture,floor.bmp,floor.bmp
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1
SetTextureCoordinates,2,1,0
SetTextureCoordinates,3,1,1
SetTextureCoordinates,4,0,0
SetTextureCoordinates,5,1,1
GenerateNormals,,,,

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

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

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

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

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

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

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

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

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

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

CreateMeshBuilder,,,,
AddVertex,1.39,1.9,-11.15,
AddVertex,1.39,3.2,-11.15,
AddVertex,1.39,3.2,-9.5,
AddVertex,1.39,1.9,-9.5,
AddFace2,0,1,2,3
SetColor,80,80,160,90
Translate,0,0,-8.25,

CreateMeshBuilder,,,,
AddVertex,-1.39,1.9,-11.15,
AddVertex,-1.39,3.2,-11.15,
AddVertex,-1.39,3.2,-9.5,
AddVertex,-1.39,1.9,-9.5,
AddFace2,3,2,1,0
SetColor,80,80,160,90
Translate,0,0,-8.25,

CreateMeshBuilder,,,,
AddVertex,-1.7,1.9,-9.452,
AddVertex,-1.7,3.2,-9.452,
AddVertex,-2.3,3.2,-9.452,
AddVertex,-2.3,1.9,-9.452,
AddFace2,0,1,2,3
SetColor,80,80,160,90
Translate,1,0,9.45,


CreateMeshBuilder,,,,
AddVertex,-1.6,1.9,-9.452,
AddVertex,-1.6,3.2,-9.452,
AddVertex,-2.2,3.2,-9.452,
AddVertex,-2.2,1.9,-9.452,
AddFace2,0,1,2,3
SetColor,80,80,160,90
Translate,2.9,0,9.45,

CreateMeshBuilder,,,,
AddVertex,-1.7,1.9,-9.478,
AddVertex,-1.7,3.2,-9.478,
AddVertex,-2.3,3.2,-9.478,
AddVertex,-2.3,1.9,-9.478,
AddFace2,3,2,1,0
SetColor,80,80,160,90
Translate,1,0,-10.02,

CreateMeshBuilder,,,,
AddVertex,-1.6,1.9,-9.478,
AddVertex,-1.6,3.2,-9.478,
AddVertex,-2.2,3.2,-9.478,
AddVertex,-2.2,1.9,-9.478,
AddFace2,3,2,1,0
SetColor,80,80,160,90
Translate,2.9,0,-10.02,

;Nomor gerbong & rangkaian
CreateMeshBuilder,,;//右側面車番,,
AddVertex,0.85,3.2,-19.493
AddVertex,0.85,3.3,-19.493
AddVertex,1.15,3.3,-19.493
AddVertex,1.15,3.2,-19.493
AddFace2,0,1,2,3
GenerateNormals,,,,

LoadTexture,num.bmp,num.bmp,,,
SetTextureCoordinates,0,1,0.245,
SetTextureCoordinates,1,1,0.125,
SetTextureCoordinates,2,0,0.125,
SetTextureCoordinates,3,0,0.245,

;Belakang
CreateMeshBuilder,,;//右側面車番,,
AddVertex,-0.85,3.2,-0.007
AddVertex,-0.85,3.3,-0.007
AddVertex,-1.15,3.3,-0.007
AddVertex,-1.15,3.2,-0.007
AddFace2,0,3,2,1
GenerateNormals,,,,

LoadTexture,num.bmp,num.bmp,,,
SetTextureCoordinates,0,1,0.245,
SetTextureCoordinates,1,1,0.125,
SetTextureCoordinates,2,0,0.125,
SetTextureCoordinates,3,0,0.245,

translateall,0,0,10,
rotateall,0,1,0,180

;//Nomor gerbong - kiri
CreateMeshBuilder,,;//右側面車番,,
AddVertex,-1.41,1.34,-12.9,
AddVertex,-1.41,1.5,-12.9,
AddVertex,-1.41,1.5,-12.35,
AddVertex,-1.41,1.34,-12.35,
AddFace2,0,3,2,1
Translate,0,0,12.38,
GenerateNormals,,,,

LoadTexture,num.bmp,,,,
SetTextureCoordinates,0,1,0.245,
SetTextureCoordinates,1,1,0.125,
SetTextureCoordinates,2,0,0.125,
SetTextureCoordinates,3,0,0.245,

;//Nomor gerbong - kanan
CreateMeshBuilder,,;//左側面車番,,
AddVertex,1.41,1.34,-12.9,
AddVertex,1.41,1.5,-12.9,
AddVertex,1.41,1.5,-12.35,
AddVertex,1.41,1.34,-12.35,
AddFace2,0,1,2,3
Translate,0,0,12.38
GenerateNormals,,,,

LoadTexture,num.bmp,,,,
SetTextureCoordinates,0,0,0.245,
SetTextureCoordinates,1,0,0.125,
SetTextureCoordinates,2,1,0.125,
SetTextureCoordinates,3,1,0.245,
