from larlib import *
from pyplasm import *
from Elementidicostruzione_Colonna import *

def scale_esterne():
	scalino = CUBOID([16.5,1,6])
	#VIEW(scalino)
	scale = STRUCT(NN(8)([scalino,T([2,3])([1,2])]))
	scale = TEXTURE('\windows\system32\Github\Scale.jpg')(scale)

	#VIEW(scale)
	Colonna_Laterale = columna(2,8,1)
	Colonna_Laterale = T(1)(2)(Colonna_Laterale)
	#Colonne = STRUCT(NN(2)([Colonna_Laterale,T([1,3])([16.5,1])]))
	Colonna = T(1)(16.5)(Colonna_Laterale)
	Colonne = STRUCT([Colonna,Colonna_Laterale])
	Colonne = R([2,3])(PI/2)(Colonne)
	Colonne = R([2,3])(PI/2)(Colonne)
	Colonne = R([2,3])(PI/2)(Colonne)
	Colonne = TEXTURE('\windows\system32\Github\Scale.jpg')(Colonne)

	#Colonne = R([1,3])(PI/2)(Colonne)
	Final = STRUCT([Colonne,scale])
	VIEW(Final)
	Mura = CUBOID([1,16,20])
	Mura = R([2,3])(0)(Mura)
	#Mura = T([1,3])([-1,3])(Mura)
	Mura = TEXTURE('\windows\system32\Github\Muro.jpg')(Mura)
	Mura = T(3)(1.5)(Mura)
	Mura_2 = T(1)(16.5)(Mura)
	Mura_2 = TEXTURE('\windows\system32\Github\Muro.jpg')(Mura_2)
	Final_2 = STRUCT([Final,Mura,Mura_2])
	VIEW(Final_2)
	#Strutt = CUBOID([20,10,10])
	#Parte_Sotto = DIFFERENCE([Strutt,scale])
	#VIEW(STRUCT([Parte_Sotto,Final_2]))
	Muro_Ob = CUBOID([1,5,20])
	Muro_Ob = R([2,3])(11*PI/6)(Muro_Ob)
	Muro_Ob = T(2)(10.5)(Muro_Ob)
	Mura = DIFFERENCE([Mura,Muro_Ob])
	Mura = TEXTURE('\windows\system32\Github\Muro.jpg')(Mura)
	Mura = T(1)(-0.5)(Mura)
	Muro_Ob_1 = CUBOID([1,5,20])
	Muro_Ob_1 = R([2,3])(11*PI/6)(Muro_Ob_1)
	Muro_Ob_2 = T([1,2])([16.5,10.5])(Muro_Ob_1)
	Mura_2 = DIFFERENCE([Mura_2,Muro_Ob_2])
	Mura_2 = TEXTURE('\windows\system32\Github\Muro.jpg')(Mura_2)
	Final_2 = STRUCT([Final,Mura,Mura_2])
	#VIEW(Final_2)
	Prato = CUBOID([50,1,50])
	Prato = TEXTURE('\windows\system32\Github\Prato.jpg')(Prato)
	Final_3 = STRUCT([Final_2,Prato])
	#VIEW(Final_3)
	return Final_3