Metropoli BBS
VIEWER: table.vxr MODE: TEXT (ASCII)
#VRML V1.0 ascii

#This file defines a round table 

Separator {
	# Options: ON OFF AUTO
	renderCulling AUTO
	
	OUTPUT_TO Table.wrl
		
	DEF BackgroundColor Info {
		string  ".8 .8 .8"
	}
	
	Material {
		diffuseColor .8 0 0
	}
	
	PARAMETERS {
		fields [SFFloat topDiameter, SFFloat tableHeight, SFFloat baseHeight,
		SFFloat pedistalRadius, SFFloat pedistalHeight,	SFFloat topHeight]

		topDiameter 48'in
		tableHeight 28'in
		baseHeight 2'in
		pedistalRadius 2'in
		pedistalHeight tableHeight-topHeight-baseHeight
		topHeight 1.5'in
	
		DEF roundTable Separator {
			Separator {
				Translation {
					translation 0 (baseHeight)/2 0
				}
				
				DEF tableBase Cylinder {
					parts ALL
					radius topDiameter*.25
					height baseHeight
				}
			}
		
			Separator {	
				Translation {
						translation 0 baseHeight+(pedistalHeight/2) 0
				}
			
				DEF tablePedistal Cylinder {
						parts ALL
						radius pedistalRadius
						height pedistalHeight
				}
			}
	
			Separator {
				Translation {
					translation 0 baseHeight+pedistalHeight+(topHeight/2) 0
				}
		
				DEF tableTop Cylinder {
					parts ALL
					radius topDiameter/2
					height topHeight
				}
			}
		}
	}
}
[ RETURN TO DIRECTORY ]