;Standard straight track,with catenary

;Sleepers
CreateMeshBuilder
AddVertex,-0.95,-0.144,0
AddVertex,-0.95,-0.140,25.2
AddVertex,0.95,-0.140,25.2
AddVertex,0.95,-0.144,0
AddFace,0,1,2,3

LoadTexture,Tie.png
SetTextureCoordinates,0,0,9
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,1,0
SetTextureCoordinates,3,1,9

;Ballast Shoulders
CreateMeshBuilder
;Left
AddVertex,-0.95,-0.144,0
AddVertex,-2.5,-0.45,0
AddVertex,-2.5,-0.446,25.2
AddVertex,-0.95,-0.140,25.2
;Right
AddVertex,0.95,-0.144,0
AddVertex,2.5,-0.45,0
AddVertex,2.5,-0.446,25.2
AddVertex,0.95,-0.140,25.2
AddFace,0,1,2,3
AddFace,7,6,5,4

LoadTexture,Ballast.png
SetTextureCoordinates,0,1,1
SetTextureCoordinates,1,0,1
SetTextureCoordinates,2,0,0
SetTextureCoordinates,3,1,0
SetTextureCoordinates,4,1,1
SetTextureCoordinates,5,0,1
SetTextureCoordinates,6,0,0
SetTextureCoordinates,7,1,0

;Railheads
CreateMeshBuilder
;Left
AddVertex,-0.602,0,0
AddVertex,-0.602,0,25.5
AddVertex,-0.534,0,25.5
AddVertex,-0.534,0,0
;Right
AddVertex,0.534,0,0
AddVertex,0.534,0,25.5
AddVertex,0.602,0,25.5
AddVertex,0.602,0,0
AddFace2,0,1,2,3
AddFace2,4,5,6,7
SetColor,160,160,160

;Rail Sides
CreateMeshBuilder
;Left
AddVertex,-0.568,0,0
AddVertex,-0.568,0,25.5
AddVertex,-0.568,-0.144,25.5
AddVertex,-0.568,-0.144,0
;Right
AddVertex,0.568,0,0
AddVertex,0.568,0,25.5
AddVertex,0.568,-0.144,25.5
AddVertex,0.568,-0.144,0
AddFace2,0,1,2,3
AddFace2,4,5,6,7
SetColor,85,50,50

;Contact Wire
CreateMeshBuilder
AddVertex,0.012,5.1,0
AddVertex,0.012,5.1,25.2
AddVertex,-0.012,5.1,25.2
AddVertex,-0.012,5.1,0

AddVertex,0,5.112,0
AddVertex,0,5.112,25.2
AddVertex,0,5.088,25.2
AddVertex,0,5.088,0
AddFace2,0,1,2,3
AddFace2,4,5,6,7
SetColor,64,64,64

;Top Wire
CreateMeshBuilder
AddVertex,0.008,5.7,0
AddVertex,0.008,5.7,25.2
AddVertex,-0.008,5.7,25.2
AddVertex,-0.008,5.7,0

AddVertex,0,5.708,0
AddVertex,0,5.708,25.2
AddVertex,0,5.692,25.2
AddVertex,0,5.692,0
AddFace2,0,1,2,3
AddFace2,4,5,6,7
SetColor,192,176,160

;Wire Bobbles
CreateMeshBuilder
;1
AddVertex,-0.06,5.7,4.167
AddVertex,0,5.76,4.167
AddVertex,0.06,5.7,4.167
AddVertex,0,5.64,4.167
;2
AddVertex,-0.06,5.7,12.5
AddVertex,0,5.76,12.5
AddVertex,0.06,5.7,12.5
AddVertex,0,5.64,12.5
;3
AddVertex,-0.06,5.7,20.833
AddVertex,0,5.76,20.833
AddVertex,0.06,5.7,20.833
AddVertex,0,5.64,20.833
AddFace2,0,1,2,3
AddFace2,4,5,6,7
AddFace2,8,9,10,11
SetColor,64,64,64