;//ＪＲ東日本２０９系２１００番台（モハ２０８−２１００トイレ付き）,,,,
;------ボディ------,,,,
CreateMeshBuilder,,;//前面,,
AddVertex,-1.4,1,-19,
AddVertex,-1.4,3.35,-19,
AddVertex,-1.3,3.5,-19,
AddVertex,-0.5,3.635,-19,
AddVertex,0,3.66,-19,
AddVertex,0.5,3.635,-19,
AddVertex,1.3,3.5,-19,
AddVertex,1.4,3.35,-19,
AddVertex,1.4,1,-19,
AddFace,0,1,7,8
AddFace,1,2,6,7
AddFace,2,3,5,6
AddFace,3,4,5,
GenerateNormals,,,

LoadTexture,back.bmp,,
SetTextureCoordinates,0,1,0.99
SetTextureCoordinates,1,1,0.14
SetTextureCoordinates,2,0.965,0.1
SetTextureCoordinates,3,0.679,0.03
SetTextureCoordinates,4,0.5,0.01
SetTextureCoordinates,5,0.321,0.03
SetTextureCoordinates,6,0.035,0.1
SetTextureCoordinates,7,0,0.14
SetTextureCoordinates,8,0,0.99


CreateMeshBuilder,,;//後面,
AddVertex,-1.4,1,0.5
AddVertex,-1.4,3.35,0.5,
AddVertex,-1.3,3.5,0.5,
AddVertex,-0.5,3.635,0.5,
AddVertex,0,3.66,0.5,
AddVertex,0.5,3.635,0.5,
AddVertex,1.3,3.5,0.5,
AddVertex,1.4,3.35,0.5,
AddVertex,1.4,1,0.5,
AddFace,0,8,7,1
AddFace,1,7,6,2
AddFace,2,6,5,3
AddFace,3,5,4,
GenerateNormals,,,,

LoadTexture,back.bmp,,,
SetTextureCoordinates,0,1,0.99,
SetTextureCoordinates,1,1,0.14
SetTextureCoordinates,2,0.965,0.1
SetTextureCoordinates,3,0.679,0.03
SetTextureCoordinates,4,0.5,0.01
SetTextureCoordinates,5,0.321,0.03
SetTextureCoordinates,6,0.035,0.1
SetTextureCoordinates,7,0,0.14
SetTextureCoordinates,8,0,0.99


CreateMeshBuilder,,;//連結幌,
AddVertex,-0.38,3.2,1
AddVertex,-0.38,3.2,0.5
AddVertex,0.38,3.2,0.5
AddVertex,0.38,3.2,1
AddVertex,0.45,3.13,0.5
AddVertex,0.45,3.13,1,
AddVertex,0.45,1.19,0.5,
AddVertex,0.45,1.19,1,
AddVertex,0.38,1.12,0.5,
AddVertex,0.38,1.12,1,
AddVertex,-0.45,3.13,1,
AddVertex,-0.45,3.13,0.5,
AddVertex,-0.45,1.19,0.5,
AddVertex,-0.45,1.19,1,
AddVertex,-0.38,1.12,0.5,
AddVertex,-0.38,1.12,1,
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,
AddVertex,1.4,3.35,-19,
AddVertex,1.4,3.35,0.5,
AddVertex,1.4,1,0.5,
AddFace,0,1,2,3
GenerateNormals,,,,

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


CreateMeshBuilder,,;//左側面転落防止幌,
AddVertex,1.39,1.27,0.5
AddVertex,1.39,2.42,0.5
AddVertex,1.39,2.42,0.7
AddVertex,1.39,1.27,0.7
AddVertex,1.39,1.27,-19.2
AddVertex,1.39,2.42,-19.2
AddVertex,1.39,2.42,-19
AddVertex,1.39,1.27,-19
AddFace2,0,1,2,3
AddFace2,4,5,6,7
SetColor,120,120,120,
GenerateNormals,,,,


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

LoadTexture,side2-2.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,


CreateMeshBuilder,,;//右側面転落防止幌,,
AddVertex,-1.39,1.27,0.5,
AddVertex,-1.39,2.42,0.5,
AddVertex,-1.39,2.42,0.7,
AddVertex,-1.39,1.27,0.7,
AddVertex,-1.39,1.27,-19.2,
AddVertex,-1.39,2.42,-19.2,
AddVertex,-1.39,2.42,-19,
AddVertex,-1.39,1.27,-19,
AddFace2,0,1,2,3
AddFace2,4,5,6,7
SetColor,120,120,120,
GenerateNormals,,,,


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


;------屋根------,,,,
CreateMeshBuilder,,;//屋根,,
AddVertex,1.4,3.35,-19,
AddVertex,1.3,3.5,-19,
AddVertex,0.5,3.635,-19,
AddVertex,0,3.66,-19,
AddVertex,-0.5,3.635,-19,
AddVertex,-1.3,3.5,-19,
AddVertex,-1.4,3.35,-19,
AddVertex,1.4,3.35,0.5,
AddVertex,1.3,3.5,0.5,
AddVertex,0.5,3.635,0.5,
AddVertex,0,3.66,0.5,
AddVertex,-0.5,3.635,0.5,
AddVertex,-1.3,3.5,0.5,
AddVertex,-1.4,3.35,0.5,
AddFace,0,1,8,7
AddFace,1,2,9,8
AddFace,2,3,10,9
AddFace,3,4,11,10
AddFace,4,5,12,11
AddFace,5,6,13,12
SetColor,200,200,200,
GenerateNormals,,,,

LoadTexture,yane2.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0.3,1,
SetTextureCoordinates,3,0.5,1,
SetTextureCoordinates,4,0.7,1,
SetTextureCoordinates,5,1,1,
SetTextureCoordinates,6,1,1,
SetTextureCoordinates,7,0,0,
SetTextureCoordinates,8,0,0,
SetTextureCoordinates,9,0.3,0,
SetTextureCoordinates,10,0.5,0,
SetTextureCoordinates,11,0.7,0,
SetTextureCoordinates,12,1,0,
SetTextureCoordinates,13,1,0,


CreateMeshBuilder,,;//屋根,,
AddVertex,1.02,3.55,-18.93,
AddVertex,1.02,3.55,0.43,
AddVertex,1.29,3.55,-18.9,
AddVertex,1.29,3.55,0.4,
AddVertex,1.33,3.43,-18.9,
AddVertex,1.33,3.43,0.4,
AddFace,2,0,1,3
AddFace,4,2,3,5
AddFace,0,2,4,
AddFace,1,5,3,
SetColor,130,130,130,
GenerateNormals,,,,


CreateMeshBuilder,,;//屋根,,
AddVertex,-1.02,3.55,-18.93,
AddVertex,-1.02,3.55,0.43,
AddVertex,-1.29,3.55,-18.9,
AddVertex,-1.29,3.55,0.4,
AddVertex,-1.33,3.43,-18.9,
AddVertex,-1.33,3.43,0.4,
AddFace,2,3,1,0
AddFace,4,5,3,2
AddFace,0,4,2
AddFace,1,3,5
SetColor,130,130,130
GenerateNormals,,,


;------屋根上機器------,,,
CreateMeshBuilder,,;//クーラー,
AddVertex,1,3.55,-10.55
AddVertex,1,3.75,-10.55
AddVertex,1,3.75,-7.2
AddVertex,1,3.55,-7.2
AddVertex,0.6,3.92,-10.55
AddVertex,0.6,3.92,-7.2
AddVertex,0,4,-7.2
AddVertex,0,4,-10.55
AddVertex,-0.6,3.92,-10.55,
AddVertex,-0.6,3.92,-7.2,
AddVertex,-1,3.55,-10.55,
AddVertex,-1,3.75,-10.55,
AddVertex,-1,3.75,-7.2,
AddVertex,-1,3.55,-7.2,
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
SetColor,200,200,200,
GenerateNormals,,,,

LoadTexture,cooler.bmp,,,
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,0.18
SetTextureCoordinates,2,1,0.18
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.18
SetTextureCoordinates,12,1,0.18
SetTextureCoordinates,13,1,0


CreateMeshBuilder,,;//クーラー,
AddVertex,-1,3.55,-10.55
AddVertex,-1,3.75,-10.55
AddVertex,-0.6,3.92,-10.55
AddVertex,-0.6,3.6,-10.55
AddVertex,0,4,-10.55
AddVertex,0,3.65,-10.55
AddVertex,0.6,3.92,-10.55
AddVertex,0.6,3.6,-10.55
AddVertex,1,3.75,-10.55
AddVertex,1,3.55,-10.55
AddVertex,-1,3.55,-7.2
AddVertex,-1,3.75,-7.2
AddVertex,-0.6,3.92,-7.2
AddVertex,-0.6,3.6,-7.2
AddVertex,0,4,-7.2
AddVertex,0,3.65,-7.2,
AddVertex,0.6,3.92,-7.2,
AddVertex,0.6,3.6,-7.2,
AddVertex,1,3.75,-7.2,
AddVertex,1,3.55,-7.2,
AddFace,0,1,2,3
AddFace,3,2,4,5
AddFace,5,4,6,7
AddFace,7,6,8,9
AddFace,10,13,12,11
AddFace,13,15,14,12
AddFace,15,17,16,14
AddFace,17,19,18,16
GenerateNormals,,,,

LoadTexture,cooler-side.bmp,,,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,0.2,0.05
SetTextureCoordinates,3,0.2,0.95
SetTextureCoordinates,4,0.5,-0.2
SetTextureCoordinates,5,0.5,0.83
SetTextureCoordinates,6,0.8,0.05
SetTextureCoordinates,7,0.8,0.95
SetTextureCoordinates,8,1,0
SetTextureCoordinates,9,1,1
SetTextureCoordinates,10,0,1
SetTextureCoordinates,11,0,0
SetTextureCoordinates,12,0.2,0.05
SetTextureCoordinates,13,0.2,0.95
SetTextureCoordinates,14,0.5,-0.2
SetTextureCoordinates,15,0.5,0.83
SetTextureCoordinates,16,0.8,0.05
SetTextureCoordinates,17,0.8,0.95
SetTextureCoordinates,18,1,0
SetTextureCoordinates,19,1,1


CreateMeshBuilder,,;//屋根上機器,
Cube,0.03,0.02,0.15
SetColor,120,120,120
Translate,0.24,3.67,-1.725
GenerateNormals,,,


CreateMeshBuilder,,;//屋根上機器,
Cube,0.03,0.02,0.15
SetColor,120,120,120
Translate,-0.24,3.67,-1.725
GenerateNormals,,,


CreateMeshBuilder,,;//屋根上機器,
Cube,0.25,0.03,0.02
SetColor,165,165,165
Translate,0,3.71,-1.82
GenerateNormals,,,


CreateMeshBuilder,,;//屋根上機器,
Cube,0.25,0.03,0.02
SetColor,165,165,165
Translate,0,3.71,-1.63
GenerateNormals,,,


CreateMeshBuilder,,;//屋根上機器,
Cube,0.25,0.05,0.15
SetColor,180,180,180
Translate,0,3.79,-1.725
GenerateNormals,,,


CreateMeshBuilder,,;//屋根上機器,
Cube,0.27,0.01,0.175
SetColor,190,190,190
Translate,0,3.81,-1.725
GenerateNormals,,,


CreateMeshBuilder,,;//屋根上機器,,
AddVertex,-0.25,3.84,-1.875,
AddVertex,-0.25,3.84,-1.575,
AddVertex,0.25,3.84,-1.875,
AddVertex,0.25,3.84,-1.575,
AddVertex,-0.17,3.87,-1.825,
AddVertex,-0.17,3.87,-1.625,
AddVertex,0.17,3.87,-1.825,
AddVertex,0.17,3.87,-1.625,
AddFace,0,4,6,2
AddFace,2,6,7,3
AddFace,1,5,4,0
AddFace,3,7,5,1
AddFace,4,5,7,6
SetColor,190,190,190,
GenerateNormals,,,,


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


;------台車(前）------,,,,
CreateMeshBuilder,,;//車輪左前,,
Cylinder,16,0.46,0.43,0.07
SetColor,20,20,10,
Rotate,0,0,1,90
Translate,0.56,0.43,-17,


CreateMeshBuilder,,;//車輪左前,,
AddVertex,0.6,0,-17.43,
AddVertex,0.6,0.86,-17.43,
AddVertex,0.6,0.86,-16.57,
AddVertex,0.6,0,-16.57,
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,0,


CreateMeshBuilder,,;//車輪左後,,
Cylinder,16,0.46,0.43,0.07
SetColor,20,20,10,
Rotate,0,0,1,90
Translate,0.56,0.43,-14.9,


CreateMeshBuilder,,;//車輪左後,,
AddVertex,0.6,0,-15.33,
AddVertex,0.6,0.86,-15.33,
AddVertex,0.6,0.86,-14.47,
AddVertex,0.6,0,-14.47,
AddFace,0,1,2,3
GenerateNormals,,,,

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


CreateMeshBuilder,,;//車輪右前,,
Cylinder,16,0.43,0.46,0.07
SetColor,20,20,10,
Rotate,0,0,1,90
Translate,-0.56,0.43,-17,


CreateMeshBuilder,,;//車輪右前,,
AddVertex,-0.6,0,-17.43,
AddVertex,-0.6,0.86,-17.43,
AddVertex,-0.6,0.86,-16.57,
AddVertex,-0.6,0,-16.57,
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,0,


CreateMeshBuilder,,;//車輪右後,,
Cylinder,16,0.43,0.46,0.07
SetColor,20,20,10,
Rotate,0,0,1,90
Translate,-0.56,0.43,-14.9,


CreateMeshBuilder,,;//車輪右後,,
AddVertex,-0.6,0,-15.33,
AddVertex,-0.6,0.86,-15.33,
AddVertex,-0.6,0.86,-14.47,
AddVertex,-0.6,0,-14.47,
AddFace,0,3,2,1
GenerateNormals,,,,

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


CreateMeshBuilder,,;//台車左側,,
AddVertex,0.95,0.2,-17.35,
AddVertex,0.95,0.97,-17.35,
AddVertex,0.95,0.97,-14.55,
AddVertex,0.95,0.2,-14.55,
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.2,-17.35,
AddVertex,0.8,0.97,-17.35,
AddVertex,0.8,0.97,-14.55,
AddVertex,0.8,0.2,-14.55,
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,-0.95,0.2,-17.35,
AddVertex,-0.95,0.97,-17.35,
AddVertex,-0.95,0.97,-14.55,
AddVertex,-0.95,0.2,-14.55,
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.2,-17.35,
AddVertex,-0.8,0.97,-17.35,
AddVertex,-0.8,0.97,-14.55,
AddVertex,-0.8,0.2,-14.55,
AddFace2,0,3,2,1
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,0.58,0.25,-16.65,
AddVertex,0.58,0.7,-16.65,
AddVertex,0.58,0.7,-15.25,
AddVertex,0.58,0.25,-15.25,
AddFace2,0,1,2,3
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.58,0.25,-16.65,
AddVertex,-0.58,0.7,-16.65,
AddVertex,-0.58,0.7,-15.25,
AddVertex,-0.58,0.25,-15.25,
AddFace2,0,3,2,1
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,,;//車軸前,,
Cylinder,4,0.08,0.08,1.65
SetColor,20,20,10,
Rotate,0,0,1,90
Translate,0,0.43,-17,


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


CreateMeshBuilder,,;//空気バネ,,
Cylinder,6,0.36,0.36,0.15
SetColor,35,35,35,
Translate,1,0.93,-15.95,


CreateMeshBuilder,,;//空気バネ,,
Cylinder,6,0.36,0.36,0.15
SetColor,35,35,35,
Translate,-1,0.93,-15.95,


;------台車(後）------,,,,
CreateMeshBuilder,,;//車輪左前,,
Cylinder,16,0.46,0.43,0.07
SetColor,20,20,10,
Rotate,0,0,1,90
Translate,0.56,0.43,-3.6,


CreateMeshBuilder,,;//車輪左前,,
AddVertex,0.6,0,-4.03,
AddVertex,0.6,0.86,-4.03,
AddVertex,0.6,0.86,-3.17,
AddVertex,0.6,0,-3.17,
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,0,


CreateMeshBuilder,,;//車輪左後,,
Cylinder,16,0.46,0.43,0.07
SetColor,20,20,10,
Rotate,0,0,1,90
Translate,0.56,0.43,-1.5,


CreateMeshBuilder,,;//車輪左後,,
AddVertex,0.6,0,-1.93,
AddVertex,0.6,0.86,-1.93,
AddVertex,0.6,0.86,-1.07,
AddVertex,0.6,0,-1.07,
AddFace,0,1,2,3
GenerateNormals,,,,

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


CreateMeshBuilder,,;//車輪右前,,
Cylinder,16,0.43,0.46,0.07
SetColor,20,20,10,
Rotate,0,0,1,90
Translate,-0.56,0.43,-3.6,


CreateMeshBuilder,,;//車輪右前,,
AddVertex,-0.6,0,-4.03,
AddVertex,-0.6,0.86,-4.03,
AddVertex,-0.6,0.86,-3.17,
AddVertex,-0.6,0,-3.17,
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,0,


CreateMeshBuilder,,;//車輪右後,,
Cylinder,16,0.43,0.46,0.07
SetColor,20,20,10,
Rotate,0,0,1,90
Translate,-0.56,0.43,-1.5,


CreateMeshBuilder,,;//車輪右後,,
AddVertex,-0.6,0,-1.93,
AddVertex,-0.6,0.86,-1.93,
AddVertex,-0.6,0.86,-1.07,
AddVertex,-0.6,0,-1.07,
AddFace,0,3,2,1
GenerateNormals,,,,

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


CreateMeshBuilder,,;//台車左側,,
AddVertex,0.95,0.2,-3.95,
AddVertex,0.95,0.97,-3.95,
AddVertex,0.95,0.97,-1.15,
AddVertex,0.95,0.2,-1.15,
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.2,-3.95,
AddVertex,0.8,0.97,-3.95,
AddVertex,0.8,0.97,-1.15,
AddVertex,0.8,0.2,-1.15,
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,-0.95,0.2,-3.95,
AddVertex,-0.95,0.97,-3.95,
AddVertex,-0.95,0.97,-1.15,
AddVertex,-0.95,0.2,-1.15,
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.2,-3.95,
AddVertex,-0.8,0.97,-3.95,
AddVertex,-0.8,0.97,-1.15,
AddVertex,-0.8,0.2,-1.15,
AddFace2,0,3,2,1
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,0.58,0.25,-3.25,
AddVertex,0.58,0.7,-3.25,
AddVertex,0.58,0.7,-1.85,
AddVertex,0.58,0.25,-1.85,
AddFace2,0,1,2,3
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.58,0.25,-3.25,
AddVertex,-0.58,0.7,-3.25,
AddVertex,-0.58,0.7,-1.85,
AddVertex,-0.58,0.25,-1.85,
AddFace2,0,3,2,1
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,,;//車軸前,,
Cylinder,4,0.08,0.08,1.65
SetColor,20,20,10,
Rotate,0,0,1,90
Translate,0,0.43,-3.6,


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


CreateMeshBuilder,,;//空気バネ,,
Cylinder,6,0.36,0.36,0.15
SetColor,35,35,35,
Translate,1,0.93,-2.55,


CreateMeshBuilder,,;//空気バネ,,
Cylinder,6,0.36,0.36,0.15
SetColor,35,35,35,
Translate,-1,0.93,-2.55,


;------床下機器------,,,,
CreateMeshBuilder,,;//床下機器,,
Cube,0.75,0.15,0.6,
SetColor,25,25,25,
Translate,0,0.85,-0.1
GenerateNormals,,,


CreateMeshBuilder,,;//床下機器,
Cube,0.75,0.15,0.6
SetColor,25,25,25
Translate,0,0.85,-18.4
GenerateNormals,,,


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

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


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

LoadTexture,under.bmp,,,
SetTextureCoordinates,0,1,0.99,
SetTextureCoordinates,1,1,0.02,
SetTextureCoordinates,2,0,0.02,
SetTextureCoordinates,3,0,0.99,
SetTextureCoordinates,4,1,0.99,
SetTextureCoordinates,5,1,0.02,
SetTextureCoordinates,6,0,0.02,
SetTextureCoordinates,7,0,0.99,


;------影------,,,,
CreateMeshBuilder,,;//影,,
AddVertex,-1.35,-0.1,-19.25,
AddVertex,-1.35,-0.1,0.75,
AddVertex,1.35,-0.1,0.75,
AddVertex,1.35,-0.1,-19.25,
AddFace,0,1,2,3
SetColor,0,0,0,150
GenerateNormals,,,,


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

;（Ｃ）２００９ ＲＯＮ,,,,
