;platform clock object
;(c) Derryck 2007

;faces
CreateMeshBuilder,				
AddVertex,0,0,-0.05
AddVertex,0,0.4,-0.05
AddVertex,1.3,0.4,-0.05
AddVertex,1.3,0,-0.05
AddFace,0,1,2,3,
GenerateNormals,			
LoadTexture,Tabule_R3.png,			
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,

CreateMeshBuilder,				
AddVertex,1.3,0,0.05
AddVertex,1.3,0.4,0.05
AddVertex,0,0.4,0.05
AddVertex,0,0,0.05
AddFace,0,1,2,3,
GenerateNormals,			
LoadTexture,Tabule_R3.png,			
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,

;3D left
CreateMeshBuilder,				
AddVertex,0,0,0.05
AddVertex,0,0.4,0.05
AddVertex,0,0.4,-0.05
AddVertex,0,0,-0.05
AddFace,0,1,2,3,
GenerateNormals,
Setcolor, 180,180,150

;3D right
CreateMeshBuilder,				
AddVertex,1.3,0,0.05
AddVertex,1.3,0.4,0.05
AddVertex,1.3,0.4,-0.05
AddVertex,1.3,0,-0.05
AddFace,3,2,1,0,
GenerateNormals,
Setcolor, 180,180,150

;3D bottom
CreateMeshBuilder,				
AddVertex,0,0,0.05
AddVertex,0,0,-0.05
AddVertex,1.3,0,-0.05
AddVertex,1.3,0,0.05
AddFace,0,1,2,3,
GenerateNormals,
Setcolor, 180,180,150

;3D top
createMeshBuilder,
AddVertex,0,0.4,-0.05
AddVertex,0,0.4,0.05
AddVertex,1.3,0.4,0.05
AddVertex,1.3,0.4,-0.05
AddFace,0,1,2,3,
GenerateNormals,
Setcolor, 180,180,150

;traverse
createMeshBuilder,
AddVertex,-1.95,0.56,-0.05
AddVertex,-1.95,0.56,0.05
AddVertex,1.25,0.56,0.05
AddVertex,1.25,0.56,-0.05
AddFace,0,1,2,3,
LoadTexture,Vranov_Roof_Beam.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,2,0
SetTextureCoordinates,3,2,1

createMeshBuilder,
AddVertex,-1.95,0.51,-0.05
AddVertex,-1.95,0.51,0.05
AddVertex,1.25,0.51,0.05
AddVertex,1.25,0.51,-0.05
AddFace,3,2,1,0
LoadTexture,Vranov_Roof_Beam.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,2,0
SetTextureCoordinates,3,2,1

createMeshBuilder,
AddVertex,-1.95,0.51,-0.05
AddVertex,-1.95,0.56,-0.05
AddVertex,1.25,0.56,-0.05
AddVertex,1.25,0.51,-0.05
AddFace,0,1,2,3,
LoadTexture,Vranov_Roof_Beam.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,2,0
SetTextureCoordinates,3,2,1

createMeshBuilder,
AddVertex,-1.95,0.51,0.05
AddVertex,-1.95,0.56,0.05
AddVertex,1.25,0.56,0.05
AddVertex,1.25,0.51,0.05
AddFace,3,2,1,0
LoadTexture,Vranov_Roof_Beam.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,2,0
SetTextureCoordinates,3,2,1

createMeshBuilder,
AddVertex,-1.95,0.51,0.05
AddVertex,-1.95,0.56,0.05
AddVertex,-1.95,0.56,-0.05
AddVertex,-1.95,0.51,-0.05
AddFace,0,1,2,3
LoadTexture,Vranov_Roof_Beam.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,0.3,0
SetTextureCoordinates,3,0.3,1

createMeshBuilder,
AddVertex,1.25,0.51,0.05
AddVertex,1.25,0.56,0.05
AddVertex,1.25,0.56,-0.05
AddVertex,1.25,0.51,-0.05
AddFace,3,2,1,0
LoadTexture,Vranov_Roof_Beam.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,0.3,0
SetTextureCoordinates,3,0.3,1
;;;;;;;;

createMeshBuilder,
AddVertex,-1.83,0.55,-0.03,	0,0.5,0
AddVertex,-1.83,0.93,-0.03,	0,0.5,0
AddVertex,-1.77,0.93,-0.03,	0,0.5,0
AddVertex,-1.77,0.55,-0.03,	0,0.5,0
AddFace,0,1,2,3
LoadTexture,Vranov_Roof_Beam.png,
SetTextureCoordinates,0,0.25,1
SetTextureCoordinates,1,0.25,0
SetTextureCoordinates,2,0.5,0
SetTextureCoordinates,3,0.5,1

createMeshBuilder,
AddVertex,-1.83,0.55,0.03,	0,0.5,0
AddVertex,-1.83,0.93,0.03,	0,0.5,0
AddVertex,-1.83,0.93,-0.03,	0,0.5,0
AddVertex,-1.83,0.55,-0.03,	0,0.5,0
AddFace,0,1,2,3
LoadTexture,Vranov_Roof_Beam.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,0.25,0
SetTextureCoordinates,3,0.25,1

createMeshBuilder,
AddVertex,-1.83,0.55,0.03,	0,0.5,0
AddVertex,-1.83,0.93,0.03,	0,0.5,0
AddVertex,-1.77,0.93,0.03,	0,0.5,0
AddVertex,-1.77,0.55,0.03,	0,0.5,0
AddFace,3,2,1,0
LoadTexture,Vranov_Roof_Beam.png,
SetTextureCoordinates,0,0.5,1
SetTextureCoordinates,1,0.5,0
SetTextureCoordinates,2,0.75,0
SetTextureCoordinates,3,0.75,1

createMeshBuilder,
AddVertex,-1.77,0.55,0.03,	0,0.5,0
AddVertex,-1.77,0.93,0.03,	0,0.5,0
AddVertex,-1.77,0.93,-0.03,	0,0.5,0
AddVertex,-1.77,0.55,-0.03,	0,0.5,0
AddFace,3,2,1,0
LoadTexture,Vranov_Roof_Beam.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,0.25,0
SetTextureCoordinates,3,0.25,1

;;;;
createMeshBuilder,
AddVertex,0.97,0.55,-0.03,	0,0.5,0
AddVertex,0.97,0.93,-0.03,	0,0.5,0
AddVertex,1.03,0.93,-0.03,	0,0.5,0
AddVertex,1.03,0.55,-0.03,	0,0.5,0
AddFace,0,1,2,3
LoadTexture,Vranov_Roof_Beam.png,
SetTextureCoordinates,0,0.25,1
SetTextureCoordinates,1,0.25,0
SetTextureCoordinates,2,0.5,0
SetTextureCoordinates,3,0.5,1

createMeshBuilder,
AddVertex,0.97,0.55,0.03,	0,0.5,0
AddVertex,0.97,0.93,0.03,	0,0.5,0
AddVertex,0.97,0.93,-0.03,	0,0.5,0
AddVertex,0.97,0.55,-0.03,	0,0.5,0
AddFace,0,1,2,3
LoadTexture,Vranov_Roof_Beam.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,0.25,0
SetTextureCoordinates,3,0.25,1

createMeshBuilder,
AddVertex,1.03,0.55,0.03,	0,0.5,0
AddVertex,1.03,0.93,0.03,	0,0.5,0
AddVertex,0.97,0.93,0.03,	0,0.5,0
AddVertex,0.97,0.55,0.03,	0,0.5,0
AddFace,0,1,2,3
LoadTexture,Vranov_Roof_Beam.png,
SetTextureCoordinates,0,0.5,1
SetTextureCoordinates,1,0.5,0
SetTextureCoordinates,2,0.75,0
SetTextureCoordinates,3,0.75,1

createMeshBuilder,
AddVertex,1.03,0.55,0.03,	0,0.5,0
AddVertex,1.03,0.93,0.03,	0,0.5,0
AddVertex,1.03,0.93,-0.03,	0,0.5,0
AddVertex,1.03,0.55,-0.03,	0,0.5,0
AddFace,3,2,1,0
LoadTexture,Vranov_Roof_Beam.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,0.25,0
SetTextureCoordinates,3,0.25,1
;;;;;;;;

createMeshBuilder,
AddVertex,-1.63,0.375,0.02,	0,-0.5,0
AddVertex,-1.63,0.52,0.02,	0,-0.5,0
AddVertex,-1.63,0.52,-0.02,	0,-0.5,0
AddVertex,-1.63,0.375,-0.02,	0,-0.5,0
AddFace,3,2,1,0
LoadTexture,../../Track/TractionMains/Sloup.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,0.5,0
SetTextureCoordinates,3,0.5,1

createMeshBuilder,
AddVertex,-1.67,0.375,0.02,	0,-0.5,0
AddVertex,-1.67,0.52,0.02,	0,-0.5,0
AddVertex,-1.67,0.52,-0.02,	0,-0.5,0
AddVertex,-1.67,0.375,-0.02,	0,-0.5,0
AddFace,0,1,2,3
LoadTexture,../../Track/TractionMains/Sloup.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,0.5,0
SetTextureCoordinates,3,0.5,1

createMeshBuilder,
AddVertex,-1.67,0.375,-0.02,	0,-0.5,0
AddVertex,-1.67,0.52,-0.02,	0,-0.5,0
AddVertex,-1.63,0.52,-0.02,	0,-0.5,0
AddVertex,-1.63,0.375,-0.02,	0,-0.5,0
AddFace,0,1,2,3
LoadTexture,../../Track/TractionMains/Sloup.png,
SetTextureCoordinates,0,0.5,1
SetTextureCoordinates,1,0.5,0
SetTextureCoordinates,2,1,0
SetTextureCoordinates,3,1,1

createMeshBuilder,
AddVertex,-1.67,0.375,0.02,	0,-0.5,0
AddVertex,-1.67,0.52,0.02,	0,-0.5,0
AddVertex,-1.63,0.52,0.02,	0,-0.5,0
AddVertex,-1.63,0.375,0.02,	0,-0.5,0
AddFace,3,2,1,0
LoadTexture,../../Track/TractionMains/Sloup.png,
SetTextureCoordinates,0,0.5,1
SetTextureCoordinates,1,0.5,0
SetTextureCoordinates,2,1,0
SetTextureCoordinates,3,1,1

;;;;;;;;

createMeshBuilder,
AddVertex,-0.83,0.375,0.02,	0,-0.5,0
AddVertex,-0.83,0.52,0.02,	0,-0.5,0
AddVertex,-0.83,0.52,-0.02,	0,-0.5,0
AddVertex,-0.83,0.375,-0.02,	0,-0.5,0
AddFace,3,2,1,0
LoadTexture,../../Track/TractionMains/Sloup.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,0.5,0
SetTextureCoordinates,3,0.5,1

createMeshBuilder,
AddVertex,-0.87,0.375,0.02,	0,-0.5,0
AddVertex,-0.87,0.52,0.02,	0,-0.5,0
AddVertex,-0.87,0.52,-0.02,	0,-0.5,0
AddVertex,-0.87,0.375,-0.02,	0,-0.5,0
AddFace,0,1,2,3
LoadTexture,../../Track/TractionMains/Sloup.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,0.5,0
SetTextureCoordinates,3,0.5,1

createMeshBuilder,
AddVertex,-0.87,0.375,-0.02,	0,-0.5,0
AddVertex,-0.87,0.52,-0.02,	0,-0.5,0
AddVertex,-0.83,0.52,-0.02,	0,-0.5,0
AddVertex,-0.83,0.375,-0.02,	0,-0.5,0
AddFace,0,1,2,3
LoadTexture,../../Track/TractionMains/Sloup.png,
SetTextureCoordinates,0,0.5,1
SetTextureCoordinates,1,0.5,0
SetTextureCoordinates,2,1,0
SetTextureCoordinates,3,1,1

createMeshBuilder,
AddVertex,-0.87,0.375,0.02,	0,-0.5,0
AddVertex,-0.87,0.52,0.02,	0,-0.5,0
AddVertex,-0.83,0.52,0.02,	0,-0.5,0
AddVertex,-0.83,0.375,0.02,	0,-0.5,0
AddFace,3,2,1,0
LoadTexture,../../Track/TractionMains/Sloup.png,
SetTextureCoordinates,0,0.5,1
SetTextureCoordinates,1,0.5,0
SetTextureCoordinates,2,1,0
SetTextureCoordinates,3,1,1

;;;;;;;;

createMeshBuilder,
AddVertex,0.17,0.375,0.02,	0,-0.5,0
AddVertex,0.17,0.52,0.02,	0,-0.5,0
AddVertex,0.17,0.52,-0.02,	0,-0.5,0
AddVertex,0.17,0.375,-0.02,	0,-0.5,0
AddFace,3,2,1,0
LoadTexture,../../Track/TractionMains/Sloup.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,0.5,0
SetTextureCoordinates,3,0.5,1

createMeshBuilder,
AddVertex,0.13,0.375,0.02,	0,-0.5,0
AddVertex,0.13,0.52,0.02,	0,-0.5,0
AddVertex,0.13,0.52,-0.02,	0,-0.5,0
AddVertex,0.13,0.375,-0.02,	0,-0.5,0
AddFace,0,1,2,3
LoadTexture,../../Track/TractionMains/Sloup.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,0.5,0
SetTextureCoordinates,3,0.5,1

createMeshBuilder,
AddVertex,0.13,0.375,-0.02,	0,-0.5,0
AddVertex,0.13,0.52,-0.02,	0,-0.5,0
AddVertex,0.17,0.52,-0.02,	0,-0.5,0
AddVertex,0.17,0.375,-0.02,	0,-0.5,0
AddFace,0,1,2,3
LoadTexture,../../Track/TractionMains/Sloup.png,
SetTextureCoordinates,0,0.5,1
SetTextureCoordinates,1,0.5,0
SetTextureCoordinates,2,1,0
SetTextureCoordinates,3,1,1

createMeshBuilder,
AddVertex,0.13,0.375,0.02,	0,-0.5,0
AddVertex,0.13,0.52,0.02,	0,-0.5,0
AddVertex,0.17,0.52,0.02,	0,-0.5,0
AddVertex,0.17,0.375,0.02,	0,-0.5,0
AddFace,3,2,1,0
LoadTexture,../../Track/TractionMains/Sloup.png,
SetTextureCoordinates,0,0.5,1
SetTextureCoordinates,1,0.5,0
SetTextureCoordinates,2,1,0
SetTextureCoordinates,3,1,1

;;;;;;;;

createMeshBuilder,
AddVertex,0.87,0.375,0.02,	0,-0.5,0
AddVertex,0.87,0.52,0.02,	0,-0.5,0
AddVertex,0.87,0.52,-0.02,	0,-0.5,0
AddVertex,0.87,0.375,-0.02,	0,-0.5,0
AddFace,3,2,1,0
LoadTexture,../../Track/TractionMains/Sloup.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,0.5,0
SetTextureCoordinates,3,0.5,1

createMeshBuilder,
AddVertex,0.83,0.375,0.02,	0,-0.5,0
AddVertex,0.83,0.52,0.02,	0,-0.5,0
AddVertex,0.83,0.52,-0.02,	0,-0.5,0
AddVertex,0.83,0.375,-0.02,	0,-0.5,0
AddFace,0,1,2,3
LoadTexture,../../Track/TractionMains/Sloup.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,0.5,0
SetTextureCoordinates,3,0.5,1

createMeshBuilder,
AddVertex,0.83,0.375,-0.02,	0,-0.5,0
AddVertex,0.83,0.52,-0.02,	0,-0.5,0
AddVertex,0.87,0.52,-0.02,	0,-0.5,0
AddVertex,0.87,0.375,-0.02,	0,-0.5,0
AddFace,0,1,2,3
LoadTexture,../../Track/TractionMains/Sloup.png,
SetTextureCoordinates,0,0.5,1
SetTextureCoordinates,1,0.5,0
SetTextureCoordinates,2,1,0
SetTextureCoordinates,3,1,1

createMeshBuilder,
AddVertex,0.83,0.375,0.02,	0,-0.5,0
AddVertex,0.83,0.52,0.02,	0,-0.5,0
AddVertex,0.87,0.52,0.02,	0,-0.5,0
AddVertex,0.87,0.375,0.02,	0,-0.5,0
AddFace,3,2,1,0
LoadTexture,../../Track/TractionMains/Sloup.png,
SetTextureCoordinates,0,0.5,1
SetTextureCoordinates,1,0.5,0
SetTextureCoordinates,2,1,0
SetTextureCoordinates,3,1,1

;;;;;;;;

createMeshBuilder,
AddVertex,-0.34,0.4,0.01,	0,-0.5,0
AddVertex,-0.34,0.52,0.01,	0,-0.5,0
AddVertex,-0.34,0.52,-0.01,	0,-0.5,0
AddVertex,-0.34,0.4,-0.01,	0,-0.5,0
AddFace,3,2,1,0
LoadTexture,../../Track/TractionMains/Sloup.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,0.5,0
SetTextureCoordinates,3,0.5,1

createMeshBuilder,
AddVertex,-0.36,0.4,0.01,	0,-0.5,0
AddVertex,-0.36,0.52,0.01,	0,-0.5,0
AddVertex,-0.36,0.52,-0.01,	0,-0.5,0
AddVertex,-0.36,0.4,-0.01,	0,-0.5,0
AddFace,0,1,2,3
LoadTexture,../../Track/TractionMains/Sloup.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,0.5,0
SetTextureCoordinates,3,0.5,1

createMeshBuilder,
AddVertex,-0.36,0.4,-0.01,	0,-0.5,0
AddVertex,-0.36,0.52,-0.01,	0,-0.5,0
AddVertex,-0.34,0.52,-0.01,	0,-0.5,0
AddVertex,-0.34,0.4,-0.01,	0,-0.5,0
AddFace,0,1,2,3
LoadTexture,../../Track/TractionMains/Sloup.png,
SetTextureCoordinates,0,0.5,1
SetTextureCoordinates,1,0.5,0
SetTextureCoordinates,2,1,0
SetTextureCoordinates,3,1,1

createMeshBuilder,
AddVertex,-0.34,0.4,0.01,	0,-0.5,0
AddVertex,-0.34,0.52,0.01,	0,-0.5,0
AddVertex,-0.36,0.52,0.01,	0,-0.5,0
AddVertex,-0.36,0.4,0.01,	0,-0.5,0
AddFace,3,2,1,0
LoadTexture,../../Track/TractionMains/Sloup.png,
SetTextureCoordinates,0,0.5,1
SetTextureCoordinates,1,0.5,0
SetTextureCoordinates,2,1,0
SetTextureCoordinates,3,1,1