;S-Bahnzug Baureihe 420
;erstellt von Martin Finken
;BVE-Train.de

CreateMeshBuilder,
AddVertex,-1.4, 3.3, 1.02
AddVertex,-1.25, 3.3, 0.7
AddVertex,-0.65, 3.3, 0.55
AddVertex,-0.2, 3.3, 0.45
AddVertex,0.2, 3.3, 0.45
AddVertex,0.65, 3.3, 0.55
AddVertex,1.25, 3.3, 0.7
AddVertex,1.4, 3.3, 1.02

AddVertex,-1.4, 1.73, 1.02
AddVertex,-1.25, 1.73, 0.55
AddVertex,-0.65, 1.73, 0.25
AddVertex,-0.2, 1.73, 0.15
AddVertex,0.2, 1.73, 0.15
AddVertex,0.65, 1.73, 0.25
AddVertex,1.25, 1.73, 0.55
AddVertex,1.4, 1.73, 1.02

AddVertex,-1.4, 0.0, 1.02
AddVertex,-1.25, 0.0, 0.65
AddVertex,-0.65, 0.0, 0.45
AddVertex,-0.2, 0.0, 0.35
AddVertex,0.2, 0.0, 0.35
AddVertex,0.65, 0.0, 0.45
AddVertex,1.25, 0.0, 0.65
AddVertex,1.4, 0.0, 1.02

AddFace, 0,1,9,8
AddFace, 1,2,10,9
AddFace, 2,3,11,10
AddFace, 3,4,12,11
AddFace, 4,5,13,12
AddFace, 5,6,14,13
AddFace, 6,7,15,14
AddFace, 8,9,17,16
AddFace, 9,10,18,17
AddFace, 10,11,19,18
AddFace, 11,12,20,19
AddFace, 12,13,21,20
AddFace, 13,14,22,21
AddFace, 14,15,23,22

GenerateNormals,
LoadTexture, Front1.bmp
SetTextureCoordinates, 0, 0.0, 0.002
SetTextureCoordinates, 1, 0.04, 0.002
SetTextureCoordinates, 2, 0.3, 0.002
SetTextureCoordinates, 3, 0.42, 0.002
SetTextureCoordinates, 4, 0.58, 0.002
SetTextureCoordinates, 5, 0.7, 0.002
SetTextureCoordinates, 6, 0.96, 0.002
SetTextureCoordinates, 7, 1, 0.002
SetTextureCoordinates, 8, 0.0, 0.474
SetTextureCoordinates, 9, 0.04, 0.474
SetTextureCoordinates, 10, 0.3, 0.474
SetTextureCoordinates, 11, 0.42, 0.474
SetTextureCoordinates, 12, 0.58, 0.474
SetTextureCoordinates, 13, 0.7, 0.474
SetTextureCoordinates, 14, 0.96, 0.474
SetTextureCoordinates, 15, 1, 0.474
SetTextureCoordinates, 16, 0.0, 1
SetTextureCoordinates, 17, 0.04, 1
SetTextureCoordinates, 18, 0.3, 1
SetTextureCoordinates, 19, 0.42, 1
SetTextureCoordinates, 20, 0.58, 1
SetTextureCoordinates, 21, 0.7, 1
SetTextureCoordinates, 22, 0.96, 1
SetTextureCoordinates, 23, 1, 1
SetDecalTransparentColor, 0,0,255

CreateMeshBuilder,
AddVertex,1.40,3.30, 1
AddVertex,1.40,3.30,22.75
AddVertex,1.40,0.9, 1
AddVertex,1.40,0.9,22.75
AddVertex,0.9,0.1, 
AddVertex,0.9,0.1,22.75
AddFace,0,1,3,2,
Addface,2,3,5,4,
GenerateNormals,
LoadTexture, Seite1.bmp
SetTextureCoordinates, 0,0.999,0.02
SetTextureCoordinates, 1,0.001,0.02
SetTextureCoordinates, 2,0.999,0.735
SetTextureCoordinates, 3,0.001,0.735
SetTextureCoordinates, 4,0.999,1
SetTextureCoordinates, 5,0.001,1
SetDecalTransparentColor, 0,0,255


CreateMeshBuilder,
AddVertex,-1.40,3.30, 1
AddVertex,-1.40,3.30,22.75
AddVertex,-1.40,0.9, 1
AddVertex,-1.40,0.9,22.75
AddVertex,-0.9,0.1, 
AddVertex,-0.9,0.1,22.75
AddFace,2,3,1,0,
Addface,4,5,3,2,
GenerateNormals,
LoadTexture, Seite.bmp
SetTextureCoordinates, 0,0.999,0.02
SetTextureCoordinates, 1,0.001,0.02
SetTextureCoordinates, 2,0.999,0.735
SetTextureCoordinates, 3,0.001,0.735
SetTextureCoordinates, 4,0.999,1
SetTextureCoordinates, 5,0.001,1
SetDecalTransparentColor, 0,0,255
CreateMeshBuilder,
AddVertex,-0.718,2.,0.5
AddVertex,-0.718,2.,22.75
AddVertex,-0.718,0,0.5
AddVertex,-0.718,0,22.75
AddFace,0,1,3,2
AddFace,2,3,1,0
GenerateNormals,
LoadTexture, BNFG.bmp
SetTextureCoordinates, 0,0,0
SetTextureCoordinates, 1,1,0
SetTextureCoordinates, 2,0,1
SetTextureCoordinates, 3,1,1
SetDecalTransparentColor, 0,0,255
CreateMeshBuilder,
AddVertex,0.718,2.,0.5
AddVertex,0.718,2.,22.75
AddVertex,0.718,0,0.5
AddVertex,0.718,0,22.75
AddFace,0,1,3,2
AddFace,2,3,1,0
GenerateNormals,
LoadTexture, BNFG.bmp
SetTextureCoordinates, 0,0,0
SetTextureCoordinates, 1,1,0
SetTextureCoordinates, 2,0,1
SetTextureCoordinates, 3,1,1
SetDecalTransparentColor, 0,0,255

CreateMeshBuilder,
AddVertex,1.4,3.3,22.75
AddVertex,-1.4,3.3,22.75
AddVertex,1.4,0.0,22.75
AddVertex,-1.4,0.0,22.75
AddFace,0,1,3,2
GenerateNormals,
LoadTexture, Rueck.bmp
SetTextureCoordinates, 0,0,0.02
SetTextureCoordinates, 1,1,0.02
SetTextureCoordinates, 2,0,1
SetTextureCoordinates, 3,1,1
SetDecalTransparentColor, 0,0,255




CreateMeshBuilder,
AddVertex,-0.225, 3.5, 0.44
AddVertex,0.225, 3.5, 0.44
AddVertex,0.225, 3.15, 0.4
AddVertex,-0.225, 3.15, 0.4
AddFace, 0,1,2,3
GenerateNormals,
LoadTexture, Lampe.bmp
SetTextureCoordinates, 0, 0, 0
SetTextureCoordinates, 1, 1, 0
SetTextureCoordinates, 2, 1, 1
SetTextureCoordinates, 3, 0, 1
SetDecalTransparentColor, 0,0,255
CreateMeshBuilder,


AddVertex,-1.4, 3.3, 1.02
AddVertex,-1.25, 3.35, 0.7
AddVertex,-0.65, 3.45, 0.7
AddVertex,-0.2, 3.5, 0.7
AddVertex,0.2, 3.5, 0.7
AddVertex,0.65, 3.45, 0.7
AddVertex,1.25, 3.35, 0.7
AddVertex,1.4, 3.3, 1.02


AddVertex,-1.4, 3.3, 22.75
AddVertex,-1.25, 3.35, 22.75
AddVertex,-0.65, 3.45, 22.75
AddVertex,-0.2, 3.5, 22.75
AddVertex,0.2, 3.5, 22.75
AddVertex,0.65, 3.45, 22.75
AddVertex,1.25, 3.35, 22.75
AddVertex,1.4, 3.3, 22.75





AddFace, 8,9,1,0
AddFace, 9,10,2,1
AddFace, 10,11,3,2
AddFace, 11,12,4,3
AddFace, 12,13,5,4
AddFace, 13,14,6,5
AddFace, 14,15,7,6
GenerateNormals,

Loadtexture, Dach.bmp
SetTextureCoordinates, 0, 0, 0
SetTextureCoordinates, 1, 0, 0.05
SetTextureCoordinates, 2, 0, 0.21
SetTextureCoordinates, 3, 0, 0.42
SetTextureCoordinates, 4, 0, 0.58
SetTextureCoordinates, 5, 0, 0.79
SetTextureCoordinates, 6, 0, 0.95
SetTextureCoordinates, 7, 0, 1

SetTextureCoordinates, 8, 1, 0
SetTextureCoordinates, 9, 1, 0.05
SetTextureCoordinates, 10, 1, 0.21
SetTextureCoordinates, 11, 1, 0.42
SetTextureCoordinates, 12, 1, 0.58
SetTextureCoordinates, 13, 1, 0.79
SetTextureCoordinates, 14, 1, 0.95
SetTextureCoordinates, 15, 1, 1


CreateMeshBuilder,


AddVertex,-1.4, 3.29, 1.02
AddVertex,-1.25, 3.29, 0.7
AddVertex,-0.65, 3.29, 0.55
AddVertex,-0.2, 3.29, 0.45
AddVertex,0.2, 3.29, 0.45
AddVertex,0.65, 3.29, 0.55
AddVertex,1.25, 3.29, 0.7
AddVertex,1.4, 3.3, 1.02

AddVertex,-1.4, 3.3, 1.0
AddVertex,-1.25, 3.35, 0.71
AddVertex,-0.65, 3.45, 0.7
AddVertex,-0.2, 3.5, 0.7
AddVertex,0.2, 3.5, 0.7
AddVertex,0.65, 3.45, 0.7
AddVertex,1.25, 3.35, 0.71
AddVertex,1.4, 3.3, 1.0



AddFace, 8,9,1,0
AddFace, 9,10,2,1
AddFace, 10,11,3,2
AddFace, 11,12,4,3
AddFace, 12,13,5,4
AddFace, 13,14,6,5,
AddFace, 14,7,6
GenerateNormals,


Loadtexture, Dach1.bmp
SetTextureCoordinates, 0, 0, 0
SetTextureCoordinates, 1, 0, 0.05
SetTextureCoordinates, 2, 0, 0.21
SetTextureCoordinates, 3, 0, 0.42
SetTextureCoordinates, 4, 0, 0.58
SetTextureCoordinates, 5, 0, 0.79
SetTextureCoordinates, 6, 0, 0.95
SetTextureCoordinates, 7, 0, 1

SetTextureCoordinates, 8, 1, 0
SetTextureCoordinates, 9, 1, 0.05
SetTextureCoordinates, 10, 1, 0.21
SetTextureCoordinates, 11, 1, 0.42
SetTextureCoordinates, 12, 1, 0.58
SetTextureCoordinates, 13, 1, 0.79
SetTextureCoordinates, 14, 1, 0.95
SetTextureCoordinates, 15, 1, 1

CreateMeshBuilder,


AddVertex,-1.4, 3.29, 22.75
AddVertex,-1.25, 3.29, 22.75
AddVertex,-0.65, 3.29, 22.75
AddVertex,-0.2, 3.29, 22.75
AddVertex,0.2, 3.29, 22.75
AddVertex,0.65, 3.29, 22.75
AddVertex,1.25, 3.29, 22.75
AddVertex,1.4, 3.29, 22.75

AddVertex,-1.4, 3.3, 22.75
AddVertex,-1.25, 3.35, 22.75
AddVertex,-0.65, 3.45, 22.75
AddVertex,-0.2, 3.5, 22.75
AddVertex,0.2, 3.5, 22.75
AddVertex,0.65, 3.45, 22.75
AddVertex,1.25, 3.35, 22.75
AddVertex,1.4, 3.3, 22.75



AddFace, 0,1,9,8,
AddFace, 1,2,10,9,
AddFace, 2,3,11,10,
AddFace, 3,4,12,11,
AddFace, 4,5,13,12,
AddFace, 5,6,14,13,
AddFace, 6,7,15,14,
GenerateNormals,


Loadtexture, Dach1.bmp
SetTextureCoordinates, 0, 0, 0
SetTextureCoordinates, 1, 0, 0.05
SetTextureCoordinates, 2, 0, 0.21
SetTextureCoordinates, 3, 0, 0.42
SetTextureCoordinates, 4, 0, 0.58
SetTextureCoordinates, 5, 0, 0.79
SetTextureCoordinates, 6, 0, 0.95
SetTextureCoordinates, 7, 0, 1

SetTextureCoordinates, 8, 1, 0
SetTextureCoordinates, 9, 1, 0.05
SetTextureCoordinates, 10, 1, 0.21
SetTextureCoordinates, 11, 1, 0.42
SetTextureCoordinates, 12, 1, 0.58
SetTextureCoordinates, 13, 1, 0.79
SetTextureCoordinates, 14, 1, 0.95
SetTextureCoordinates, 15, 1, 1


CreateMeshBuilder,
AddVertex,-0.718, 1, 0.61
AddVertex,0.718, 1, 0.61
AddVertex,0.718, 0.4, 0.61
AddVertex,-0.718, 0.4, 0.61
AddFace, 0,1,2,3
GenerateNormals,
setcolor,40,40,40,

CreateMeshBuilder,
AddVertex,-0.718, 1, 22.6
AddVertex,0.718, 1, 22.6
AddVertex,0.718, 0.4, 22.6
AddVertex,-0.718, 0.4, 22.6
AddFace, 3,2,1,0,
GenerateNormals,
setcolor,40,40,40,

CreateMeshBuilder,
AddVertex,-1.1, 0.42, 17.76
AddVertex,1.1, 0.42, 17.76
AddVertex,1.1, 0.42, 5.34
AddVertex,-1.1, 0.42, 5.34
AddFace2, 3,2,1,0,
GenerateNormals,
setcolor,40,40,40,