#VRML V1.0 ascii

#Definicion del color del fondo
#DEF BackgroundColor Info{
#string "0.5 0.7 0.8"
#}


########################################
#Definicion de las barras verticales   #
########################################

DEF BarraVertical Separator{


Cube{
	height	16
	width	0.4
	depth	0.4
	}

Transform{
	translation 0 -7.8 0
	}#fin Transform

Cube{
	height	0.4
	width	0.8
	depth	0.8
	}

}#Fin BarraVertical

#Segunda barra
Transform{
	translation 20 0 0
	}#fin Transform

USE BarraVertical

#Tercera barra
Transform{
	translation 0 0 20
	}#fin Transform

USE BarraVertical

#Cuarta barra
Transform{
	translation -20 0 0
	}#fin Transform

USE BarraVertical

########################################
#Definicion de las barras horizontales #
########################################

DEF BarraHorizontal Separator{

Transform{
	translation 10 8 0
	}#fin Transform

Cube{
	height	0.4
	width	20
	depth	0.4
	}


}#Fin BarraHorizontal

#Segunda barra horizontal
Transform{
	rotation 0 1 0 1.57075
	}#fin Transform

USE BarraHorizontal

#Tercera barra horizontal
Transform{
	translation 0 0 20
	}#fin Transform

USE BarraHorizontal

#Cuarta barra horizontal
Transform{
	rotation 0 1 0 -1.57075
	translation 20 0 -20
	}#fin Transform

USE BarraHorizontal

#Barra horizontal central
Transform{
	#rotation 0 1 0 -1.57075
	translation 0 0 4
	}#fin Transform

USE BarraHorizontal

########################################
#Definicion del suelo		       #
########################################

DEF Suelo Separator{

#Texture2{filename "Gray_roc.jpg"}

Material{
	diffuseColor 0 0 1
	}
Transform{
	translation 10 -8.2 5
	}#fin Transform

Cube{
	height	0.2
	width	25
	depth	25
	}


}#Fin Suelo

########################################
#Definicion de la camara   	       #
########################################

DEF Camara Separator{

#Material { diffuseColor 0 1 0}
#FontStyle { size 1 family SERIF style BOLD }
#AsciiText {string "CAMARA" justification CENTER}

Material { diffuseColor 128 128 128}

Transform{

	rotation 0 0 1 3.1415
	translation 10 6 1.3

	}#fin Transform

Transform{
	rotation 1 0 0 0.5236
	}#fin Transform


########################################
#Definicion del soporte de la camara   #
########################################

DEF Soporte Separator{


Transform{
	translation 0 -0.8 -0.3

}#fin Transform

Cube{
	height 1.5
	width 0.8
	depth 0.1
	}

Transform{
	translation 0 -1.35 0.35
	rotation 1 0 0 -0.5235
	#translation 0. -0.5 0
}#fin Transform

Cube{
	height 1.5
	width 0.8
	depth 0.1
	}


}#Fin soporte

########################################
#Definicion del cuerpo de la camara    #
########################################

DEF Cuerpo Separator{

Cube{
	height	2
	width	0.6
	depth	0.6
	}

}#Fin Cuerpo

########################################
#Definicion de la optica               #
########################################

DEF Optica Separator{

#Material { diffuseColor 20 36 36}

Transform{
	translation 0 1.1 0
	}#fin Transform

Cylinder{
	height	0.2
	radius	0.4
	}
Transform{
	translation 0 0.8 0
	}#fin Transform

Cylinder{
	#parts SIDES TOP
	height	1.4
	radius	0.5
	}
#Material { diffuseColor 128 128 128}

}#Fin Cuerpo

}#Fin camara

########################################
#Definicion de la mesa giratoria       #
########################################

DEF Mesa Separator{

Transform{
	translation 10 -8.0 5
	}#fin Transform

#Plataforma sobre la que se sustenta la mesa
Cube{
	height	0.4
	width	2
	depth	2
	}

#Iluminacion

Separator {
Material { diffuseColor 1.0 1.0 0.0}

Transform{
	translation 5 0 0
	}#fin Transform


Cube{
	height	0.4
	width	5
	depth	5
	}

#Transform{
#	translation 0 0 0
#	}#fin Transform


}#Fin Separator

#Cilindro representativo de la mesa 

Transform{
	translation 0 0.4 0
	}#fin Transform

Cylinder{
	height	0.3
	radius	3
	}
#Cada uno de los cilindros sobre los que se colocan piezas

DEF CilindrosMesa Separator{

Material{
	diffuseColor 1 0 0
}

Transform{
	translation 2.3 0.2 0
	}#fin Transform

Cylinder{
	height	0.2
	radius	0.6
	}
}#Fin CilindrosMesa

#definicion de cilidros con plataforma

DEF CilindrosMesaPlat1 Separator{

Transform{
	translation 2.3 0.2 0
	}#fin Transform

Material{
	diffuseColor 1 0 0
	}
Cylinder{
	parts ALL
	height	0.3
	radius	0.6
	}

Material{
	diffuseColor 0 1 1
	}

Transform{
	translation 1.5 0 0
	}#fin Transform

Cube{
	height	0.1
	width	5
	depth	2

}
}#Fin CilindrosMesaPlat1

#Primer mensaje. La posicion relativa es diferente por estar definido como un separator

Transform{
	translation 1.8 0.5 0
	}#fin Transform

Material { diffuseColor 0 1 0}
FontStyle { size 1 family SERIF style BOLD }
AsciiText {string "(25,15)" justification CENTER}

#Restauramos la posicion anterior 
Material { diffuseColor 128 128 128}
Transform{
	translation 4 -0 0
	}#fin Transform

Material { diffuseColor 0 1 0}
FontStyle { size 1 family SERIF style BOLD }
AsciiText {string "(-21,16)" justification CENTER}

#Restauramos la posicion anterior 
Material { diffuseColor 128 128 128}
Transform{
	translation -5.8 -0.5 0
	}#fin Transform


#Segundo cilindro
Transform{
	translation -2.3 0 2.3
	}#fin Transform

USE CilindrosMesa

#Segindo mensaje

Transform{
	translation 2.3 0.5 0
	}#fin Transform

Material { diffuseColor 0 1 0}
FontStyle { size 1 family SERIF style BOLD }
AsciiText {string "" justification CENTER}

#Restauramos la posicion anterior 
Material { diffuseColor 128 128 128}
Transform{
	translation -2.3 -0.5 0
	}#fin Transform


#TercerCilindro
Transform{
	translation -2.3 0 -2.3
	}#fin Transform

#definicion de cilidros con plataforma

DEF CilindrosMesaPlat2 Separator{

Transform{
	translation 2.3 0.2 0
	}#fin Transform

Material{
	diffuseColor 1 0 0
	}
Cylinder{
	parts ALL
	height	0.3
	radius	0.6
	}

Material{
	diffuseColor 0 1 1
	}

Transform{
	translation -1.5 0 0
	}#fin Transform

Cube{
	height	0.1
	width	5
	depth	2

}
}#Fin CilindrosMesaPlat2

#Tercer mensaje

Transform{
	translation 2.3 0.5 0
	}#fin Transform

Material { diffuseColor 0 1 0}
FontStyle { size 1 family SERIF style BOLD }
AsciiText {string "" justification CENTER}

#Restauramos la posicion anterior 
Material { diffuseColor 128 128 128}
Transform{
	translation -2.3 -0.5 0
	}#fin Transform

#Cuarto Cilindro
Transform{
	translation 2.3 0 -2.3
	}#fin Transform

USE CilindrosMesa

#Cuarto mensaje

Transform{
	translation 2.3 0.5 0
	}#fin Transform

Material { diffuseColor 0 1 0}
FontStyle { size 1 family SERIF style BOLD }
AsciiText {string "" justification CENTER}

DEF Paneles Separator{

#Primer panel

	Material{
		diffuseColor 0 0 0
	}
	
	Transform{

		translation -7.5 1.6 13
	}

Cube{
	width 5
	height 5
	depth 0.1
	}
}

#Segundo panel

	Material{
		diffuseColor 0 0 0
	}
	
	Transform{

		translation -10 1.6 10.7
	}


Cube{
	width 0.1
	height 5
	depth 5
	}
}

#Cubos

DEF cubos Separator{
#Material{
#	diffuseColor 1 0 0
#	}
	
Transform{
	translation 3 -8 16
	}

Material { diffuseColor 0 1 0}
FontStyle { size 1 family SERIF style BOLD }
AsciiText {string "(265,250)" justification CENTER}

#segundo cubo
#Material{
#	diffuseColor 1 0 0
#	}
	
Transform{
	translation 14 0 0
	}

Material { diffuseColor 0 1 0}
FontStyle { size 1 family SERIF style BOLD }
AsciiText {string "(-170,280)" justification CENTER}

#tercer cubo
#Material{
#	diffuseColor 1 0 0
#	}
	
Transform{
	translation 0 0 -20
	}

Material { diffuseColor 0 1 0}
FontStyle { size 1 family SERIF style BOLD }
AsciiText {string "(-170,-280)" justification CENTER}

#tercer cubo
#Material{
#	diffuseColor 1 0 0
#	}
	
Transform{
	translation -14 0 0
	}

Material { diffuseColor 0 1 0}
FontStyle { size 1 family SERIF style BOLD }
AsciiText {string "(295,-260)" justification CENTER}


}#Fin Mesa

