CreateMeshBuilder,
Addvertex,0.800, 0, 0.000,
Addvertex,0.720, 0, 0.000,
Addvertex,0.800, 0, 5.000,
Addvertex,0.720, 0, 5.000,
Addvertex,0.800, 0, 10.000,
Addvertex,0.720, 0, 10.000,
Addvertex,0.800, 0, 15.000,
Addvertex,0.720, 0, 15.000,
Addvertex,0.800, 0, 20.000,
Addvertex,0.720, 0, 20.000,
Addvertex,0.800, 0, 21.116,
Addvertex,0.720, 0, 20.562,
Addvertex,0.800, 0, 21.671,
Addvertex,0.720, 0, 21.116,
Addvertex,0.800, 0, 25.000,
Addvertex,0.720, 0, 25.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,
Addface,15,14,12,13,
GenerateNormals,
LoadTexture,Schienenkopf.bmp,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 0.1428, 1,
SetTextureCoordinates,3, 0.1428, 0,
SetTextureCoordinates,4, 0.2856, 1,
SetTextureCoordinates,5, 0.2856, 0,
SetTextureCoordinates,6, 0.4284, 1,
SetTextureCoordinates,7, 0.4284, 0,
SetTextureCoordinates,8, 0.5712, 1,
SetTextureCoordinates,9, 0.5712, 0,
SetTextureCoordinates,10, 0.714, 1,
SetTextureCoordinates,11, 0.714, 0,
SetTextureCoordinates,12, 0.8568, 1,
SetTextureCoordinates,13, 0.8568, 0,
SetTextureCoordinates,14, 1, 1,
SetTextureCoordinates,15, 1, 0,

;Linkes Gleis, linke Schiene:



CreateMeshBuilder,
Addvertex,-0.720, 0, 0.000,
Addvertex,-0.800, 0, 0.000,
Addvertex,-0.720, 0, 5.000,
Addvertex,-0.800, 0, 5.000,
Addvertex,-0.720, 0, 10.000,
Addvertex,-0.800, 0, 10.000,
Addvertex,-0.720, 0, 15.000,
Addvertex,-0.800, 0, 15.000,
Addvertex,-0.720, 0, 20.000,
Addvertex,-0.800, 0, 20.000,
Addvertex,-0.720, 0, 25.000,
Addvertex,-0.800, 0, 25.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,Schienenkopf.bmp,
SetTextureCoordinates,0, 0.001, 0,
SetTextureCoordinates,1, 0.001, 1,
SetTextureCoordinates,2, 0.2, 0,
SetTextureCoordinates,3, 0.2, 1,
SetTextureCoordinates,4, 0.4, 0,
SetTextureCoordinates,5, 0.4, 1,
SetTextureCoordinates,6, 0.6, 0,
SetTextureCoordinates,7, 0.6, 1,
SetTextureCoordinates,8, 0.8, 0,
SetTextureCoordinates,9, 0.8, 1,
SetTextureCoordinates,10, 1, 0,
SetTextureCoordinates,11, 1, 1,

;Rechtes Gleis, rechte Schiene:



CreateMeshBuilder,
Addvertex,0.800, 0, 0.000,
Addvertex,0.720, 0, 0.000,
Addvertex,0.880, 0, 5.000,
Addvertex,0.800, 0, 5.000,
Addvertex,1.119, 0, 10.000,
Addvertex,1.039, 0, 10.000,
Addvertex,1.519, 0, 15.000,
Addvertex,1.439, 0, 15.000,
Addvertex,2.079, 0, 20.000,
Addvertex,1.999, 0, 20.000,
Addvertex,2.800, 0, 25.000,
Addvertex,2.720, 0, 25.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,Schienenkopf.bmp,
SetTextureCoordinates,0, 0.001, 1,
SetTextureCoordinates,1, 0.001, 0,
SetTextureCoordinates,2, 0.2, 1,
SetTextureCoordinates,3, 0.2, 0,
SetTextureCoordinates,4, 0.4, 1,
SetTextureCoordinates,5, 0.4, 0,
SetTextureCoordinates,6, 0.6, 1,
SetTextureCoordinates,7, 0.6, 0,
SetTextureCoordinates,8, 0.8, 1,
SetTextureCoordinates,9, 0.8, 0,
SetTextureCoordinates,10, 1, 1,
SetTextureCoordinates,11, 1, 0,

;Rechtes Gleis, linke Schiene:



CreateMeshBuilder,
Addvertex,-0.570, 0, 0.000,
Addvertex,-0.610, 0, 0.000,
Addvertex,-0.540, 0, 5.000,
Addvertex,-0.620, 0, 5.000,
Addvertex,-0.351, 0, 10.000,
Addvertex,-0.431, 0, 10.000,
Addvertex,-0.001, 0, 15.000,
Addvertex,-0.081, 0, 15.000,
Addvertex,0.559, 0, 20.000,
Addvertex,0.479, 0, 20.000,
Addvertex,0.640, 0, 20.562,
Addvertex,0.640, 0, 21.116,
Addvertex,0.720, 0, 21.116,
Addvertex,0.720, 0, 21.671,
Addvertex,1.280, 0, 25.000,
Addvertex,1.200, 0, 25.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,
Addface,15,14,12,13,
GenerateNormals,
LoadTexture,Schienenkopf.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 0, 1,
SetTextureCoordinates,2, 0.1428, 0,
SetTextureCoordinates,3, 0.1428, 1,
SetTextureCoordinates,4, 0.2856, 0,
SetTextureCoordinates,5, 0.2856, 1,
SetTextureCoordinates,6, 0.4284, 0,
SetTextureCoordinates,7, 0.4284, 1,
SetTextureCoordinates,8, 0.5712, 0,
SetTextureCoordinates,9, 0.5712, 1,
SetTextureCoordinates,10, 0.714, 0,
SetTextureCoordinates,11, 0.714, 1,
SetTextureCoordinates,12, 0.8568, 0,
SetTextureCoordinates,13, 0.8568, 1,
SetTextureCoordinates,14, 1, 0,
SetTextureCoordinates,15, 1, 1,

;Schotterbett rechts:


CreateMeshBuilder,
Addvertex,1.350, -0.17, 0,
Addvertex,2.800, -0.4, 0,
Addvertex,1.430, -0.17, 5,
Addvertex,2.880, -0.4, 5,
Addvertex,1.669, -0.17, 10,
Addvertex,3.119, -0.4, 10,
Addvertex,2.069, -0.17, 15,
Addvertex,3.519, -0.4, 15,
Addvertex,2.629, -0.17, 20,
Addvertex,4.079, -0.4, 20,
Addvertex,3.350, -0.17, 25,
Addvertex,4.800, -0.4, 25,
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,schotter2.bmp,
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,

;Schotterbett links:

CreateMeshBuilder,
Addvertex,-2.800, -0.4, 0,
Addvertex,-1.350, -0.17, 0,
Addvertex,-2.800, -0.4, 5,
Addvertex,-1.350, -0.17, 5,
Addvertex,-2.800, -0.4, 10,
Addvertex,-1.350, -0.17, 10,
Addvertex,-2.800, -0.4, 15,
Addvertex,-1.350, -0.17, 15,
Addvertex,-2.800, -0.4, 20,
Addvertex,-1.350, -0.17, 20,
Addvertex,-2.800, -0.4, 25,
Addvertex,-1.350, -0.17, 25,
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,schotter2.bmp,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 2, 1,
SetTextureCoordinates,3, 2, 0,
SetTextureCoordinates,4, 4, 1,
SetTextureCoordinates,5, 4, 0,
SetTextureCoordinates,6, 6, 1,
SetTextureCoordinates,7, 6, 0,
SetTextureCoordinates,8, 8, 1,
SetTextureCoordinates,9, 8, 0,
SetTextureCoordinates,10, 10, 1,
SetTextureCoordinates,11, 10, 0,

;Schwellen links:

CreateMeshBuilder,
Addvertex,-1.350, -0.17, 0,
Addvertex,0.000, -0.17, 0,
Addvertex,-1.350, -0.17, 5,
Addvertex,0.040, -0.17, 5,
Addvertex,-1.350, -0.17, 10,
Addvertex,0.160, -0.17, 10,
Addvertex,-1.350, -0.17, 15,
Addvertex,0.360, -0.17, 15,
Addvertex,-1.350, -0.17, 20,
Addvertex,0.640, -0.17, 20,
Addvertex,-1.350, -0.17, 25,
Addvertex,1.000, -0.17, 25,
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,weiche2b.bmp,
SetTextureCoordinates,0, 1.005, 0,
SetTextureCoordinates,1, 0.750, 0,
SetTextureCoordinates,2, 1.005, -2,
SetTextureCoordinates,3, 0.743, -2,
SetTextureCoordinates,4, 1.005, -4,
SetTextureCoordinates,5, 0.720, -4,
SetTextureCoordinates,6, 1.005, -6,
SetTextureCoordinates,7, 0.683, -6,
SetTextureCoordinates,8, 1.005, -8,
SetTextureCoordinates,9, 0.632, -8,
SetTextureCoordinates,10, 1.005, -10,
SetTextureCoordinates,11, 0.565, -10,

;Schwellen rechts:

CreateMeshBuilder,
Addvertex,1.350, -0.17, 0,
Addvertex,0.000, -0.17, 0,
Addvertex,1.430, -0.17, 5,
Addvertex,0.040, -0.17, 5,
Addvertex,1.669, -0.17, 10,
Addvertex,0.160, -0.17, 10,
Addvertex,2.069, -0.17, 15,
Addvertex,0.360, -0.17, 15,
Addvertex,2.629, -0.17, 20,
Addvertex,0.640, -0.17, 20,
Addvertex,3.350, -0.17, 25,
Addvertex,1.000, -0.17, 25,
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,weiche2b.bmp,
SetTextureCoordinates,0, 1.005, 0,
SetTextureCoordinates,1, 0.750, 0,
SetTextureCoordinates,2, 1.005, -2,
SetTextureCoordinates,3, 0.743, -2,
SetTextureCoordinates,4, 1.005, -4,
SetTextureCoordinates,5, 0.720, -4,
SetTextureCoordinates,6, 1.005, -6,
SetTextureCoordinates,7, 0.683, -6,
SetTextureCoordinates,8, 1.005, -8,
SetTextureCoordinates,9, 0.632, -8,
SetTextureCoordinates,10, 1.005, -10,
SetTextureCoordinates,11, 0.565, -10,

;Fluegelschienen:

CreateMeshBuilder,
Addvertex,0.560, -0.001, 22.116,
Addvertex,0.640, -0.001, 22.116,
Addvertex,0.640, -0.001, 21.116,
Addvertex,0.580, -0.001, 20.462,
Addface,0,1,2,3,
SetColor,85,50,50,
GenerateNormals,

CreateMeshBuilder,
Addvertex,1.024, -0.001, 22.116,
Addvertex,0.944, -0.001, 22.116,
Addvertex,0.800, -0.001, 21.116,
Addvertex,0.780, -0.001, 20.462,
Addface,3,2,1,0,
SetColor,85,50,50,

;Linkes Gleis, rechte 3D-Schiene:

GenerateNormals,

CreateMeshBuilder,
Addvertex,0.760, -0.01, 0.000,
Addvertex,0.760,-0.17, 0.000,
Addvertex,0.760, -0.01, 5.000,
Addvertex,0.760,-0.17, 5.000,
Addvertex,0.760, -0.01, 10.000,
Addvertex,0.760,-0.17, 10.000,
Addvertex,0.760, -0.01, 15.000,
Addvertex,0.760,-0.17, 15.000,
Addvertex,0.760, -0.01, 20.000,
Addvertex,0.760,-0.17, 20.000,
Addvertex,0.760, -0.01, 20.562,
Addvertex,0.760,-0.17, 20.562,
Addvertex,0.760, -0.01, 21.671,
Addvertex,0.760,-0.17, 21.671,
Addvertex,0.760, -0.01, 25.000,
Addvertex,0.760,-0.17, 25.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,
Addface,15,14,12,13,
Addface,13,12,14,15,
SetColor,85,50,50,

;Rechtes Gleis, linke 3D-Schiene:

GenerateNormals,

CreateMeshBuilder,
Addvertex,-0.610, -0.01, 0.000,
Addvertex,-0.610,-0.17, 0.000,
Addvertex,-0.580, -0.01, 5.000,
Addvertex,-0.580,-0.17, 5.000,
Addvertex,-0.391, -0.01, 10.000,
Addvertex,-0.391,-0.17, 10.000,
Addvertex,-0.041, -0.01, 15.000,
Addvertex,-0.041,-0.17, 15.000,
Addvertex,0.519, -0.01, 20.000,
Addvertex,0.519,-0.17, 20.000,
Addvertex,0.600, -0.01, 20.562,
Addvertex,0.600,-0.17, 20.562,
Addvertex,0.760, -0.01, 21.671,
Addvertex,0.760,-0.17, 21.671,
Addvertex,1.240, -0.01, 25.000,
Addvertex,1.240,-0.17, 25.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,
Addface,15,14,12,13,
Addface,13,12,14,15,
SetColor,85,50,50,

;Rechtes Gleis, rechte 3D-Schiene:

GenerateNormals,

CreateMeshBuilder,
Addvertex,0.760, -0.01, 0.000,
Addvertex,0.760, -0.17, 0.000,
Addvertex,0.840, -0.01, 5.000,
Addvertex,0.840, -0.17, 5.000,
Addvertex,1.079, -0.01, 10.000,
Addvertex,1.079, -0.17, 10.000,
Addvertex,1.479, -0.01, 15.000,
Addvertex,1.479, -0.17, 15.000,
Addvertex,2.039, -0.01, 20.000,
Addvertex,2.039, -0.17, 20.000,
Addvertex,2.760, -0.01, 25.000,
Addvertex,2.760, -0.17, 25.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,
SetColor,85,50,50,

;Linkes Gleis, linke 3D-Schiene:

GenerateNormals,

CreateMeshBuilder,
Addvertex,-0.760, -0.01, 0.000,
Addvertex,-0.760, -0.17, 0.000,
Addvertex,-0.760, -0.01, 5.000,
Addvertex,-0.760, -0.17, 5.000,
Addvertex,-0.760, -0.01, 10.000,
Addvertex,-0.760, -0.17, 10.000,
Addvertex,-0.760, -0.01, 15.000,
Addvertex,-0.760, -0.17, 15.000,
Addvertex,-0.760, -0.01, 20.000,
Addvertex,-0.760, -0.17, 20.000,
Addvertex,-0.760, -0.01, 25.000,
Addvertex,-0.760, -0.17, 25.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,
SetColor,85,50,50,

;3D-Fluegelschienen:

GenerateNormals,

CreateMeshBuilder,
Addvertex,0.600, -0.17, 22.116,
Addvertex,0.600, -0.01, 22.116,
Addvertex,0.600, -0.01, 20.562,
Addvertex,0.600, -0.17, 20.562,
Addface,0,1,2,3,
Addface,3,2,1,0,
SetColor,85,50,50,

GenerateNormals,

CreateMeshBuilder,
Addvertex,0.984, -0.17, 22.116,
Addvertex,0.984, -0.01, 22.116,
Addvertex,0.760, -0.01, 20.562,
Addvertex,0.760, -0.17, 20.562,
Addface,0,1,2,3,
Addface,3,2,1,0,
SetColor,85,50,50,

;Radlenker links:

GenerateNormals,

CreateMeshBuilder,
Addvertex,-0.600, 0, 21.789,
Addvertex,-0.560, 0, 21.789,
Addvertex,-0.640, 0, 21.289,
Addvertex,-0.560, 0, 21.289,
Addvertex,-0.640, 0, 20.000,
Addvertex,-0.560, 0, 20.000,
Addvertex,-0.640, 0, 18.789,
Addvertex,-0.560, 0, 18.789,
Addvertex,-0.600, 0, 18.289,
Addvertex,-0.560, 0, 18.289,
Addface,0,1,3,2,
Addface,2,3,5,4,
Addface,4,5,7,6,
Addface,6,7,9,8,
SetColor,85,50,50,

;Radlenker rechts:

GenerateNormals,

CreateMeshBuilder,
Addvertex,2.137, 0, 21.789,
Addvertex,2.097, 0, 21.789,
Addvertex,2.105, 0, 21.289,
Addvertex,2.025, 0, 21.289,
Addvertex,1.919, 0, 20.000,
Addvertex,1.839, 0, 20.000,
Addvertex,1.783, 0, 18.789,
Addvertex,1.703, 0, 18.789,
Addvertex,1.687, 0, 18.289,
Addvertex,1.647, 0, 18.289,
Addface,2,3,1,0,
Addface,4,5,3,2,
Addface,6,7,5,4,
Addface,8,9,7,6,
SetColor,85,50,50,

;3D-Radlenker links:

GenerateNormals,

CreateMeshBuilder,
Addvertex,-0.600, 0, 21.789,
Addvertex,-0.600, -0.17, 21.789,
Addvertex,-0.640, 0, 21.289,
Addvertex,-0.640, -0.17, 21.289,
Addvertex,-0.640, 0, 20.000,
Addvertex,-0.640, -0.17, 20.000,
Addvertex,-0.640, 0, 18.789,
Addvertex,-0.640, -0.17, 18.789,
Addvertex,-0.600, 0, 18.289,
Addvertex,-0.600, -0.17, 18.289,
Addface,0,1,3,2,
Addface,2,3,1,0,
Addface,2,3,5,4,
Addface,4,5,3,2,
Addface,4,5,7,6,
Addface,6,7,5,4,
Addface,6,7,9,8,
Addface,8,9,7,6,
SetColor,85,50,50,

;3D-Radlenker rechts:

GenerateNormals,

CreateMeshBuilder,
Addvertex,2.137, 0, 21.789,
Addvertex,2.137, -0.17, 21.789,
Addvertex,2.105, 0, 21.289,
Addvertex,2.105, -0.17, 21.289,
Addvertex,1.919, 0, 20.000,
Addvertex,1.919, -0.17, 20.000,
Addvertex,1.783, 0, 18.789,
Addvertex,1.783, -0.17, 18.789,
Addvertex,1.687, 0, 18.289,
Addvertex,1.687, -0.17, 18.289,
Addface,0,1,3,2,
Addface,2,3,1,0,
Addface,2,3,5,4,
Addface,4,5,3,2,
Addface,4,5,7,6,
Addface,6,7,5,4,
Addface,6,7,9,8,
Addface,8,9,7,6,
SetColor,85,50,50,

;Oberleitung rechts:



GenerateNormals,

CreateMeshBuilder,
Addvertex,-0.01, 5.600, 0,
Addvertex,0.01, 5.600, 0,
Addvertex,2.010, 5.600, 25,
Addvertex,1.990, 5.600, 25,
Addface,0,1,2,3,
SetColor,68,40,40,


;Oberleitung links:



GenerateNormals,

CreateMeshBuilder,
Addvertex,-0.01, 5.600, 0,
Addvertex,0.01, 5.600, 0,
Addvertex,0.010, 5.600, 25,
Addvertex,-0.010, 5.600, 25,
Addface,0,1,2,3,
SetColor,68,40,40,

GenerateNormals,

