;//松浦電鉄７００系　先頭車,,,,
;------ボディ------,,,,
CreateMeshBuilder,,;//正面,,
AddVertex      ,-1.2,1,0,
AddVertex      ,-1.2,3.5,0,
AddVertex      ,1.2,3.5,0,
AddVertex      ,1.2,1,0,
AddVertex      ,-1.3,1,-0.1,
AddVertex      ,-1.3,3.5,-0.1,
AddVertex      ,-1.2,3.5,0,
AddVertex      ,-1.2,1,0,
AddVertex      ,1.2,1,0,
AddVertex      ,1.2,3.5,0,
AddVertex      ,1.3,3.5,-0.1,
AddVertex      ,1.3,1,-0.1,
AddFace,0,3,2,1
AddFace,4,7,6,5
AddFace,8,11,10,9
GenerateNormals,,,,

LoadTexture,700Mc-front.bmp,,,
SetTextureCoordinates,0,0.95,0.995,
SetTextureCoordinates,1,0.95,0.095,
SetTextureCoordinates,2,0.05,0.095,
SetTextureCoordinates,3,0.05,0.995,
SetTextureCoordinates,4,1,0.995,
SetTextureCoordinates,5,1,0.095,
SetTextureCoordinates,6,0.95,0.095,
SetTextureCoordinates,7,0.95,0.995,
SetTextureCoordinates,8,0.05,0.995,
SetTextureCoordinates,9,0.05,0.095,
SetTextureCoordinates,10,0,0.095,
SetTextureCoordinates,11,0,0.995,


CreateMeshBuilder,,;//行先表示,,
AddVertex   ,0.25,3.17,0.01,
AddVertex   ,0.25,3.42,0.01,
AddVertex   ,-0.7,3.42,0.01,
AddVertex   ,-0.7,3.17,0.01,
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,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//左側面,,
AddVertex   ,1.3,1,-0.1,
AddVertex   ,1.3,3.5,-0.1,
AddVertex   ,1.3,3.5,-16.5,
AddVertex   ,1.3,1,-16.5,
AddFace,0,3,2,1
GenerateNormals,,,,

LoadTexture,700Mc-side.bmp,,,
SetTextureCoordinates,0,0.002,1,
SetTextureCoordinates,1,0.002,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,


CreateMeshBuilder,,;//左側面行先表示,,
AddVertex   ,1.31,3.16,-4.98,
AddVertex   ,1.31,3.42,-4.98,
AddVertex   ,1.31,3.42,-5.88,
AddVertex   ,1.31,3.16,-5.88,
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,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//右側面,,
AddVertex   ,-1.3,1,-0.1,
AddVertex   ,-1.3,3.5,-0.1,
AddVertex   ,-1.3,3.5,-16.5,
AddVertex   ,-1.3,1,-16.5,
AddFace,0,1,2,3
GenerateNormals,,,,

LoadTexture,700Mc-side.bmp,,,
SetTextureCoordinates,0,0.002,1,
SetTextureCoordinates,1,0.002,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,


CreateMeshBuilder,,;//右側面行先表示,,
AddVertex   ,-1.31,3.16,-4.98,
AddVertex   ,-1.31,3.42,-4.98,
AddVertex   ,-1.31,3.42,-5.88,
AddVertex   ,-1.31,3.16,-5.88,
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,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//後面,,
AddVertex   ,-1.3,1,-16.5,
AddVertex   ,1.3,1,-16.5,
AddVertex   ,1.3,3.5,-16.5,
AddVertex   ,-1.3,3.5,-16.5,
AddFace,0,3,2,1
GenerateNormals,,,,

LoadTexture,700Mc-back.bmp,,,
SetTextureCoordinates,0,0,0.995,
SetTextureCoordinates,1,1,0.995,
SetTextureCoordinates,2,1,0.113,
SetTextureCoordinates,3,0,0.113,


CreateMeshBuilder,,;//後面,,
AddVertex   ,-1.3,3.5,-16.5,
AddVertex   ,1.3,3.5,-16.5,
AddVertex   ,1,3.6,-16.5,
AddVertex   ,-1,3.6,-16.5,
AddFace,0,3,2,1
SetColor,0,220,220,
GenerateNormals,,,,


CreateMeshBuilder,,;//底面,,
AddVertex   ,-1.3,1,-0.1,
AddVertex   ,-1.3,1,-16.5,
AddVertex   ,1.3,1,-16.5,
AddVertex   ,1.3,1,-0.1,
AddVertex   ,-1.2,1,0,
AddVertex   ,1.2,1,0,
AddFace,0,1,2,3
AddFace,4,0,3,5
SetColor,0,0,0,
GenerateNormals,,,,


;------屋根------,,,,
CreateMeshBuilder,,;//先頭屋根1,,
AddVertex   ,-1,3.55,0,
AddVertex   ,-1,3.6,-0.1,
AddVertex   ,1,3.6,-0.1,
AddVertex   ,1,3.55,0,
AddVertex   ,1.2,3.5,0,
AddVertex   ,1.3,3.5,-0.1,
AddVertex   ,-1.2,3.5,0,
AddVertex   ,-1.3,3.5,-0.1,
AddFace,0,3,2,1
AddFace,3,4,5,2
AddFace,6,0,1,7
SetColor,0,187,187,
GenerateNormals,,,,


CreateMeshBuilder,,;//先頭屋根2,,
AddVertex   ,-1,3.55,0,
AddVertex   ,1,3.55,0,
AddVertex   ,1.2,3.5,0,
AddVertex   ,-1.2,3.5,0,
AddFace,3,2,1,0
SetColor,0,220,220,
GenerateNormals,,,,


CreateMeshBuilder,,;//先頭屋根3,,
AddVertex   ,-1,3.6,-0.25,
AddVertex   ,1,3.6,-0.25,
AddVertex   ,1,3.6,-0.1,
AddVertex   ,-1,3.6,-0.1,
AddVertex   ,-1.3,3.5,-0.55,
AddVertex   ,-1,3.6,-0.25,
AddVertex   ,-1,3.6,-0.1,
AddVertex   ,-1.3,3.5,-0.1,
AddVertex   ,1.3,3.5,-0.1,
AddVertex   ,1,3.6,-0.1,
AddVertex   ,1,3.6,-0.25,
AddVertex   ,1.3,3.5,-0.55,
AddFace,0,3,2,1
AddFace,4,7,6,5
AddFace,8,11,10,9
SetColor,0,187,187,
GenerateNormals,,,,


CreateMeshBuilder,,;//屋根,,
AddVertex   ,-1,3.6,-16.5,
AddVertex   ,1,3.6,-16.5,
AddVertex   ,1,3.6,-0.25,
AddVertex   ,-1,3.6,-0.25,
AddVertex   ,-1.3,3.5,-16.5,
AddVertex   ,-1,3.6,-16.5,
AddVertex   ,-1,3.6,-0.25,
AddVertex   ,-1.3,3.5,-0.55,
AddVertex   ,1.3,3.5,-0.55,
AddVertex   ,1,3.6,-0.25,
AddVertex   ,1,3.6,-16.5,
AddVertex   ,1.3,3.5,-16.5,
AddFace,0,3,2,1
AddFace,4,7,6,5
AddFace,8,11,10,9
SetColor,120,120,120,
GenerateNormals,,,,


CreateMeshBuilder,,;//屋根上機器,,
AddVertex   ,0.7,3.83,-13.37,
AddVertex   ,-0.7,3.83,-13.37,
AddVertex   ,-0.7,3.83,-3.13,
AddVertex   ,0.7,3.83,-3.13,
AddVertex   ,-0.8,3.6,-13.4,
AddVertex   ,-0.7,3.83,-13.37,
AddVertex   ,0.7,3.83,-13.37,
AddVertex   ,0.8,3.6,-13.4,
AddVertex   ,-0.8,3.6,-3.1,
AddVertex   ,0.8,3.6,-3.1,
AddVertex   ,0.7,3.83,-3.13,
AddVertex   ,-0.7,3.83,-3.13,
AddFace,0,1,2,3
AddFace,4,5,6,7
AddFace,8,9,10,11
SetColor,170,170,170,
GenerateNormals,,,,


CreateMeshBuilder,,;//屋根上機器,,
AddVertex   ,0.8,3.6,-13.4,
AddVertex   ,0.7,3.83,-13.37,
AddVertex   ,0.7,3.83,-3.13,
AddVertex   ,0.8,3.6,-3.1,
AddVertex   ,-0.8,3.6,-13.4,
AddVertex   ,-0.7,3.83,-13.37,
AddVertex   ,-0.7,3.83,-3.13,
AddVertex   ,-0.8,3.6,-3.1,
AddFace,0,1,2,3
AddFace,4,7,6,5
GenerateNormals,,,,

LoadTexture,coolor.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,5,0,
SetTextureCoordinates,3,5,1,
SetTextureCoordinates,4,0,1
SetTextureCoordinates,5,0,0
SetTextureCoordinates,6,5,0
SetTextureCoordinates,7,5,1
GenerateNormals,,,


CreateMeshBuilder,,;//屋根上機器,
AddVertex      ,-0.02,3.6,-0.5
AddVertex      ,-0.02,3.9,-0.55
AddVertex      ,0.02,3.9,-0.55
AddVertex      ,0.02,3.6,-0.5
AddVertex      ,-0.02,3.9,-0.75
AddVertex      ,0.02,3.9,-0.75
AddVertex      ,-0.02,3.87,-0.75
AddVertex      ,0.02,3.87,-0.75
AddVertex      ,-0.02,3.6,-0.6,
AddVertex      ,-0.02,3.85,-0.6,
AddVertex      ,0.02,3.6,-0.6,
AddVertex      ,0.02,3.85,-0.6,
AddFace,0,3,2,1
AddFace,1,2,5,4
AddFace,4,5,7,6
AddFace,8,0,1,9
AddFace,10,11,2,3
AddFace,6,9,1,4
AddFace,7,5,2,11
AddFace,8,9,11,10
AddFace,9,6,7,11
SetColor,140,140,140,
GenerateNormals,,,,


CreateMeshBuilder,,;//屋根上機器,,
Cylinder,8,0.1,0.12,0.1
Translate ,0,3.63,-0.565,
SetColor,155,155,155,
GenerateNormals,,,,


;------スカート------,,,,
CreateMeshBuilder,,;//スカート正面,,
AddVertex   ,-1.2,0.3,-0.1,
AddVertex   ,-1.25,1,-0.1,
AddVertex   ,1.25,1,-0.1,
AddVertex   ,1.2,0.3,-0.1,
AddFace,0,3,2,1
GenerateNormals,,,,

LoadTexture,skart.bmp,,,
SetTextureCoordinates,0,0.02,0.99,
SetTextureCoordinates,1,0,0.01,
SetTextureCoordinates,2,1,0.01,
SetTextureCoordinates,3,0.98,0.99,


CreateMeshBuilder,,;//スカート正面,,
AddVertex   ,-1.2,0.3,-0.1,
AddVertex   ,-1.25,1,-0.1,
AddVertex   ,1.25,1,-0.1,
AddVertex   ,1.2,0.3,-0.1,
AddFace,0,1,2,3
SetColor,0,0,0,
GenerateNormals,,,,


CreateMeshBuilder,,;//スカート側面,,
AddVertex   ,-1.2,0.3,-0.1,
AddVertex   ,-1.2,0.3,-0.4,
AddVertex   ,-1.25,1,-0.6,
AddVertex   ,-1.25,1,-0.1,
AddVertex   ,1.2,0.3,-0.1,
AddVertex   ,1.2,0.3,-0.4,
AddVertex   ,1.25,1,-0.6,
AddVertex   ,1.25,1,-0.1,
AddFace,0,3,2,1
AddFace,4,5,6,7
GenerateNormals,,,,

LoadTexture,skart.bmp,,,
SetTextureCoordinates,0,0.23,0.99
SetTextureCoordinates,1,0.2,0.99
SetTextureCoordinates,2,0.2,0.01
SetTextureCoordinates,3,0.23,0.01
SetTextureCoordinates,4,0.23,0.99
SetTextureCoordinates,5,0.2,0.99
SetTextureCoordinates,6,0.2,0.01
SetTextureCoordinates,7,0.23,0.01


;------連結器------,,,
CreateMeshBuilder,,;//連結器正面,
AddVertex,-0.17,1.07,0.25
AddVertex,0.17,1.07,0.25
AddVertex,0.17,0.73,0.25
AddVertex,-0.17,0.73,0.25
AddFace,0,3,2,1
GenerateNormals,,,,

LoadTexture,renketsuki.bmp,,,
SetTextureCoordinates,0,1,0,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,0,1,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//連結器正面,,
AddVertex,0.13,0.98,0.25,;0
AddVertex,0.01,0.98,0.25,;1
AddVertex,0.06,0.895,0.38,;2
AddVertex,0.01,0.81,0.25,;3
AddVertex,0.13,0.81,0.25,;4
AddFace,0,1,2,
AddFace,2,3,4,
AddFace,3,2,1,
AddFace,0,2,4,
GenerateNormals,,,,

LoadTexture,renketsuki2.bmp,,,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0.5,0.5,
SetTextureCoordinates,3,1,1,
SetTextureCoordinates,4,0,1,


CreateMeshBuilder,,;//連結器,,
AddVertex,-0.15,1.05,0.25,;0
AddVertex,0.15,1.05,0.25,;1
AddVertex,0.15,0.75,0.25,;2
AddVertex,-0.15,0.75,0.25,;3
AddVertex,-0.1,1,0.07,;4
AddVertex,0.1,1,0.07,;5
AddVertex,0.1,0.8,0.07,;6
AddVertex,-0.1,0.8,0.07,;7
AddFace,2,6,5,1
AddFace,3,0,4,7
AddFace,1,5,4,0
AddFace,2,3,7,6
SetColor,30,30,20,
GenerateNormals,,,,


CreateMeshBuilder,,;//連結器,
Cube,0.1,0.1,0.15
SetColor,30,30,20
Translate,0,0.9,0
GenerateNormals,,,


CreateMeshBuilder,,;//後面連結器,
AddVertex ,-0.18,1.05,-16.75
AddVertex ,0.18,1.05,-16.75
AddVertex ,0.18,0.7,-16.75
AddVertex ,-0.18,0.7,-16.75
AddVertex ,-0.18,1.05,-16.5
AddVertex ,0.18,1.05,-16.5
AddVertex ,0.18,0.7,-16.5
AddVertex ,-0.18,0.7,-16.5
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,,;//車輪右前,,
Cylinder,16,0.45,0.48,0.07
SetColor,20,20,10,
Rotate,0,0,1,90
Translate ,-0.74,0.45,-14.75,


CreateMeshBuilder,,;//車輪右前,,
AddVertex   ,-0.78,0,-15.2,
AddVertex   ,-0.78,0.9,-15.2,
AddVertex   ,-0.78,0.9,-14.3,
AddVertex   ,-0.78,0,-14.3,
AddFace,0,3,2,1
GenerateNormals,,,,

LoadTexture,sharin.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//車輪右後,,
Cylinder,16,0.45,0.48,0.07
SetColor,20,20,10,
Rotate,0,0,1,90
Translate ,-0.74,0.45,-12.65,


CreateMeshBuilder,,;//車輪右後,,
AddVertex   ,-0.78,0,-13.1,
AddVertex   ,-0.78,0.9,-13.1,
AddVertex   ,-0.78,0.9,-12.2,
AddVertex   ,-0.78,0,-12.2,
AddFace,0,3,2,1
GenerateNormals,,,,

LoadTexture,sharin.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//車輪左前,,
Cylinder,16,0.48,0.45,0.07
SetColor,20,20,10,
Rotate,0,0,1,90
Translate ,0.74,0.45,-14.75,


CreateMeshBuilder,,;//車輪左前,,
AddVertex   ,0.78,0,-15.2,
AddVertex   ,0.78,0.9,-15.2,
AddVertex   ,0.78,0.9,-14.3,
AddVertex   ,0.78,0,-14.3,
AddFace,0,1,2,3
GenerateNormals,,,,

LoadTexture,sharin.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//車輪左後,,
Cylinder,16,0.48,0.45,0.07
SetColor,20,20,10,
Rotate,0,0,1,90
Translate ,0.74,0.45,-12.65,


CreateMeshBuilder,,;//車輪左後,,
AddVertex   ,0.78,0,-13.1,
AddVertex   ,0.78,0.9,-13.1,
AddVertex   ,0.78,0.9,-12.2,
AddVertex   ,0.78,0,-12.2,
AddFace,0,1,2,3
GenerateNormals,,,,

LoadTexture,sharin.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//車軸前,,
Cylinder,4,0.08,0.08,1.65
SetColor,20,20,10,
Rotate,0,0,1,90
Translate ,0,0.45,-14.75,


CreateMeshBuilder,,;//車軸前,,
Cylinder,7,0.15,0.15,0.28
SetColor,30,25,15,
Rotate,0,0,1,90
Translate ,-0.9,0.45,-14.75,


CreateMeshBuilder,,;//車軸前,,
Cylinder,7,0.15,0.15,0.28
SetColor,30,25,15,
Rotate,0,0,1,90
Translate ,0.9,0.45,-14.75,


CreateMeshBuilder,,;//車軸後,,
Cylinder,4,0.08,0.08,1.65
SetColor,20,20,10,
Rotate,0,0,1,90
Translate ,0,0.45,-12.65,


CreateMeshBuilder,,;//車軸前,,
Cylinder,7,0.15,0.15,0.28
SetColor,30,25,15,
Rotate,0,0,1,90
Translate ,-0.9,0.45,-12.65,


CreateMeshBuilder,,;//車軸前,,
Cylinder,7,0.15,0.15,0.28
SetColor,30,25,15,
Rotate,0,0,1,90
Translate ,0.9,0.45,-12.65,


CreateMeshBuilder,,;//左前台車,,
AddVertex   ,1.05,0.16,-15.25,
AddVertex   ,1.05,1,-15.25,
AddVertex   ,1.05,1,-12.15,
AddVertex   ,1.05,0.16,-12.15,
AddFace,0,1,2,3
GenerateNormals,,,,

LoadTexture,daisha.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//左前台車,,
AddVertex   ,1.05,0.5,-14.88,
AddVertex   ,1.05,0.9,-14.88,
AddVertex   ,0.88,0.9,-14.88,
AddVertex   ,0.88,0.5,-14.88,
AddVertex   ,1.05,0.5,-12.52,
AddVertex   ,1.05,0.9,-12.52,
AddVertex   ,0.88,0.9,-12.52,
AddVertex   ,0.88,0.5,-12.52,
AddFace,0,3,2,1
AddFace,4,5,6,7
SetColor,120,120,120,
GenerateNormals,,,,

LoadTexture,daisha.bmp,,,
SetTextureCoordinates,0,0.13,0.58,
SetTextureCoordinates,1,0.13,0.12,
SetTextureCoordinates,2,0.15,0.12,
SetTextureCoordinates,3,0.15,0.58,
SetTextureCoordinates,4,0.13,0.58,
SetTextureCoordinates,5,0.13,0.12,
SetTextureCoordinates,6,0.15,0.12,
SetTextureCoordinates,7,0.15,0.58,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//左前台車,,
AddVertex   ,0.88,0.18,-15.25,
AddVertex   ,0.88,1,-15.25,
AddVertex   ,0.88,1,-12.15,
AddVertex   ,0.88,0.18,-12.15,
AddFace2,0,3,2,1
SetColor,50,50,50,
GenerateNormals,,,,

LoadTexture,daisha.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//左前台車,,
Cylinder,6,0.35,0.3,0.2
SetColor,20,20,20,
Translate    ,0.9,0.9,-13.7,


CreateMeshBuilder,,;//右前台車,,
AddVertex   ,-1.05,0.16,-15.25,
AddVertex   ,-1.05,1,-15.25,
AddVertex   ,-1.05,1,-12.15,
AddVertex   ,-1.05,0.16,-12.15,
AddFace,0,3,2,1
GenerateNormals,,,,

LoadTexture,daisha.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//右前台車,,
AddVertex   ,-1.05,0.5,-14.88,
AddVertex   ,-1.05,0.9,-14.88,
AddVertex   ,-0.88,0.9,-14.88,
AddVertex   ,-0.88,0.5,-14.88,
AddVertex   ,-1.05,0.5,-12.52,
AddVertex   ,-1.05,0.9,-12.52,
AddVertex   ,-0.88,0.9,-12.52,
AddVertex   ,-0.88,0.5,-12.52,
AddFace,0,1,2,3
AddFace,4,7,6,5
SetColor,120,120,120,
GenerateNormals,,,,

LoadTexture,daisha.bmp,,,
SetTextureCoordinates,0,0.13,0.58,
SetTextureCoordinates,1,0.13,0.12,
SetTextureCoordinates,2,0.15,0.12,
SetTextureCoordinates,3,0.15,0.58,
SetTextureCoordinates,4,0.13,0.58,
SetTextureCoordinates,5,0.13,0.12,
SetTextureCoordinates,6,0.15,0.12,
SetTextureCoordinates,7,0.15,0.58,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//右前台車,,
AddVertex   ,-0.88,0.18,-15.25,
AddVertex   ,-0.88,1,-15.25,
AddVertex   ,-0.88,1,-12.15,
AddVertex   ,-0.88,0.18,-12.15,
AddFace2,0,1,2,3
SetColor,50,50,50,
GenerateNormals,,,,

LoadTexture,daisha.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//右前台車,,
Cylinder,6,0.35,0.3,0.2
SetColor,20,20,20,
Translate    ,-0.9,0.9,-13.7,


;------台車(後）------,,,,
CreateMeshBuilder,,;//車輪右前,,
Cylinder,16,0.45,0.48,0.07
SetColor,20,20,10,
Rotate,0,0,1,90
Translate ,-0.74,0.45,-3.85,


CreateMeshBuilder,,;//車輪右前,,
AddVertex   ,-0.78,0,-16.2,
AddVertex   ,-0.78,0.9,-16.2,
AddVertex   ,-0.78,0.9,-15.3,
AddVertex   ,-0.78,0,-15.3,
AddFace,0,3,2,1
Translate ,0,0,11.9,
GenerateNormals,,,,

LoadTexture,sharin.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//車輪右後,,
Cylinder,16,0.45,0.48,0.07
SetColor,20,20,10,
Rotate,0,0,1,90
Translate ,-0.74,0.45,-1.75,


CreateMeshBuilder,,;//車輪右後,,
AddVertex   ,-0.78,0,-14.1,
AddVertex   ,-0.78,0.9,-14.1,
AddVertex   ,-0.78,0.9,-13.2,
AddVertex   ,-0.78,0,-13.2,
AddFace,0,3,2,1
Translate ,0,0,11.9,
GenerateNormals,,,,

LoadTexture,sharin.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//車輪左前,,
Cylinder,16,0.48,0.45,0.07
SetColor,20,20,10,
Rotate,0,0,1,90
Translate ,0.74,0.45,-3.85,


CreateMeshBuilder,,;//車輪左前,,
AddVertex   ,0.78,0,-16.2,
AddVertex   ,0.78,0.9,-16.2,
AddVertex   ,0.78,0.9,-15.3,
AddVertex   ,0.78,0,-15.3,
AddFace,0,1,2,3
Translate ,0,0,11.9,
GenerateNormals,,,,

LoadTexture,sharin.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//車輪左後,,
Cylinder,16,0.48,0.45,0.07
SetColor,20,20,10,
Rotate,0,0,1,90
Translate ,0.74,0.45,-1.75,


CreateMeshBuilder,,;//車輪左後,,
AddVertex   ,0.78,0,-14.1,
AddVertex   ,0.78,0.9,-14.1,
AddVertex   ,0.78,0.9,-13.2,
AddVertex   ,0.78,0,-13.2,
AddFace,0,1,2,3
Translate ,0,0,11.9,
GenerateNormals,,,,

LoadTexture,sharin.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//車軸前,,
Cylinder,4,0.08,0.08,1.65
SetColor,20,20,10,
Rotate,0,0,1,90
Translate ,0,0.45,-3.85,


CreateMeshBuilder,,;//車軸前,,
Cylinder,7,0.15,0.15,0.28
SetColor,30,25,15,
Rotate,0,0,1,90
Translate ,-0.9,0.45,-3.85,


CreateMeshBuilder,,;//車軸前,,
Cylinder,7,0.15,0.15,0.28
SetColor,30,25,15,
Rotate,0,0,1,90
Translate ,0.9,0.45,-3.85,


CreateMeshBuilder,,;//車軸後,,
Cylinder,4,0.08,0.08,1.65
SetColor,20,20,10,
Rotate,0,0,1,90
Translate ,0,0.45,-1.75,


CreateMeshBuilder,,;//車軸前,,
Cylinder,7,0.15,0.15,0.28
SetColor,30,25,15,
Rotate,0,0,1,90
Translate ,-0.9,0.45,-1.75,


CreateMeshBuilder,,;//車軸前,,
Cylinder,7,0.15,0.15,0.28
SetColor,30,25,15,
Rotate,0,0,1,90
Translate ,0.9,0.45,-1.75,


CreateMeshBuilder,,;//左前台車,,
AddVertex   ,1.05,0.16,-16.25,
AddVertex   ,1.05,1,-16.25,
AddVertex   ,1.05,1,-13.15,
AddVertex   ,1.05,0.16,-13.15,
AddFace,0,1,2,3
Translate ,0,0,11.9,
GenerateNormals,,,,

LoadTexture,daisha.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//左前台車,,
AddVertex   ,1.05,0.5,-15.88,
AddVertex   ,1.05,0.9,-15.88,
AddVertex   ,0.88,0.9,-15.88,
AddVertex   ,0.88,0.5,-15.88,
AddVertex   ,1.05,0.5,-13.52,
AddVertex   ,1.05,0.9,-13.52,
AddVertex   ,0.88,0.9,-13.52,
AddVertex   ,0.88,0.5,-13.52,
AddFace,0,3,2,1
AddFace,4,5,6,7
SetColor,120,120,120,
Translate ,0,0,11.9,
GenerateNormals,,,,

LoadTexture,daisha.bmp,,,
SetTextureCoordinates,0,0.13,0.58,
SetTextureCoordinates,1,0.13,0.12,
SetTextureCoordinates,2,0.15,0.12,
SetTextureCoordinates,3,0.15,0.58,
SetTextureCoordinates,4,0.13,0.58,
SetTextureCoordinates,5,0.13,0.12,
SetTextureCoordinates,6,0.15,0.12,
SetTextureCoordinates,7,0.15,0.58,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//左前台車,,
AddVertex   ,0.88,0.18,-16.25,
AddVertex   ,0.88,1,-16.25,
AddVertex   ,0.88,1,-13.15,
AddVertex   ,0.88,0.18,-13.15,
AddFace2,0,3,2,1
SetColor,50,50,50,
Translate ,0,0,11.9,
GenerateNormals,,,,

LoadTexture,daisha.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//左前台車,,
Cylinder,6,0.35,0.3,0.2
SetColor,20,20,20,
Translate    ,0.9,0.9,-2.8,


CreateMeshBuilder,,;//右前台車,,
AddVertex   ,-1.05,0.16,-16.25,
AddVertex   ,-1.05,1,-16.25,
AddVertex   ,-1.05,1,-13.15,
AddVertex   ,-1.05,0.16,-13.15,
AddFace,0,3,2,1
Translate ,0,0,11.9,
GenerateNormals,,,,

LoadTexture,daisha.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//右前台車,,
AddVertex   ,-1.05,0.5,-15.88,
AddVertex   ,-1.05,0.9,-15.88,
AddVertex   ,-0.88,0.9,-15.88,
AddVertex   ,-0.88,0.5,-15.88,
AddVertex   ,-1.05,0.5,-13.52,
AddVertex   ,-1.05,0.9,-13.52,
AddVertex   ,-0.88,0.9,-13.52,
AddVertex   ,-0.88,0.5,-13.52,
AddFace,0,1,2,3
AddFace,4,7,6,5
SetColor,120,120,120,
Translate ,0,0,11.9,
GenerateNormals,,,,

LoadTexture,daisha.bmp,,
SetTextureCoordinates,0,0.13,0.58
SetTextureCoordinates,1,0.13,0.12
SetTextureCoordinates,2,0.15,0.12
SetTextureCoordinates,3,0.15,0.58
SetTextureCoordinates,4,0.13,0.58
SetTextureCoordinates,5,0.13,0.12
SetTextureCoordinates,6,0.15,0.12
SetTextureCoordinates,7,0.15,0.58
SetDecalTransparentColor,0,0,255


CreateMeshBuilder,,;//右前台車,
AddVertex   ,-0.88,0.18,-16.25
AddVertex   ,-0.88,1,-16.25
AddVertex   ,-0.88,1,-13.15
AddVertex   ,-0.88,0.18,-13.15,
AddFace2,0,1,2,3
SetColor,50,50,50,
Translate ,0,0,11.9,
GenerateNormals,,,,

LoadTexture,daisha.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//右前台車,,
Cylinder,6,0.35,0.3,0.2
SetColor,20,20,20,
Translate    ,-0.9,0.9,-2.8,


;------床下機器------,,,,
CreateMeshBuilder,,;//左側床下機器,,
AddVertex     ,1.15,0.3,-11.8,
AddVertex     ,1.15,1,-11.8,
AddVertex     ,1.15,1,-4.8,
AddVertex     ,1.15,0.3,-4.8,
AddFace,0,1,2,3
GenerateNormals,,,,

LoadTexture,Mc-under.bmp,,,
SetTextureCoordinates,0,0.1,1,
SetTextureCoordinates,1,0.1,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,


CreateMeshBuilder,,;//右側床下機器,,
AddVertex     ,-1.15,0.3,-11.8,
AddVertex     ,-1.15,1,-11.8,
AddVertex     ,-1.15,1,-4.8,
AddVertex     ,-1.15,0.3,-4.8,
AddFace,0,3,2,1
GenerateNormals,,,,

LoadTexture,Mc-under.bmp,,,
SetTextureCoordinates,0,0.1,1,
SetTextureCoordinates,1,0.1,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,


CreateMeshBuilder,,;//床下機器,,
AddVertex     ,-1.15,0.3,-11.8,
AddVertex     ,-1.15,1,-11.8,
AddVertex     ,1.15,1,-11.8,
AddVertex     ,1.15,0.3,-11.8,
AddVertex     ,-1.15,0.3,-4.8,
AddVertex     ,-1.15,1,-4.8,
AddVertex     ,1.15,1,-4.8,
AddVertex     ,1.15,0.3,-4.8,
AddFace,0,1,2,3
AddFace,4,7,6,5
SetColor,100,100,100,
GenerateNormals,,,,

LoadTexture,Mc-under.bmp,,
SetTextureCoordinates,0,0.01,1
SetTextureCoordinates,1,0.01,0
SetTextureCoordinates,2,0.02,0
SetTextureCoordinates,3,0.02,1
SetTextureCoordinates,4,0.01,1
SetTextureCoordinates,5,0.01,0
SetTextureCoordinates,6,0.02,0
SetTextureCoordinates,7,0.02,1


CreateMeshBuilder,,;//床下機器,
Cube,0.8,0.15,0.5
SetColor,40,40,30
Translate ,0,0.85,-16
GenerateNormals,,,


CreateMeshBuilder,,;//床下機器,
Cube,0.8,0.15,0.5
SetColor,40,40,30
Translate ,0,0.85,-0.61
GenerateNormals,,,


;------シングルアームパンタグラフ------,,,
CreateMeshBuilder,,;//ベース,
Cube,0.05,0.05,0.6
SetColor,130,130,130
Translate ,0.4,3.75,-14.55
GenerateNormals,,,


CreateMeshBuilder,,;//ベース,
Cube,0.05,0.05,0.6
SetColor,130,130,130
Translate ,-0.4,3.75,-14.55
GenerateNormals,,,


CreateMeshBuilder,,;//ベース,
Cube,0.072,0.05,0.5
SetColor,130,130,130
Translate ,0,3.75,-14.55
GenerateNormals,,,


CreateMeshBuilder,,;//ベース,
Cube,0.4,0.05,0.05
SetColor,130,130,130
Translate ,0,3.75,-15.1
GenerateNormals,,,


CreateMeshBuilder,,;//ベース,
Cube,0.4,0.05,0.05
SetColor,130,130,130
Translate ,0,3.75,-14
GenerateNormals,,,


CreateMeshBuilder,,;//ベース,
Cube,0.15,0.04,0.05
SetColor,130,130,130,
Rotate,0,1,0,45
Translate ,0.4,3.73,-14,
GenerateNormals,,,,


CreateMeshBuilder,,;//ベース,,
Cube,0.15,0.04,0.05,
SetColor,130,130,130,
Rotate,0,1,0,315
Translate ,-0.4,3.73,-14,
GenerateNormals,,,,


CreateMeshBuilder,,;//ベース,,
Cube,0.15,0.04,0.05,
SetColor,130,130,130,
Rotate,0,1,0,315
Translate ,0.4,3.73,-15.1,
GenerateNormals,,,,


CreateMeshBuilder,,;//ベース,,
Cube,0.15,0.04,0.05,
SetColor,130,130,130,
Rotate,0,1,0,45
Translate ,-0.4,3.73,-15.1,
GenerateNormals,,,,


CreateMeshBuilder,,;//碍子1,,
Cylinder,8,0.1,0.1,0.25
Translate ,0.5,3.58,-13.92,
SetColor,200,200,200,
GenerateNormals,,,,


CreateMeshBuilder,,;//碍子2,,
Cylinder,8,0.1,0.1,0.25
Translate ,-0.5,3.58,-13.92,
SetColor,200,200,200,
GenerateNormals,,,,


CreateMeshBuilder,,;//碍子3,,
Cylinder,8,0.1,0.1,0.25
Translate ,0.5,3.58,-15.18,
SetColor,200,200,200,
GenerateNormals,,,,


CreateMeshBuilder,,;//碍子4,,
Cylinder,8,0.1,0.1,0.25
Translate ,-0.5,3.58,-15.18,
SetColor,200,200,200,
GenerateNormals,,,,


CreateMeshBuilder,,;//アーム,,
AddVertex        ,0.07,3.8,-14.6,
AddVertex        ,0.07,4.45,-13.9,
AddVertex        ,0.07,4.45,-14,
AddVertex        ,0.07,3.8,-14.7,
AddVertex        ,-0.07,3.8,-14.6,
AddVertex        ,-0.07,4.45,-13.9,
AddVertex        ,-0.07,4.45,-14,
AddVertex        ,-0.07,3.8,-14.7,
AddVertex        ,0.07,5.08,-14.6,
AddVertex        ,0.07,5.08,-14.7,
AddVertex        ,-0.07,5.08,-14.6,
AddVertex        ,-0.07,5.08,-14.7,
AddFace,0,3,2,1
AddFace,4,5,6,7
AddFace,4,0,1,5
AddFace,7,6,2,3
AddFace,1,2,9,8
AddFace,5,10,11,6
AddFace,5,1,8,10
AddFace,6,10,9,2
AddFace,10,8,9,11
SetColor,100,100,100,
GenerateNormals,,,,


CreateMeshBuilder,,;//アーム2,,
AddVertex        ,0.04,3.8,-14.4,
AddVertex        ,0.04,4.45,-13.9,
AddVertex        ,0.04,4.45,-13.98,
AddVertex        ,0.04,3.8,-14.48,
AddVertex        ,-0.04,3.8,-14.4,
AddVertex        ,-0.04,4.45,-13.9,
AddVertex        ,-0.04,4.45,-13.98,
AddVertex        ,-0.04,3.8,-14.48,
AddFace,0,3,2,1
AddFace,4,5,6,7
AddFace,4,0,1,5
AddFace,7,6,2,3
SetColor,120,120,120,
GenerateNormals,,,,


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


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


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


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


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


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


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


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


;------影------,,,,
CreateMeshBuilder,,;//影,,
AddVertex   ,-1.3,-0.1,-16.75,
AddVertex   ,-1.3,-0.1,0,
AddVertex   ,1.3,-0.1,0,
AddVertex   ,1.3,-0.1,-16.75,
AddFace,0,1,2,3
SetColor,0,0,0,130
GenerateNormals,,,,
