;//小田急４０００形先頭車,,,
;------ボディ------,,,
CreateMeshBuilder,,;//前面,
AddVertex,-1.395,0.95,-0.5
AddVertex,-1.395,0.95,-0.19
AddVertex,-1.35,0.95,-0.09
AddVertex,-1.285,0.95,-0.04
AddVertex,-0.6,0.95,-0.01
AddVertex,0,0.95,0.01
AddVertex,0.6,0.95,-0.01
AddVertex,1.285,0.95,-0.04
AddVertex,1.35,0.95,-0.09
AddVertex,1.395,0.95,-0.19
AddVertex,1.395,0.95,-0.5
AddVertex,-1.393,1.3,-0.5
AddVertex,-1.393,1.3,-0.1
AddVertex,-1.348,1.3,0
AddVertex,-1.285,1.3,0.05
AddVertex,-0.6,1.3,0.08
AddVertex,0,1.3,0.1
AddVertex,0.6,1.3,0.08
AddVertex,1.285,1.3,0.05
AddVertex,1.348,1.3,0
AddVertex,1.393,1.3,-0.1
AddVertex,1.393,1.3,-0.5
AddVertex,-1.385,2.5,-0.5
AddVertex,-1.385,2.5,-0.22
AddVertex,-1.34,2.5,-0.12
AddVertex,-1.285,2.5,-0.07
AddVertex,-0.6,2.5,-0.04
AddVertex,0,2.5,-0.02
AddVertex,0.6,2.5,-0.04
AddVertex,1.285,2.5,-0.07
AddVertex,1.34,2.5,-0.12
AddVertex,1.385,2.5,-0.22
AddVertex,1.385,2.5,-0.5
AddVertex,-1.38,3.35,-0.5
AddVertex,-1.38,3.35,-0.3
AddVertex,-1.335,3.35,-0.2
AddVertex,-1.275,3.35,-0.15
AddVertex,-0.6,3.35,-0.12
AddVertex,0,3.35,-0.1
AddVertex,0.6,3.35,-0.12
AddVertex,1.275,3.35,-0.15
AddVertex,1.335,3.35,-0.2
AddVertex,1.38,3.35,-0.3
AddVertex,1.38,3.35,-0.5
AddVertex,-1.35,3.43,-0.5
AddVertex,-1.35,3.43,-0.3
AddVertex,-1.315,3.43,-0.21
AddVertex,-1.275,3.43,-0.162
AddVertex,-0.6,3.48,-0.132
AddVertex,0,3.49,-0.113
AddVertex,0.6,3.48,-0.132
AddVertex,1.275,3.43,-0.162
AddVertex,1.315,3.43,-0.21
AddVertex,1.35,3.43,-0.3
AddVertex,1.35,3.43,-0.5
AddVertex,-1.32,3.48,-0.5
AddVertex,-1.32,3.48,-0.3
AddVertex,-1.295,3.48,-0.23
AddVertex,-1.275,3.48,-0.192
AddVertex,-0.6,3.56,-0.172
AddVertex,0,3.58,-0.153
AddVertex,0.6,3.56,-0.172
AddVertex,1.275,3.48,-0.192
AddVertex,1.295,3.48,-0.23
AddVertex,1.32,3.48,-0.3
AddVertex,1.32,3.48,-0.5
AddVertex,-1.275,3.52,-0.3
AddVertex,-0.6,3.61,-0.28
AddVertex,0,3.64,-0.27
AddVertex,0.6,3.61,-0.28
AddVertex,1.275,3.52,-0.3
AddVertex,-1.275,3.54,-0.5
AddVertex,-0.6,3.64,-0.5
AddVertex,0,3.67,-0.5
AddVertex,0.6,3.64,-0.5
AddVertex,1.275,3.54,-0.5
AddVertex,-1.38,3.35,-1.15
AddVertex,-1.35,3.43,-1.1,
AddVertex,-1.32,3.48,-1.07,
AddVertex,-1.275,3.54,-1.03,
AddVertex,1.38,3.35,-1.15,
AddVertex,1.35,3.43,-1.1,
AddVertex,1.32,3.48,-1.07,
AddVertex,1.275,3.54,-1.03,
AddFace2,76,33,44,77
AddFace2,77,44,55,78
AddFace2,78,55,71,79
AddFace2,43,80,81,54
AddFace2,54,81,82,65
AddFace2,65,82,83,75
AddFace,0,1,12,11
AddFace,1,2,13,12
AddFace,2,3,14,13
AddFace,3,4,15,14
AddFace,4,5,16,15
AddFace,5,6,17,16
AddFace,6,7,18,17
AddFace,7,8,19,18
AddFace,8,9,20,19
AddFace,9,10,21,20
AddFace,11,12,23,22
AddFace,12,13,24,23
AddFace,13,14,25,24
AddFace,14,15,26,25
AddFace,15,16,27,26
AddFace,16,17,28,27
AddFace,17,18,29,28
AddFace,18,19,30,29
AddFace,19,20,31,30
AddFace,20,21,32,31
AddFace,22,23,34,33
AddFace,23,24,35,34
AddFace,24,25,36,35
AddFace,25,26,37,36
AddFace,26,27,38,37
AddFace,27,28,39,38
AddFace,28,29,40,39
AddFace,29,30,41,40
AddFace,30,31,42,41
AddFace,31,32,43,42
AddFace,33,34,45,44
AddFace,34,35,46,45
AddFace,35,36,47,46
AddFace,36,37,48,47
AddFace,37,38,49,48
AddFace,38,39,50,49
AddFace,39,40,51,50
AddFace,40,41,52,51
AddFace,41,42,53,52
AddFace,42,43,54,53
AddFace,44,45,56,55
AddFace,45,46,57,56
AddFace,46,47,58,57
AddFace,47,48,59,58
AddFace,48,49,60,59
AddFace,49,50,61,60
AddFace,50,51,62,61
AddFace,51,52,63,62
AddFace,52,53,64,63
AddFace,53,54,65,64
AddFace,58,59,67,66
AddFace,59,60,68,67
AddFace,60,61,69,68
AddFace,61,62,70,69
AddFace,66,67,72,71
AddFace,67,68,73,72
AddFace,68,69,74,73
AddFace,69,70,75,74
AddFace,55,56,66,71
AddFace,56,57,58,66
AddFace,64,65,75,70
AddFace,62,63,64,70
GenerateNormals,,,,

LoadTexture,front2.bmp,,,
SetTextureCoordinates,0,1,0.995,
SetTextureCoordinates,1,1,0.995,
SetTextureCoordinates,2,0.99,0.995
SetTextureCoordinates,3,0.96,0.995
SetTextureCoordinates,4,0.71,0.995
SetTextureCoordinates,5,0.5,0.995
SetTextureCoordinates,6,0.29,0.995
SetTextureCoordinates,7,0.04,0.995
SetTextureCoordinates,8,0.01,0.995
SetTextureCoordinates,9,0,0.995
SetTextureCoordinates,10,0,0.995
SetTextureCoordinates,11,1,0.874
SetTextureCoordinates,12,1,0.874
SetTextureCoordinates,13,0.99,0.874
SetTextureCoordinates,14,0.96,0.874
SetTextureCoordinates,15,0.71,0.874
SetTextureCoordinates,16,0.5,0.874
SetTextureCoordinates,17,0.29,0.874
SetTextureCoordinates,18,0.04,0.874
SetTextureCoordinates,19,0.01,0.874
SetTextureCoordinates,20,0,0.874
SetTextureCoordinates,21,0,0.874
SetTextureCoordinates,22,1,0.43
SetTextureCoordinates,23,1,0.43
SetTextureCoordinates,24,0.99,0.43
SetTextureCoordinates,25,0.96,0.43
SetTextureCoordinates,26,0.71,0.43
SetTextureCoordinates,27,0.5,0.43
SetTextureCoordinates,28,0.29,0.43
SetTextureCoordinates,29,0.04,0.43
SetTextureCoordinates,30,0.01,0.43
SetTextureCoordinates,31,0,0.43
SetTextureCoordinates,32,0,0.43
SetTextureCoordinates,33,1,0.125
SetTextureCoordinates,34,1,0.125
SetTextureCoordinates,35,0.99,0.125
SetTextureCoordinates,36,0.96,0.125
SetTextureCoordinates,37,0.71,0.12
SetTextureCoordinates,38,0.5,0.12
SetTextureCoordinates,39,0.29,0.12
SetTextureCoordinates,40,0.04,0.125
SetTextureCoordinates,41,0.01,0.125
SetTextureCoordinates,42,0,0.125
SetTextureCoordinates,43,0,0.125
SetTextureCoordinates,44,1,0.105
SetTextureCoordinates,45,1,0.105
SetTextureCoordinates,46,0.99,0.105
SetTextureCoordinates,47,0.96,0.105
SetTextureCoordinates,48,0.71,0.09
SetTextureCoordinates,49,0.5,0.088
SetTextureCoordinates,50,0.29,0.09
SetTextureCoordinates,51,0.04,0.105
SetTextureCoordinates,52,0.01,0.105
SetTextureCoordinates,53,0,0.105
SetTextureCoordinates,54,0,0.105
SetTextureCoordinates,55,1,0.08
SetTextureCoordinates,56,1,0.08
SetTextureCoordinates,57,0.99,0.08
SetTextureCoordinates,58,0.96,0.08
SetTextureCoordinates,59,0.71,0.08
SetTextureCoordinates,60,0.5,0.08
SetTextureCoordinates,61,0.29,0.08
SetTextureCoordinates,62,0.04,0.08
SetTextureCoordinates,63,0.01,0.08
SetTextureCoordinates,64,0,0.08
SetTextureCoordinates,65,0,0.08
SetTextureCoordinates,66,0.96,0.07
SetTextureCoordinates,67,0.71,0.07
SetTextureCoordinates,68,0.5,0.07
SetTextureCoordinates,69,0.29,0.07
SetTextureCoordinates,70,0.04,0.07
SetTextureCoordinates,71,0.96,0.05
SetTextureCoordinates,72,0.71,0.05
SetTextureCoordinates,73,0.5,0.05
SetTextureCoordinates,74,0.29,0.05
SetTextureCoordinates,75,0.04,0.05
SetTextureCoordinates,76,1,0.02
SetTextureCoordinates,77,1,0.02
SetTextureCoordinates,78,1,0.02
SetTextureCoordinates,79,1,0.02
SetTextureCoordinates,80,0,0.02
SetTextureCoordinates,81,0,0.02
SetTextureCoordinates,82,0,0.02
SetTextureCoordinates,83,0,0.02


CreateMeshBuilder,,;//後面,
AddVertex,-1.395,0.95,-19.5
AddVertex,-1.38,3.35,-19.5
AddVertex,-1.34,3.43,-19.5
AddVertex,-1.25,3.51,-19.5
AddVertex,-0.6,3.61,-19.5
AddVertex,0,3.65,-19.5
AddVertex,0.6,3.61,-19.5
AddVertex,1.25,3.51,-19.5
AddVertex,1.34,3.43,-19.5
AddVertex,1.38,3.35,-19.5
AddVertex,1.395,0.95,-19.5
AddFace,10,0,1,9,,,,,
AddFace,9,1,2,3,4,5,6,7,8
GenerateNormals,,,,,,,,,

LoadTexture,back.bmp,,,,,,,,
SetTextureCoordinates,0,0,0.995,,,,,,
SetTextureCoordinates,1,0.005,0.15,,,,,,
SetTextureCoordinates,2,0.1,0.03,,,,,,
SetTextureCoordinates,3,0.15,0.02,,,,,,
SetTextureCoordinates,4,0.3,0.01,,,,,,
SetTextureCoordinates,5,0.5,0.01,,,,,,
SetTextureCoordinates,6,0.7,0.01,,,,,,
SetTextureCoordinates,7,0.85,0.02,,,,,,
SetTextureCoordinates,8,0.9,0.03,,,,,,
SetTextureCoordinates,9,0.995,0.15,,,,,,
SetTextureCoordinates,10,1,0.995,,,,,,


CreateMeshBuilder,,;//左側面,,
AddVertex,1.395,0.95,-0.5,
AddVertex,1.38,3.35,-0.5,
AddVertex,1.395,0.95,-19.5,
AddVertex,1.38,3.35,-19.5,
AddFace,0,2,3,1
GenerateNormals,,,,

LoadTexture,side1-2.bmp,,,
SetTextureCoordinates,0,0.026,0.997,
SetTextureCoordinates,1,0.026,0.003,
SetTextureCoordinates,2,1,0.997,
SetTextureCoordinates,3,1,0.003,


CreateMeshBuilder,,;//左側面転落防止幌,,
AddVertex,1.37,1.28,-19.5,
AddVertex,1.37,2.4,-19.5,
AddVertex,1.37,2.4,-19.72,
AddVertex,1.37,1.28,-19.72,
AddFace2,0,1,2,3
SetColor,130,130,130,
GenerateNormals,,,,


CreateMeshBuilder,,;//右側面,,
AddVertex,-1.395,0.95,-0.5,
AddVertex,-1.38,3.35,-0.5,
AddVertex,-1.395,0.95,-19.5,
AddVertex,-1.38,3.35,-19.5,
AddFace,0,1,3,2
GenerateNormals,,,,

LoadTexture,side1.bmp,,,
SetTextureCoordinates,0,0.026,0.997,
SetTextureCoordinates,1,0.026,0.003,
SetTextureCoordinates,2,1,0.997,
SetTextureCoordinates,3,1,0.003,


CreateMeshBuilder,,;//右側面転落防止幌,,
AddVertex,-1.37,1.28,-19.5,
AddVertex,-1.37,2.4,-19.5,
AddVertex,-1.37,2.4,-19.72,
AddVertex,-1.37,1.28,-19.72,
AddFace2,0,1,2,3
SetColor,130,130,130
GenerateNormals,,,


CreateMeshBuilder,,;//底面,
AddVertex,-1.395,0.95,-19.5
AddVertex,-1.395,0.95,-0.24
AddVertex,1.395,0.95,-0.24
AddVertex,1.395,0.95,-19.5
AddVertex,-1.35,0.95,-0.09
AddVertex,-1.285,0.95,-0.04
AddVertex,-0.6,0.95,-0.01
AddVertex,0,0.95,0.01
AddVertex,0.6,0.95,-0.01
AddVertex,1.285,0.95,-0.04
AddVertex,1.35,0.95,-0.09
AddFace,0,3,2,1,,,,,
AddFace,1,2,10,9,8,7,6,5,4
SetColor,0,0,0,,,,,,
GenerateNormals,,,,,,,,,


;------屋根------,,,,,,,,,
CreateMeshBuilder,,;//屋根,,,,,,,
AddVertex,1.34,3.43,-0.5,,,,,,
AddVertex,1.25,3.51,-0.5,,,,,,
AddVertex,0.6,3.61,-0.5,,,,,,
AddVertex,0,3.65,-0.5,,,,,,
AddVertex,-0.6,3.61,-0.5,,,,,,
AddVertex,-1.25,3.51,-0.5,,,,,,
AddVertex,-1.34,3.43,-0.5,,,,,,
AddVertex,1.32,3.48,-0.5,,,,,,
AddVertex,1.275,3.54,-0.5,
AddVertex,0.6,3.64,-0.5,
AddVertex,0,3.67,-0.5,
AddVertex,-0.6,3.64,-0.5,
AddVertex,-1.275,3.54,-0.5,
AddVertex,-1.32,3.48,-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,100,100,100,
GenerateNormals,,,,


CreateMeshBuilder,,;//屋根,
AddVertex,1.38,3.35,-0.5
AddVertex,1.34,3.43,-0.5
AddVertex,1.25,3.51,-0.5
AddVertex,0.6,3.61,-0.5
AddVertex,0,3.65,-0.5
AddVertex,-0.6,3.61,-0.5
AddVertex,-1.25,3.51,-0.5
AddVertex,-1.34,3.43,-0.5
AddVertex,-1.38,3.35,-0.5
AddVertex,1.38,3.35,-19.5
AddVertex,1.34,3.43,-19.5
AddVertex,1.25,3.51,-19.5
AddVertex,0.6,3.61,-19.5
AddVertex,0,3.65,-19.5
AddVertex,-0.6,3.61,-19.5
AddVertex,-1.25,3.51,-19.5,
AddVertex,-1.34,3.43,-19.5,
AddVertex,-1.38,3.35,-19.5,
AddFace,0,9,10,1
AddFace,1,10,11,2
AddFace,2,11,12,3
AddFace,3,12,13,4
AddFace,4,13,14,5
AddFace,5,14,15,6
AddFace,6,15,16,7
AddFace,7,16,17,8
GenerateNormals,,,,

LoadTexture,yane1.bmp,,,
SetTextureCoordinates,0,-0.07,0.026,
SetTextureCoordinates,1,-0.07,0.026,
SetTextureCoordinates,2,0,0.026
SetTextureCoordinates,3,0.25,0.026
SetTextureCoordinates,4,0.5,0.026
SetTextureCoordinates,5,0.75,0.026
SetTextureCoordinates,6,1,0.026
SetTextureCoordinates,7,1.05,0.026
SetTextureCoordinates,8,1.05,0.026
SetTextureCoordinates,9,-0.07,1
SetTextureCoordinates,10,-0.07,1
SetTextureCoordinates,11,0,1
SetTextureCoordinates,12,0.25,1
SetTextureCoordinates,13,0.5,1
SetTextureCoordinates,14,0.75,1
SetTextureCoordinates,15,1,1
SetTextureCoordinates,16,1.05,1
SetTextureCoordinates,17,1.05,1


CreateMeshBuilder,,;//屋根,,
AddVertex,0.99,3.55,-0.97,
AddVertex,0.99,3.55,-19.43,
AddVertex,1.245,3.55,-1,
AddVertex,1.245,3.55,-19.4,
AddVertex,1.29,3.43,-1,
AddVertex,1.29,3.43,-19.4,
AddFace,2,3,1,0
AddFace,4,5,3,2
AddFace,0,4,2,
AddFace,1,3,5,
SetColor,140,140,140,
GenerateNormals,,,,


CreateMeshBuilder,,;//屋根,,
AddVertex,-0.99,3.55,-0.97,
AddVertex,-0.99,3.55,-19.43,
AddVertex,-1.245,3.55,-1,
AddVertex,-1.245,3.55,-19.4,
AddVertex,-1.29,3.43,-1,
AddVertex,-1.29,3.43,-19.4,
AddFace,2,0,1,3
AddFace,4,2,3,5
AddFace,0,2,4,
AddFace,1,5,3,
SetColor,140,140,140,
GenerateNormals,,,,


CreateMeshBuilder,,;//ランボード,
Cube,0.03,0.05,2.55
SetColor,140,140,140
Translate,1.25,3.5,-10.4
GenerateNormals,,,


CreateMeshBuilder,,;//ランボード,
Cube,0.03,0.05,2.55
SetColor,140,140,140
Translate,-1.25,3.5,-10.4
GenerateNormals,,,


;------屋根上機器------,,,
CreateMeshBuilder,,;//クーラー,
AddVertex,1.1,3.55,-8.4,
AddVertex,1.1,3.7,-8.4,
AddVertex,1.1,3.7,-12.55,
AddVertex,1.1,3.55,-12.55,
AddVertex,0.6,3.92,-8.4,
AddVertex,0.6,3.92,-12.55,
AddVertex,0,4,-12.55,
AddVertex,0,4,-8.4,
AddVertex,-0.6,3.92,-8.4,
AddVertex,-0.6,3.92,-12.55,
AddVertex,-1.1,3.55,-8.4,
AddVertex,-1.1,3.7,-8.4,
AddVertex,-1.1,3.7,-12.55,
AddVertex,-1.1,3.55,-12.55,
AddFace,0,3,2,1
AddFace,1,2,5,4
AddFace,4,5,6,7
AddFace,7,6,9,8
AddFace,8,9,12,11
AddFace,11,12,13,10
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.1,3.55,-12.55
AddVertex,-1.1,3.7,-12.55
AddVertex,-0.6,3.92,-12.55
AddVertex,-0.6,3.6,-12.55
AddVertex,0,4,-12.55
AddVertex,0,3.65,-12.55
AddVertex,0.6,3.92,-12.55
AddVertex,0.6,3.6,-12.55,
AddVertex,1.1,3.7,-12.55,
AddVertex,1.1,3.55,-12.55,
AddVertex,-1.1,3.55,-8.4,
AddVertex,-1.1,3.7,-8.4,
AddVertex,-0.6,3.92,-8.4,
AddVertex,-0.6,3.6,-8.4,
AddVertex,0,4,-8.4,
AddVertex,0,3.65,-8.4,
AddVertex,0.6,3.92,-8.4,
AddVertex,0.6,3.6,-8.4,
AddVertex,1.1,3.7,-8.4,
AddVertex,1.1,3.55,-8.4,
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,,;//アンテナ,
AddVertex          ,-0.02,3.75,-1.83
AddVertex          ,-0.02,4.08,-1.89,
AddVertex          ,0.02,4.08,-1.89,
AddVertex          ,0.02,3.75,-1.83,
AddVertex          ,-0.02,4.08,-2.17,
AddVertex          ,0.02,4.08,-2.17,
AddVertex          ,-0.02,4.05,-2.17,
AddVertex          ,0.02,4.05,-2.17,
AddVertex          ,-0.02,3.75,-1.96,
AddVertex          ,-0.02,4.03,-1.96,
AddVertex          ,0.02,3.75,-1.96,
AddVertex          ,0.02,4.03,-1.96,
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,113,169,182,
Translate,0,-0.1,1.05,
GenerateNormals,,,,


CreateMeshBuilder,,;//アンテナ,,
Cylinder,10,0.08,0.1,0.22
Translate,0,3.65,-0.86,
SetColor,180,180,180,


CreateMeshBuilder,,;//屋根上機器,,
Cylinder,6,0.045,0.045,0.4
Translate  ,-0.63,3.64,-1.25,
SetColor,150,150,150,


CreateMeshBuilder,,;//屋根上機器,,
Cylinder,6,0.02,0.05,0.03
Translate  ,-0.63,3.85,-1.25,
SetColor,30,30,30,


CreateMeshBuilder,,;//屋根上機器,,
Cylinder,6,0.08,0.085,0.05
Translate  ,-0.63,3.77,-1.25,
SetColor,170,170,170,


CreateMeshBuilder,,;//アンテナ台,,
Cube,0.2,0.01,0.15,
SetColor,150,150,150,
Translate ,0.25,3.65,-2.95,
GenerateNormals,,,,


CreateMeshBuilder,,;//アンテナ台,,
Cylinder,8,0.1,0.1,0.05
Translate  ,0.25,3.655,-2.95,
SetColor,160,160,160,


CreateMeshBuilder,,;//アンテナ台,,
Cube,0.2,0.01,0.15,
SetColor,150,150,150,
Translate ,0.25,3.65,-5.8,
GenerateNormals,,,,


CreateMeshBuilder,,;//アンテナ台,,
Cylinder,8,0.1,0.1,0.05
Translate  ,0.25,3.655,-5.8,
SetColor,160,160,160,


CreateMeshBuilder,,;//屋根上機器,,
Cube,0.25,0.06,0.02,
SetColor,120,120,120,
Translate ,0,3.67,-17.48,
GenerateNormals,,,,


CreateMeshBuilder,,;//屋根上機器,
Cube,0.25,0.06,0.02
SetColor,120,120,120
Translate ,0,3.67,-17.67
GenerateNormals,,,


CreateMeshBuilder,,;//屋根上機器,
Cube,0.25,0.04,0.15
SetColor,165,165,165
Translate ,0,3.77,-17.575
GenerateNormals,,,


CreateMeshBuilder,,;//屋根上機器,
Cube,0.27,0.01,0.175
SetColor,150,150,150
Translate ,0,3.78,-17.575
GenerateNormals,,,


CreateMeshBuilder,,;//屋根上機器,
AddVertex ,-0.25,3.81,-17.425
AddVertex ,-0.25,3.81,-17.725
AddVertex ,0.25,3.81,-17.425
AddVertex ,0.25,3.81,-17.725
AddVertex ,-0.2,3.84,-17.475
AddVertex ,-0.2,3.84,-17.675
AddVertex ,0.2,3.84,-17.475
AddVertex ,0.2,3.84,-17.675
AddFace,0,2,6,4
AddFace,2,3,7,6
AddFace,1,0,4,5
AddFace,3,1,5,7
AddFace,4,6,7,5
SetColor,150,150,150,
GenerateNormals,,,,


;------スカート------,,,,
CreateMeshBuilder,,;//スカート,,
AddVertex,-1.08,0.2,-0.39,
AddVertex,-1.13,0.26,-0.4,
AddVertex,-1.37,0.95,-0.5,
AddVertex,-1.08,0.2,-0.19,
AddVertex,-1.13,0.26,-0.19,
AddVertex,-1.37,0.95,-0.19
AddVertex,-1.02,0.2,-0.09
AddVertex,-1.05,0.26,-0.08
AddVertex,-1.29,0.95,-0.06
AddVertex,-0.5,0.2,-0.04
AddVertex,-0.5,0.26,-0.03
AddVertex,-0.5,0.95,-0.01
AddVertex,0.5,0.2,-0.04
AddVertex,0.5,0.26,-0.03
AddVertex,0.5,0.95,-0.01
AddVertex,1.02,0.2,-0.09
AddVertex,1.05,0.26,-0.08
AddVertex,1.29,0.95,-0.06
AddVertex,1.08,0.2,-0.19
AddVertex,1.13,0.26,-0.19
AddVertex,1.37,0.95,-0.19
AddVertex,1.08,0.2,-0.39,
AddVertex,1.13,0.26,-0.4,
AddVertex,1.37,0.95,-0.5,
AddFace,0,3,4,1
AddFace,1,4,5,2
AddFace,3,6,7,4
AddFace,4,7,8,5
AddFace,6,9,10,7
AddFace,7,10,11,8
AddFace,9,12,13,10
AddFace,10,13,14,11
AddFace,12,15,16,13
AddFace,13,16,17,14
AddFace,15,18,19,16
AddFace,16,19,20,17
AddFace,18,21,22,19
AddFace,19,22,23,20
GenerateNormals,,,,

LoadTexture,skart.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0.9,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0.03,1,
SetTextureCoordinates,4,0.03,0.9,
SetTextureCoordinates,5,0.03,0,
SetTextureCoordinates,6,0.11,1,
SetTextureCoordinates,7,0.1,0.9,
SetTextureCoordinates,8,0.035,0,
SetTextureCoordinates,9,0.275,1,
SetTextureCoordinates,10,0.275,0.9,
SetTextureCoordinates,11,0.275,0,
SetTextureCoordinates,12,0.725,1
SetTextureCoordinates,13,0.725,0.9
SetTextureCoordinates,14,0.725,0
SetTextureCoordinates,15,0.89,1
SetTextureCoordinates,16,0.9,0.9
SetTextureCoordinates,17,0.965,0
SetTextureCoordinates,18,0.97,1
SetTextureCoordinates,19,0.97,0.9
SetTextureCoordinates,20,0.97,0
SetTextureCoordinates,21,1,1
SetTextureCoordinates,22,1,0.9
SetTextureCoordinates,23,1,0
SetDecalTransparentColor,0,0,0


CreateMeshBuilder,,;//スカート,
AddVertex,-1.08,0.2,-0.39
AddVertex,-1.13,0.26,-0.4
AddVertex,-1.37,0.95,-0.5
AddVertex,-1.08,0.2,-0.19
AddVertex,-1.13,0.26,-0.19
AddVertex,-1.37,0.95,-0.19
AddVertex,-1.02,0.2,-0.09
AddVertex,-1.05,0.26,-0.08
AddVertex,-1.29,0.95,-0.06
AddVertex,-0.5,0.2,-0.04
AddVertex,-0.5,0.26,-0.03
AddVertex,-0.5,0.95,-0.01
AddVertex,0.5,0.2,-0.04
AddVertex,0.5,0.26,-0.03
AddVertex,0.5,0.95,-0.01
AddVertex,1.02,0.2,-0.09
AddVertex,1.05,0.26,-0.08,
AddVertex,1.29,0.95,-0.06,
AddVertex,1.08,0.2,-0.19,
AddVertex,1.13,0.26,-0.19,
AddVertex,1.37,0.95,-0.19,
AddVertex,1.08,0.2,-0.39,
AddVertex,1.13,0.26,-0.4,
AddVertex,1.37,0.95,-0.5,
AddFace,0,1,4,3
AddFace,1,2,5,4
AddFace,3,4,7,6
AddFace,4,5,8,7
AddFace,6,7,10,9
AddFace,7,8,11,10
AddFace,9,10,13,12
AddFace,10,11,14,13
AddFace,12,13,16,15
AddFace,13,14,17,16
AddFace,15,16,19,18
AddFace,16,17,20,19
AddFace,18,19,22,21
AddFace,19,20,23,22
SetColor,45,45,45,
GenerateNormals,,,,

LoadTexture,skart.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0.9,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0.03,1,
SetTextureCoordinates,4,0.03,0.9,
SetTextureCoordinates,5,0.03,0,
SetTextureCoordinates,6,0.11,1
SetTextureCoordinates,7,0.1,0.9
SetTextureCoordinates,8,0.035,0
SetTextureCoordinates,9,0.275,1
SetTextureCoordinates,10,0.275,0.9
SetTextureCoordinates,11,0.275,0
SetTextureCoordinates,12,0.725,1
SetTextureCoordinates,13,0.725,0.9
SetTextureCoordinates,14,0.725,0
SetTextureCoordinates,15,0.89,1
SetTextureCoordinates,16,0.9,0.9
SetTextureCoordinates,17,0.965,0
SetTextureCoordinates,18,0.97,1
SetTextureCoordinates,19,0.97,0.9
SetTextureCoordinates,20,0.97,0
SetTextureCoordinates,21,1,1
SetTextureCoordinates,22,1,0.9
SetTextureCoordinates,23,1,0
SetDecalTransparentColor,0,0,0


;------連結器------,,,
CreateMeshBuilder,,;//連結器取付け部,
AddVertex,-0.59,0.97,-0.07
AddVertex,0.59,0.97,-0.07
AddVertex,0.59,0.62,-0.07
AddVertex,-0.59,0.62,-0.07
AddVertex,0.55,0.62,-0.07
AddVertex,0.55,0.97,-0.07
AddVertex,0.55,0.97,-0.15
AddVertex,0.55,0.62,-0.15
AddVertex,-0.55,0.62,-0.15
AddVertex,-0.55,0.97,-0.15,
AddVertex,-0.55,0.97,-0.15,
AddVertex,-0.55,0.62,-0.15,
AddFace,0,3,2,1
AddFace,4,7,6,5
AddFace,8,9,10,11
GenerateNormals,,,,

LoadTexture,front-under.bmp,,,
SetTextureCoordinates,0,0,0.005,
SetTextureCoordinates,1,1,0.005,
SetTextureCoordinates,2,1,0.995,
SetTextureCoordinates,3,0,0.995,
SetTextureCoordinates,4,0.955,0.995,
SetTextureCoordinates,5,0.955,0.005,
SetTextureCoordinates,6,0.955,0.005,
SetTextureCoordinates,7,0.955,0.995,
SetTextureCoordinates,8,0.955,0.995,
SetTextureCoordinates,9,0.955,0.005,
SetTextureCoordinates,10,0.955,0.005,
SetTextureCoordinates,11,0.955,0.995,
SetDecalTransparentColor,0,0,0,


CreateMeshBuilder,,;//連結器正面,,
AddVertex,-0.19,1.05,0.25,
AddVertex,0.19,1.05,0.25,
AddVertex,0.19,0.71,0.25,
AddVertex,-0.19,0.71,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,0


CreateMeshBuilder,,;//連結器正面,
AddVertex,0.13,0.965,0.25
AddVertex,0.01,0.965,0.25
AddVertex,0.06,0.88,0.38
AddVertex,0.01,0.795,0.25
AddVertex,0.13,0.795,0.25
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,0.25
AddVertex,0.15,1,0.25
AddVertex,0.15,0.75,0.25
AddVertex,-0.15,0.75,0.25,
AddVertex,-0.08,0.96,0.15,
AddVertex,0.08,0.96,0.15,
AddVertex,0.08,0.8,0.15,
AddVertex,-0.08,0.8,0.15,
AddFace,2,6,5,1
AddFace,3,0,4,7
AddFace,1,5,4,0
AddFace,2,3,7,6
SetColor,85,80,80,
GenerateNormals,,,,


CreateMeshBuilder,,;//連結器,,
Cube,0.08,0.08,0.15,
SetColor,85,80,80,
Translate,0,0.88,0,
GenerateNormals,,,,


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


CreateMeshBuilder,,;//車輪左前,,
AddVertex,0.6,0,-18.13,
AddVertex,0.6,0.86,-18.13,
AddVertex,0.6,0.86,-17.27,
AddVertex,0.6,0,-17.27,
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,30,30,30,
Rotate,0,0,1,90
Translate,0.56,0.43,-15.6,


CreateMeshBuilder,,;//車輪左後,,
AddVertex,0.6,0,-16.03,
AddVertex,0.6,0.86,-16.03,
AddVertex,0.6,0.86,-15.17,
AddVertex,0.6,0,-15.17,
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,30,30,30,
Rotate,0,0,1,90
Translate,-0.56,0.43,-17.7,


CreateMeshBuilder,,;//車輪右前,,
AddVertex,-0.6,0,-18.13,
AddVertex,-0.6,0.86,-18.13,
AddVertex,-0.6,0.86,-17.27,
AddVertex,-0.6,0,-17.27,
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,30,30,30,
Rotate,0,0,1,90
Translate,-0.56,0.43,-15.6,


CreateMeshBuilder,,;//車輪右後,,
AddVertex,-0.6,0,-16.03,
AddVertex,-0.6,0.86,-16.03,
AddVertex,-0.6,0.86,-15.17,
AddVertex,-0.6,0,-15.17,
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,,;//車軸前,,
Cylinder,4,0.08,0.08,1.65
SetColor,30,30,30,
Rotate,0,0,1,90
Translate,0,0.43,-17.7,


CreateMeshBuilder,,;//車軸後,,
Cylinder,4,0.08,0.08,1.65
SetColor,30,30,30,
Rotate,0,0,1,90
Translate,0,0.43,-15.6,


CreateMeshBuilder,,;//台車左側,,
AddVertex,0.95,0.22,-18,
AddVertex,0.95,0.97,-18,
AddVertex,0.95,0.97,-15.3,
AddVertex,0.95,0.22,-15.3,
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.22,-18,
AddVertex,0.8,0.97,-18,
AddVertex,0.8,0.97,-15.3,
AddVertex,0.8,0.22,-15.3,
AddFace2,0,1,2,3
SetColor,60,60,60,
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.22,-18,
AddVertex,-0.95,0.97,-18,
AddVertex,-0.95,0.97,-15.3,
AddVertex,-0.95,0.22,-15.3,
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.22,-18,
AddVertex,-0.8,0.97,-18,
AddVertex,-0.8,0.97,-15.3,
AddVertex,-0.8,0.22,-15.3,
AddFace2,0,3,2,1
SetColor,60,60,60,
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.62,0.25,-17.35,
AddVertex,0.62,0.7,-17.35,
AddVertex,0.62,0.7,-15.95,
AddVertex,0.62,0.25,-15.95,
AddFace,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.57,0.25,-17.35,
AddVertex,0.57,0.7,-17.35,
AddVertex,0.57,0.7,-15.95,
AddVertex,0.57,0.25,-15.95,
AddFace2,0,1,2,3
SetColor,50,50,50,
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.25,-17.35,
AddVertex,-0.62,0.7,-17.35,
AddVertex,-0.62,0.7,-15.95,
AddVertex,-0.62,0.25,-15.95,
AddFace,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,,;//右ブレーキ,,
AddVertex,-0.57,0.25,-17.35,
AddVertex,-0.57,0.7,-17.35,
AddVertex,-0.57,0.7,-15.95,
AddVertex,-0.57,0.25,-15.95,
AddFace2,0,1,2,3
SetColor,50,50,50,
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,6,0.36,0.36,0.15
SetColor,35,35,35,
Translate,1,0.93,-16.65,


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


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


CreateMeshBuilder,,;//車輪左前,,
AddVertex,0.6,0,-4.33,
AddVertex,0.6,0.86,-4.33,
AddVertex,0.6,0.86,-3.47,
AddVertex,0.6,0,-3.47,
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,30,30,30,
Rotate,0,0,1,90
Translate,0.56,0.43,-1.8,


CreateMeshBuilder,,;//車輪左後,,
AddVertex,0.6,0,-2.23,
AddVertex,0.6,0.86,-2.23,
AddVertex,0.6,0.86,-1.37,
AddVertex,0.6,0,-1.37,
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,30,30,30,
Rotate,0,0,1,90
Translate,-0.56,0.43,-3.9,


CreateMeshBuilder,,;//車輪右前,,
AddVertex,-0.6,0,-4.33,
AddVertex,-0.6,0.86,-4.33,
AddVertex,-0.6,0.86,-3.47,
AddVertex,-0.6,0,-3.47,
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,30,30,30,
Rotate,0,0,1,90
Translate,-0.56,0.43,-1.8,


CreateMeshBuilder,,;//車輪右後,,
AddVertex,-0.6,0,-2.23,
AddVertex,-0.6,0.86,-2.23,
AddVertex,-0.6,0.86,-1.37,
AddVertex,-0.6,0,-1.37,
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,,;//車軸前,,
Cylinder,4,0.08,0.08,1.65
SetColor,30,30,30,
Rotate,0,0,1,90
Translate,0,0.43,-3.9,


CreateMeshBuilder,,;//車軸後,,
Cylinder,4,0.08,0.08,1.65
SetColor,30,30,30,
Rotate,0,0,1,90
Translate,0,0.43,-1.8,


CreateMeshBuilder,,;//台車左側,,
AddVertex,0.95,0.22,-4.2,
AddVertex,0.95,0.97,-4.2,
AddVertex,0.95,0.97,-1.5,
AddVertex,0.95,0.22,-1.5,
AddFace,0,1,2,3
GenerateNormals,,,,

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


CreateMeshBuilder,,;//台車左側,,
AddVertex,0.8,0.22,-4.2,
AddVertex,0.8,0.97,-4.2,
AddVertex,0.8,0.97,-1.5,
AddVertex,0.8,0.22,-1.5,
AddFace2,0,1,2,3
SetColor,60,60,60
GenerateNormals,,,

LoadTexture,daisha1.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.22,-4.2
AddVertex,-0.95,0.97,-4.2
AddVertex,-0.95,0.97,-1.5
AddVertex,-0.95,0.22,-1.5
AddFace,0,3,2,1
GenerateNormals,,,,

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


CreateMeshBuilder,,;//台車右側,,
AddVertex,-0.8,0.22,-4.2,
AddVertex,-0.8,0.97,-4.2,
AddVertex,-0.8,0.97,-1.5,
AddVertex,-0.8,0.22,-1.5,
AddFace2,0,3,2,1
SetColor,60,60,60,
GenerateNormals,,,,

LoadTexture,daisha1.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.25,-17.35,
AddVertex,0.62,0.7,-17.35,
AddVertex,0.62,0.7,-15.95,
AddVertex,0.62,0.25,-15.95,
AddFace,0,1,2,3
Translate,0,0,13.8,
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.57,0.25,-17.35,
AddVertex,0.57,0.7,-17.35,
AddVertex,0.57,0.7,-15.95,
AddVertex,0.57,0.25,-15.95,
AddFace2,0,1,2,3
SetColor,50,50,50,
Translate,0,0,13.8,
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.25,-17.35,
AddVertex,-0.62,0.7,-17.35,
AddVertex,-0.62,0.7,-15.95,
AddVertex,-0.62,0.25,-15.95,
AddFace,0,3,2,1
Translate,0,0,13.8,
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.57,0.25,-17.35,
AddVertex,-0.57,0.7,-17.35,
AddVertex,-0.57,0.7,-15.95,
AddVertex,-0.57,0.25,-15.95,
AddFace2,0,1,2,3
SetColor,50,50,50,
Translate,0,0,13.8,
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,6,0.36,0.36,0.15
SetColor,35,35,35,
Translate,1,0.93,-2.85,


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


;------床下機器------,,,,
CreateMeshBuilder,,;//ステップ,,
AddVertex     ,-1.32,0.49,-0.69,
AddVertex     ,-1.32,0.95,-0.69,
AddVertex     ,-1.32,0.95,-0.95,
AddVertex     ,-1.32,0.49,-0.95,
AddVertex     ,1.32,0.49,-0.69,
AddVertex     ,1.32,0.95,-0.69,
AddVertex     ,1.32,0.95,-0.95,
AddVertex     ,1.32,0.49,-0.95,
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.97
AddVertex,1.1,0.95,-14.97
AddVertex,1.1,0.95,-4.75
AddVertex,1.1,0.25,-4.75
AddVertex,-1.1,0.25,-14.97
AddVertex,-1.1,0.95,-14.97
AddVertex,-1.1,0.95,-4.75
AddVertex,-1.1,0.25,-4.75,
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.998,0.99,
SetTextureCoordinates,1,0.998,0.03,
SetTextureCoordinates,2,0.005,0.03,
SetTextureCoordinates,3,0.005,0.99,
SetTextureCoordinates,4,0.998,0.99,
SetTextureCoordinates,5,0.998,0.03,
SetTextureCoordinates,6,0.005,0.03,
SetTextureCoordinates,7,0.005,0.99,


CreateMeshBuilder,,;//床下機器,
Cube,0.75,0.13,0.55
SetColor,25,25,23
Translate,0,0.825,-0.7
GenerateNormals,,,


CreateMeshBuilder,,;//床下機器,
Cube,0.75,0.13,0.6
SetColor,25,25,23
Translate,0,0.825,-18.9
GenerateNormals,,,


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


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

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