;Supports
CreateMeshBuilder
Cylinder, 8, 0.12, 0.12, 4
Translate, 0.22, 3.09, 6.25
LoadTexture,stozar.png,
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1
SetTextureCoordinates,2,0.25,0 
SetTextureCoordinates,3,0.25,1
SetTextureCoordinates,4,0.5,0 
SetTextureCoordinates,5,0.5,1 
SetTextureCoordinates,6,0.75,0 
SetTextureCoordinates,7,0.75,1 
SetTextureCoordinates,8,1,0 
SetTextureCoordinates,9,1,1 
SetTextureCoordinates,10,0.75,0 
SetTextureCoordinates,11,0.75,1
SetTextureCoordinates,12,0.5,0 
SetTextureCoordinates,13,0.5,1 
SetTextureCoordinates,14,0.25,0 
SetTextureCoordinates,15,0.25,1  

CreateMeshBuilder
Cylinder, 8, 0.12, 0.12, 4
Translate, 2.96, 3.09, 6.25
LoadTexture,stozar.png,
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1
SetTextureCoordinates,2,0.25,0 
SetTextureCoordinates,3,0.25,1
SetTextureCoordinates,4,0.5,0 
SetTextureCoordinates,5,0.5,1 
SetTextureCoordinates,6,0.75,0 
SetTextureCoordinates,7,0.75,1 
SetTextureCoordinates,8,1,0 
SetTextureCoordinates,9,1,1 
SetTextureCoordinates,10,0.75,0 
SetTextureCoordinates,11,0.75,1
SetTextureCoordinates,12,0.5,0 
SetTextureCoordinates,13,0.5,1 
SetTextureCoordinates,14,0.25,0 
SetTextureCoordinates,15,0.25,1 

CreateMeshBuilder
Cylinder, 8, 0.12, 0.12, 4
Translate, 0.22, 3.09, 18.75
LoadTexture,stozar.png,
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1
SetTextureCoordinates,2,0.25,0 
SetTextureCoordinates,3,0.25,1
SetTextureCoordinates,4,0.5,0 
SetTextureCoordinates,5,0.5,1 
SetTextureCoordinates,6,0.75,0 
SetTextureCoordinates,7,0.75,1 
SetTextureCoordinates,8,1,0 
SetTextureCoordinates,9,1,1 
SetTextureCoordinates,10,0.75,0 
SetTextureCoordinates,11,0.75,1
SetTextureCoordinates,12,0.5,0 
SetTextureCoordinates,13,0.5,1 
SetTextureCoordinates,14,0.25,0 
SetTextureCoordinates,15,0.25,1 

CreateMeshBuilder
Cylinder, 8, 0.12, 0.12, 4
Translate, 2.96, 3.09, 18.75
LoadTexture,stozar.png,
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1
SetTextureCoordinates,2,0.25,0 
SetTextureCoordinates,3,0.25,1
SetTextureCoordinates,4,0.5,0 
SetTextureCoordinates,5,0.5,1 
SetTextureCoordinates,6,0.75,0 
SetTextureCoordinates,7,0.75,1 
SetTextureCoordinates,8,1,0 
SetTextureCoordinates,9,1,1 
SetTextureCoordinates,10,0.75,0 
SetTextureCoordinates,11,0.75,1
SetTextureCoordinates,12,0.5,0 
SetTextureCoordinates,13,0.5,1 
SetTextureCoordinates,14,0.25,0 
SetTextureCoordinates,15,0.25,1 

;sklenena vypln
CreateMeshBuilder
Cube,0.69,0.01,12.49
Rotate,0,0,1,25
Translate, 0.97,5.39,12.5
AddFace, 0, 1, 2, 3
GenerateNormals,
Setcolor,0,130,100,50

CreateMeshBuilder
Cube,0.69,0.01,12.49
Rotate,0,0,1,-25
Translate, 2.23,5.39,12.5
AddFace, 0, 1, 2, 3
GenerateNormals,
Setcolor,0,130,100,50

;nosna konstrukce skla
CreateMeshBuilder
Cube,0.7,0.012,0.05
Rotate,0,0,1,25
Translate, 0.97,5.39,0.05
AddFace, 0, 1, 2, 3
GenerateNormals,
Setcolor,20,20,20

CreateMeshBuilder
Cube,0.7,0.012,0.05
Rotate,0,0,1,25
Translate, 0.97,5.39,5
AddFace, 0, 1, 2, 3
GenerateNormals,
Setcolor,20,20,20

CreateMeshBuilder
Cube,0.7,0.012,0.05
Rotate,0,0,1,25
Translate, 0.97,5.39,10
AddFace, 0, 1, 2, 3
GenerateNormals,
Setcolor,20,20,20

CreateMeshBuilder
Cube,0.7,0.012,0.05
Rotate,0,0,1,25
Translate, 0.97,5.39,15
AddFace, 0, 1, 2, 3
GenerateNormals,
Setcolor,20,20,20

CreateMeshBuilder
Cube,0.7,0.012,0.05
Rotate,0,0,1,25
Translate, 0.97,5.39,20
AddFace, 0, 1, 2, 3
GenerateNormals,
Setcolor,20,20,20

CreateMeshBuilder
Cube,0.7,0.012,0.05
Rotate,0,0,1,-25
Translate, 2.23,5.39,0.05
AddFace, 0, 1, 2, 3
GenerateNormals,
Setcolor,20,20,20

CreateMeshBuilder
Cube,0.7,0.012,0.05
Rotate,0,0,1,-25
Translate, 2.23,5.39,5
AddFace, 0, 1, 2, 3
GenerateNormals,
Setcolor,20,20,20

CreateMeshBuilder
Cube,0.7,0.012,0.05
Rotate,0,0,1,-25
Translate, 2.23,5.39,10
AddFace, 0, 1, 2, 3
GenerateNormals,
Setcolor,20,20,20

CreateMeshBuilder
Cube,0.7,0.012,0.05
Rotate,0,0,1,-25
Translate, 2.23,5.39,15
AddFace, 0, 1, 2, 3
GenerateNormals,
Setcolor,20,20,20

CreateMeshBuilder
Cube,0.7,0.012,0.05
Rotate,0,0,1,-25
Translate, 2.23,5.39,20
AddFace, 0, 1, 2, 3
GenerateNormals,
Setcolor,20,20,20

CreateMeshBuilder
Cube,0.03,0.015,12.5
Rotate,0,0,1,25
Translate, 1.58,5.675,12.5
AddFace, 0, 1, 2, 3
GenerateNormals,
Setcolor,20,20,20

CreateMeshBuilder
Cube,0.03,0.015,12.5
Rotate,0,0,1,-25
Translate, 1.62,5.675,12.5
AddFace, 0, 1, 2, 3
GenerateNormals,
Setcolor,20,20,20

;nosne tramy
CreateMeshBuilder
AddVertex,0.05,4.9,25.1
AddVertex,0.05,5.1,25.1
AddVertex,0.05,5.1,0
AddVertex,0.05,4.9,0
AddFace,0,1,2,3
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0.2,8
SetTextureCoordinates,1,0,8
SetTextureCoordinates,2,0,0
SetTextureCoordinates,3,0.2,0

CreateMeshBuilder
AddVertex,0.05,4.9,0
AddVertex,0.05,4.9,25.1
AddVertex,0.35,4.9,25.1
AddVertex,0.35,4.9,0
AddFace,3,2,1,0
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0.2,0
SetTextureCoordinates,1,0.2,8
SetTextureCoordinates,2,0.8,8
SetTextureCoordinates,3,0.8,0

CreateMeshBuilder
AddVertex,0.35,4.9,0
AddVertex,0.35,5.1,0
AddVertex,0.35,5.1,25.1
AddVertex,0.35,4.9,25.1
AddFace,0,1,2,3
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0.8,0
SetTextureCoordinates,1,1,0
SetTextureCoordinates,2,1,8
SetTextureCoordinates,3,0.8,8

CreateMeshBuilder
AddVertex,0.05,5.1,0
AddVertex,0.05,5.1,25.1
AddVertex,0.35,5.1,25.1
AddVertex,0.35,5.1,0
AddFace,0,1,2,3
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0.2,0
SetTextureCoordinates,1,0.2,8
SetTextureCoordinates,2,0.8,8
SetTextureCoordinates,3,0.8,0

CreateMeshBuilder
AddVertex,0.05,4.9,0
AddVertex,0.05,5.1,0
AddVertex,0.35,5.1,0
AddVertex,0.35,4.9,0
AddFace,0,1,2,3
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0.2,0.7
SetTextureCoordinates,1,0.2,0.9
SetTextureCoordinates,2,0.8,0.9
SetTextureCoordinates,3,0.8,0.7

CreateMeshBuilder
AddVertex,0.05,4.9,25.1
AddVertex,0.05,5.1,25.1
AddVertex,0.35,5.1,25.1
AddVertex,0.35,4.9,25.1
AddFace,3,2,1,0
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0.2,0.2
SetTextureCoordinates,1,0.2,0.4
SetTextureCoordinates,2,0.8,0.4
SetTextureCoordinates,3,0.8,0.2

;#2
;nosne tramy
CreateMeshBuilder
AddVertex,2.85,4.9,25.1
AddVertex,2.85,5.1,25.1
AddVertex,2.85,5.1,0
AddVertex,2.85,4.9,0
AddFace,0,1,2,3
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0.2,8
SetTextureCoordinates,1,0,8
SetTextureCoordinates,2,0,0
SetTextureCoordinates,3,0.2,0

CreateMeshBuilder
AddVertex,2.85,4.9,0
AddVertex,2.85,4.9,25.1
AddVertex,3.15,4.9,25.1
AddVertex,3.15,4.9,0
AddFace,3,2,1,0
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0.2,0
SetTextureCoordinates,1,0.2,8
SetTextureCoordinates,2,0.8,8
SetTextureCoordinates,3,0.8,0

CreateMeshBuilder
AddVertex,3.15,4.9,0
AddVertex,3.15,5.1,0
AddVertex,3.15,5.1,25.1
AddVertex,3.15,4.9,25.1
AddFace,0,1,2,3
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0.8,0
SetTextureCoordinates,1,1,0
SetTextureCoordinates,2,1,8
SetTextureCoordinates,3,0.8,8

CreateMeshBuilder
AddVertex,2.85,5.1,0
AddVertex,2.85,5.1,25.1
AddVertex,3.15,5.1,25.1
AddVertex,3.15,5.1,0
AddFace,0,1,2,3
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0.2,0
SetTextureCoordinates,1,0.2,8
SetTextureCoordinates,2,0.8,8
SetTextureCoordinates,3,0.8,0

CreateMeshBuilder
AddVertex,2.85,4.9,0
AddVertex,2.85,5.1,0
AddVertex,3.15,5.1,0
AddVertex,3.15,4.9,0
AddFace,0,1,2,3
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0.2,0.7
SetTextureCoordinates,1,0.2,0.9
SetTextureCoordinates,2,0.8,0.9
SetTextureCoordinates,3,0.8,0.7

CreateMeshBuilder
AddVertex,2.85,4.9,25.1
AddVertex,2.85,5.1,25.1
AddVertex,3.15,5.1,25.1
AddVertex,3.15,4.9,25.1
AddFace,3,2,1,0
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0.2,0.2
SetTextureCoordinates,1,0.2,0.4
SetTextureCoordinates,2,0.8,0.4
SetTextureCoordinates,3,0.8,0.2

;traverzy
CreateMeshBuilder
AddVertex,0.35,4.9,6.15
AddVertex,2.85,4.9,6.15
AddVertex,2.85,4.9,6.35
AddVertex,0.35,4.9,6.35
AddFace,0,1,2,3
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1
SetTextureCoordinates,2,1,1
SetTextureCoordinates,3,1,0

CreateMeshBuilder
AddVertex,0.35,5.1,6.15
AddVertex,2.85,5.1,6.15
AddVertex,2.85,4.9,6.15
AddVertex,0.35,4.9,6.15
AddFace,0,1,2,3
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1
SetTextureCoordinates,2,1,1
SetTextureCoordinates,3,1,0

CreateMeshBuilder
AddVertex,0.35,5.1,6.35
AddVertex,2.85,5.1,6.35
AddVertex,2.85,4.9,6.35
AddVertex,0.35,4.9,6.35
AddFace,3,2,1,0
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1
SetTextureCoordinates,2,1,1
SetTextureCoordinates,3,1,0

CreateMeshBuilder
AddVertex,0.35,5.1,6.15
AddVertex,2.85,5.1,6.15
AddVertex,2.85,5.1,6.35
AddVertex,0.35,5.1,6.35
AddFace,3,2,1,0
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1
SetTextureCoordinates,2,1,1
SetTextureCoordinates,3,1,0

;#2
CreateMeshBuilder
AddVertex,0.35,4.9,18.65
AddVertex,2.85,4.9,18.65
AddVertex,2.85,4.9,18.85
AddVertex,0.35,4.9,18.85
AddFace,0,1,2,3
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1
SetTextureCoordinates,2,1,1
SetTextureCoordinates,3,1,0

CreateMeshBuilder
AddVertex,0.35,5.1,18.65
AddVertex,2.85,5.1,18.65
AddVertex,2.85,4.9,18.65
AddVertex,0.35,4.9,18.65
AddFace,0,1,2,3
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1
SetTextureCoordinates,2,1,1
SetTextureCoordinates,3,1,0

CreateMeshBuilder
AddVertex,0.35,5.1,18.85
AddVertex,2.85,5.1,18.85
AddVertex,2.85,4.9,18.85
AddVertex,0.35,4.9,18.85
AddFace,3,2,1,0
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1
SetTextureCoordinates,2,1,1
SetTextureCoordinates,3,1,0

CreateMeshBuilder
AddVertex,0.35,5.1,18.65
AddVertex,2.85,5.1,18.65
AddVertex,2.85,5.1,18.85
AddVertex,0.35,5.1,18.85
AddFace,3,2,1,0
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1
SetTextureCoordinates,2,1,1
SetTextureCoordinates,3,1,0

;plechy
CreateMeshBuilder
AddVertex,-1.8,5.8,25.1
AddVertex,-1.8,5.8,0
AddVertex,0.05,5.1,0
AddVertex,0.05,5.1,25.1
AddFace,0,1,2,3
AddFace,3,2,1,0
GenerateNormals,
LoadTexture,VranovRoofSheetA.png
SetTextureCoordinates,0,1,15
SetTextureCoordinates,1,1,0
SetTextureCoordinates,2,0,0
SetTextureCoordinates,3,0,15

;nosniky plechu leva
CreateMeshBuilder
AddVertex,-1.8,5.7,6.15,	0,-1,0
AddVertex,-1.8,5.8,6.15,	0,-1,0
AddVertex,0.05,5.1,6.15,	0,-1,0
AddVertex,0.05,4.9,6.15,	0,-1,0
AddFace,0,1,2,3
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,0.1
SetTextureCoordinates,2,1,0.1
SetTextureCoordinates,3,1,0

CreateMeshBuilder
AddVertex,-1.8,5.8,6.35,	0,-1,0
AddVertex,0.05,5.1,6.35,	0,-1,0
AddVertex,0.05,4.9,6.35,	0,-1,0
AddVertex,-1.8,5.7,6.35,	0,-1,0
AddFace,3,2,1,0
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,0.1
SetTextureCoordinates,2,1,0.1
SetTextureCoordinates,3,1,0

CreateMeshBuilder
AddVertex,-1.8,5.7,6.35
AddVertex,-1.8,5.7,6.15
AddVertex,0.05,4.9,6.15
AddVertex,0.05,4.9,6.35
AddFace,0,1,2,3
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,0.1
SetTextureCoordinates,2,1,0.1
SetTextureCoordinates,3,1,0

CreateMeshBuilder
AddVertex,-1.8,5.7,6.35
AddVertex,-1.8,5.8,6.35,	0,1,0
AddVertex,-1.8,5.8,6.15,	0,1,0
AddVertex,-1.8,5.7,6.15
AddFace,0,1,2,3
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,0.1
SetTextureCoordinates,2,1,0.1
SetTextureCoordinates,3,1,0

CreateMeshBuilder
AddVertex,-1.8,5.7,18.65,	0,-1,0
AddVertex,-1.8,5.8,18.65,	0,-1,0
AddVertex,0.05,5.1,18.65,	0,-1,0
AddVertex,0.05,4.9,18.65,	0,-1,0
AddFace,0,1,2,3
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,0.1
SetTextureCoordinates,2,1,0.1
SetTextureCoordinates,3,1,0

CreateMeshBuilder
AddVertex,-1.8,5.7,18.85,	0,-1,0
AddVertex,-1.8,5.8,18.85,	0,-1,0
AddVertex,0.05,5.1,18.85,	0,-1,0
AddVertex,0.05,4.9,18.85,	0,-1,0
AddFace,3,2,1,0
GenerateNormals,
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,0.1
SetTextureCoordinates,2,1,0.1
SetTextureCoordinates,3,1,0

CreateMeshBuilder
AddVertex,-1.8,5.7,18.85
AddVertex,-1.8,5.7,18.65
AddVertex,0.05,4.9,18.65
AddVertex,0.05,4.9,18.85
AddFace,0,1,2,3
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,0.1
SetTextureCoordinates,2,1,0.1
SetTextureCoordinates,3,1,0

CreateMeshBuilder
AddVertex,-1.8,5.7,18.85
AddVertex,-1.8,5.8,18.85,	0,1,0
AddVertex,-1.8,5.8,18.65,	0,1,0
AddVertex,-1.8,5.7,18.65
AddFace,0,1,2,3
GenerateNormals,
LoadTexture,Vranov_Roof_Beam.png
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,0.1
SetTextureCoordinates,2,1,0.1
SetTextureCoordinates,3,1,0