CreateMeshBuilder,
Addvertex,-0.800, 0, 25
Addvertex,-0.720, 0, 25
Addvertex,-0.724, 0, 20.000,
Addvertex,-0.644, 0, 20.000,
Addvertex,-0.496, 0, 15.000,
Addvertex,-0.416, 0, 15.000,
Addvertex,-0.117, 0, 10.000,
Addvertex,-0.037, 0, 10.000,
Addvertex,0.415, 0, 5.000,
Addvertex,0.495, 0, 5.000,
Addvertex,1.100, 0, 0.000,
Addvertex,1.180, 0, 0.000,
Addface,3,2,0,1,
Addface,5,4,2,3,
Addface,7,6,4,5,
Addface,9,8,6,7,
Addface,11,10,8,9,
GenerateNormals,
LoadTexture, Rail.png
SetTextureCoordinates,0, -0.02, 0,
SetTextureCoordinates,1, 1.02, 0,
SetTextureCoordinates,2, -0.02, 2,
SetTextureCoordinates,3, 1.02, 2,
SetTextureCoordinates,4, -0.02, 4,
SetTextureCoordinates,5, 1.02, 4,
SetTextureCoordinates,6, -0.02, 6,
SetTextureCoordinates,7, 1.02, 6,
SetTextureCoordinates,8, -0.02, 8,
SetTextureCoordinates,9, 1.02, 8,
SetTextureCoordinates,10, -0.02, 10,
SetTextureCoordinates,11, 1.02, 10

;Left track, left rail:
CreateMeshBuilder,
Addvertex,0.720, 0, 25.000,
Addvertex,0.800, 0, 25.000,
Addvertex,0.796, 0, 20.000,;0,076
Addvertex,0.876, 0, 20.000,
Addvertex,1.024, 0, 15.000,;0,228
Addvertex,1.104, 0, 15.000,
Addvertex,1.403, 0, 10.000,;0,379
Addvertex,1.483, 0, 10.000,
Addvertex,1.935, 0, 5.000,;0,532
Addvertex,2.015, 0, 5.000,
Addvertex,2.620, 0, 0.000,;0,685
Addvertex,2.700, 0, 0.000,
Addface,3,2,0,1,
Addface,5,4,2,3,
Addface,7,6,4,5,
Addface,9,8,6,7,
Addface,11,10,8,9,
GenerateNormals,
LoadTexture, Rail.png
SetTextureCoordinates,0, 1.02, 0,
SetTextureCoordinates,1, -0.02, 0,
SetTextureCoordinates,2, 1.02, 2,
SetTextureCoordinates,3, -0.02, 2,
SetTextureCoordinates,4, 1.02, 4,
SetTextureCoordinates,5, -0.02, 4,
SetTextureCoordinates,6, 1.02, 6,
SetTextureCoordinates,7, -0.02, 6,
SetTextureCoordinates,8, 1.02, 8,
SetTextureCoordinates,9, -0.02, 8,
SetTextureCoordinates,10, 1.02, 10,
SetTextureCoordinates,11, -0.02, 10,

;Left track, right 3D-rail:
CreateMeshBuilder,
Addvertex,-0.76, -0.01, 25,
Addvertex,-0.76,-0.17, 25,
Addvertex,-0.684, -0.01, 20.000,
Addvertex,-0.684,-0.17, 20.000,
Addvertex,-0.456, -0.01, 15.000,
Addvertex,-0.456,-0.17, 15.000,
Addvertex,-0.077, -0.01, 10.000,
Addvertex,-0.077,-0.17, 10.000,
Addvertex,0.45, -0.01, 5.000,
Addvertex,0.45,-0.17, 5.000,
Addvertex,1.140, -0.01, 0,
Addvertex,1.140,-0.17, 0,
Addface,3,2,0,1,
Addface,1,0,2,3,
Addface,5,4,2,3,
Addface,3,2,4,5,
Addface,7,6,4,5,
Addface,5,4,6,7,
Addface,9,8,6,7,
Addface,7,6,8,9,
Addface,11,10,8,9,
Addface,9,8,10,11,
LoadTexture,kolej_sv.png
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1
SetTextureCoordinates,2,2,0
SetTextureCoordinates,3,2,1
SetTextureCoordinates,4,4,0
SetTextureCoordinates,5,4,1
SetTextureCoordinates,6,6,0
SetTextureCoordinates,7,6,1
SetTextureCoordinates,8,8,0
SetTextureCoordinates,9,8,1
SetTextureCoordinates,10,10,0
SetTextureCoordinates,11,10,1

;Left track, left 3D-rail:
CreateMeshBuilder,
Addvertex,0.760, -0.01, 25.000,
Addvertex,0.760, -0.17, 25.000,
Addvertex,0.836, -0.01, 20.000,
Addvertex,0.836, -0.17, 20.000,
Addvertex,1.064, -0.01, 15.000,
Addvertex,1.064, -0.17, 15.000,
Addvertex,1.443, -0.01, 10.000,
Addvertex,1.443, -0.17, 10.000,
Addvertex,1.975, -0.01, 5.000,
Addvertex,1.975, -0.17, 5.000,
Addvertex,2.660, -0.01, 0.000,
Addvertex,2.660, -0.17, 0.000,
Addface,3,2,0,1,
Addface,1,0,2,3,
Addface,5,4,2,3,
Addface,3,2,4,5,
Addface,7,6,4,5,
Addface,5,4,6,7,
Addface,9,8,6,7,
Addface,7,6,8,9,
Addface,11,10,8,9,
Addface,9,8,10,11,
LoadTexture,kolej_sv.png
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1
SetTextureCoordinates,2,2,0
SetTextureCoordinates,3,2,1
SetTextureCoordinates,4,4,0
SetTextureCoordinates,5,4,1
SetTextureCoordinates,6,6,0
SetTextureCoordinates,7,6,1
SetTextureCoordinates,8,8,0
SetTextureCoordinates,9,8,1
SetTextureCoordinates,10,10,0
SetTextureCoordinates,11,10,1

;Ballast right:
CreateMeshBuilder,
Addvertex,-1.11, -0.17, 25,
Addvertex,-1.06, -0.17, 20,
Addvertex,-2.724, -0.4, 20,
Addvertex,-2.85, -0.4, 25,
Addface,0,1,2,3,
GenerateNormals,
LoadTexture,ballast.png,
SetTextureCoordinates,0, 1, 1,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 0, 0,
SetTextureCoordinates,3, 0, 1,

CreateMeshBuilder,
Addvertex,-1.06, -0.17, 20,
Addvertex,-0.84, -0.17, 15,
Addvertex,-2.416, -0.4, 15,
Addvertex,-2.724, -0.4, 20,
Addface,0,1,2,3,
GenerateNormals,
LoadTexture,ballast.png,
SetTextureCoordinates,0, 1, 1,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 0, 0,
SetTextureCoordinates,3, 0, 1,

CreateMeshBuilder,
Addvertex,-0.84, -0.17, 15,
Addvertex,-0.46, -0.17, 10,
Addvertex,-2.037, -0.4, 10,
Addvertex,-2.416, -0.4, 15,
Addface,0,1,2,3,
GenerateNormals,
LoadTexture,ballast.png,
SetTextureCoordinates,0, 1, 1,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 0, 0,
SetTextureCoordinates,3, 0, 1,

CreateMeshBuilder,
Addvertex,-0.46, -0.17, 10,
Addvertex,0.07, -0.17, 5,
Addvertex,-1.505, -0.4, 5,
Addvertex,-2.037, -0.4, 10,
Addface,0,1,2,3,
GenerateNormals,
LoadTexture,ballast.png,
SetTextureCoordinates,0, 1, 1,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 0, 0,
SetTextureCoordinates,3, 0, 1,

CreateMeshBuilder,
Addvertex,0.07, -0.17, 5,
Addvertex,0.75, -0.17, 0,
Addvertex,-0.82, -0.4, 0,
Addvertex,-1.505, -0.4, 5,
Addface,0,1,2,3,
GenerateNormals,
LoadTexture,ballast.png,
SetTextureCoordinates,0, 1, 1,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 0, 0,
SetTextureCoordinates,3, 0, 1,

;Ballast left:
CreateMeshBuilder,
Addvertex,2.800, -0.4, 25,
Addvertex,1.14, -0.17, 25,
Addvertex,2.876, -0.4, 20,
Addvertex,1.2, -0.17, 20,
Addvertex,3.104, -0.4, 15,
Addvertex,1.42, -0.17, 15,
Addvertex,3.483, -0.4, 10,
Addvertex,1.8, -0.17, 10,
Addvertex,4.015, -0.4, 5,
Addvertex,2.35, -0.17, 5,
Addvertex,4.700, -0.4, 0,
Addvertex,3.02, -0.17, 0,
Addface,1,0,2,3,
Addface,3,2,4,5,
Addface,5,4,6,7,
Addface,7,6,8,9,
Addface,9,8,10,11,
GenerateNormals,
LoadTexture,ballast.png,
SetTextureCoordinates,0, 0, 0.5,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 2, 0.5,
SetTextureCoordinates,3, 2, 0,
SetTextureCoordinates,4, 4, 0.5,
SetTextureCoordinates,5, 4, 0,
SetTextureCoordinates,6, 6, 0.5,
SetTextureCoordinates,7, 6, 0,
SetTextureCoordinates,8, 8, 0.5,
SetTextureCoordinates,9, 8, 0,
SetTextureCoordinates,10, 10, 0.5,
SetTextureCoordinates,11, 10, 0,

;Sleepers left:
CreateMeshBuilder,
Addvertex,1.14, -0.17, 25,
Addvertex,1.2, -0.17, 20,
Addvertex,-1.06, -0.17, 20,
Addvertex,-1.11, -0.17, 25,
Addface,0,1,2,3,
GenerateNormals,
LoadTexture,tie.png,
SetTextureCoordinates,0, 1, 0,
SetTextureCoordinates,1, 1, 2,
SetTextureCoordinates,2, 0, 2,
SetTextureCoordinates,3, 0, 0,

CreateMeshBuilder,
Addvertex,1.2, -0.17, 20,
Addvertex,1.42, -0.17, 15,
Addvertex,-0.84, -0.17, 15,
Addvertex,-1.06, -0.17, 20,
Addface,0,1,2,3,
GenerateNormals,
LoadTexture,tie.png,
SetTextureCoordinates,0, 1, 0,
SetTextureCoordinates,1, 1, 2,
SetTextureCoordinates,2, 0, 2,
SetTextureCoordinates,3, 0, 0,

CreateMeshBuilder,
Addvertex,1.42, -0.17, 15,
Addvertex,1.8, -0.17, 10,
Addvertex,-0.46, -0.17, 10,
Addvertex,-0.84, -0.17, 15,
Addface,0,1,2,3,
GenerateNormals,
LoadTexture,tie.png,
SetTextureCoordinates,0, 1, 0,
SetTextureCoordinates,1, 1, 2,
SetTextureCoordinates,2, 0, 2,
SetTextureCoordinates,3, 0, 0,

CreateMeshBuilder,
Addvertex,1.8, -0.17, 10,
Addvertex,2.35, -0.17, 5,
Addvertex,0.07, -0.17, 5,
Addvertex,-0.46, -0.17, 10,
Addface,0,1,2,3,
GenerateNormals,
LoadTexture,tie.png,
SetTextureCoordinates,0, 1, 0,
SetTextureCoordinates,1, 1, 2,
SetTextureCoordinates,2, 0, 2,
SetTextureCoordinates,3, 0, 0,

CreateMeshBuilder,
Addvertex,2.35, -0.17, 5,
Addvertex,3.02, -0.17, 0,
Addvertex,0.75, -0.17, 0,
Addvertex,0.07, -0.17, 5,
Addface,0,1,2,3,
GenerateNormals,
LoadTexture,tie.png,
SetTextureCoordinates,0, 1, 0,
SetTextureCoordinates,1, 1, 2,
SetTextureCoordinates,2, 0, 2,
SetTextureCoordinates,3, 0, 0,

;Overhead line left:
CreateMeshBuilder,
Addvertex,0.02, 5.5, 25,
Addvertex,-0.02, 5.5, 25,
Addvertex,1.880, 5.5, 0,
Addvertex,1.920, 5.5, 0,
Addface,0,1,2,3,
SetColor,0,0,0,
GenerateNormals,

CreateMeshBuilder,
Addvertex,0.01, 6.5, 25,
Addvertex,-0.01, 6.5, 25,
Addvertex,1.890, 6.5, 0,
Addvertex,1.910, 6.5, 0,
Addface,0,1,2,3,
SetColor,0,0,0,
GenerateNormals,

CreateMeshBuilder,
Addvertex,0.010, 6.5, 25,
Addvertex,-0.010, 6.5, 25,
Addvertex,-0.010, 5.5, 25,
Addvertex,0.010, 5.5, 25,
Addface,3,2,1,0,
SetColor,0,0,0,
GenerateNormals,

CreateMeshBuilder,
Addvertex,0.390, 6.5, 20,
Addvertex,0.370, 6.5, 20,
Addvertex,0.370, 5.5, 20,
Addvertex,0.390, 5.5, 20,
Addface,3,2,1,0,
SetColor,0,0,0,
GenerateNormals,

CreateMeshBuilder,
Addvertex,0.770, 6.5, 15,
Addvertex,0.750, 6.5, 15,
Addvertex,0.750, 5.5, 15,
Addvertex,0.770, 5.5, 15,
Addface,3,2,1,0,
SetColor,0,0,0,
GenerateNormals,

CreateMeshBuilder,
Addvertex,1.150, 6.5, 10,
Addvertex,1.130, 6.5, 10,
Addvertex,1.130, 5.5, 10,
Addvertex,1.150, 5.5, 10,
Addface,3,2,1,0,
SetColor,0,0,0,
GenerateNormals,

CreateMeshBuilder,
Addvertex,1.530, 6.5, 5,
Addvertex,1.510, 6.5, 5,
Addvertex,1.510, 5.5, 5,
Addvertex,1.530, 5.5, 5,
Addface,3,2,1,0,
SetColor,0,0,0,
GenerateNormals,

CreateMeshBuilder,
Addvertex,1.910, 6.5, 0,
Addvertex,1.890, 6.5, 0,
Addvertex,1.890, 5.5, 0,
Addvertex,1.910, 5.5, 0,
Addface,3,2,1,0,
SetColor,0,0,0,
GenerateNormals,

