www.pudn.com > vrmlExample.rar > 5-2.wrl


#VRML V2.0 utf8 
Viewpoint  
{ 
	fieldOfView    0.785398 
	jump           TRUE 
	orientation    0 0 1  0 
	position       0 2 10 
	description    " Front View" 
} 
DirectionalLight  
{ 
	direction 0  -1 0 
} 
Shape  
{ 
	appearance Appearance  
	{ 
		material Material  
		{ 
			diffuseColor 0.7 0.7 0.7 
		} 
	} 
	geometry Cylinder  
	{ 
		radius  2.5 
		height .5 
		side TRUE 
		top TRUE 
		bottom TRUE 
	} 
} 
Transform { 
	translation 0 .5 0 
	children Shape  
	{ 
		appearance Appearance  
		{ 
			material Material  
			{ 
				diffuseColor 0.7 0.7 0.7 
			} 
		} 
		geometry Cylinder  
		{ 
			radius 2 
			height 0.5 
			bottom TRUE 
			top TRUE 
			side TRUE 
		} 
	} 
} 
Transform  
{ 
	translation 0 1 0 
	children Shape  
	{ 
		appearance Appearance  
		{ 
			material Material  
			{ 
				diffuseColor 0.7 0.7 0.7 
			} 
		} 
		geometry Cylinder  
		{ 
			radius 1.5 
			height 0.5 
			bottom TRUE 
			top TRUE 
			side TRUE 
		} 
	} 
} 
Group  
{ 
	children  
	[ 
		Transform  
		{ 
			translation 0.7 1.7 0.7 
			children  
			[ 
				Shape  
				{ 
					appearance Appearance  
					{ 
						material Material  
						{ 
							diffuseColor 0.7 0.7 0.7 
						} 
					} 
					geometry Cylinder  
					{ 
						radius 0.1 
						height 1 
						bottom TRUE 
						top TRUE 
						side TRUE 
					} 
				} 
				Transform  
				{		 
					translation 0 0.7 0 
					children Shape  
					{ 
						appearance Appearance  
						{ 
							material Material  
							{ 
								diffuseColor 1 0.3 0.2 
							} 
						} 
						geometry Sphere  
						{ 
							radius 0.15 
						} 
					} 
				}			 
			] 
		} 
		Transform  
		{ 
			translation -0.7 1.7 0.7 
			children  
			[ 
				Shape  
				{ 
					appearance Appearance  
					{ 
						material Material  
						{ 
							diffuseColor 0.7 0.7 0.7 
						} 
					} 
					geometry Cylinder  
					{ 
						radius .1 
						height 1 
						bottom TRUE 
						top TRUE 
						side TRUE 
					} 
				} 
				Transform  
				{		 
					translation 0 .7 0 
					children 
					Shape  
					{ 
						appearance Appearance  
						{ 
							material Material  
							{ 
								diffuseColor 1 0.3 0.2 
							} 
						} 
						geometry Sphere  
						{ 
							radius 0.15 
						} 
					} 
				} 
			] 
		} 
		Transform  
		{ 
			translation 0.7 1.7 -0.7 
			children  
			[ 
				Shape  
				{ 
					appearance Appearance  
					{ 
						material Material  
						{ 
							diffuseColor 0.7 0.7 0.7 
						} 
					} 
					geometry Cylinder  
					{ 
						radius 0.1 
						height 1 
						bottom TRUE 
						top TRUE 
						side TRUE 
					} 
				} 
				Transform  
				{		 
					translation 0 0.7 0 
					children 
					Shape  
					{ 
						appearance Appearance  
						{ 
							material Material  
							{ 
								diffuseColor 1 0.3 0.2 
							} 
						} 
						geometry Sphere  
						{ 
							radius 0.15 
						} 
					} 
				} 
			] 
		} 
		Transform  
		{ 
			translation -0.7 1.7 -0.7 
			children  
			[ 
				Shape  
				{ 
					appearance Appearance  
					{ 
						material Material  
						{ 
							diffuseColor .7 .7 .7 
						} 
					} 
					geometry Cylinder  
					{ 
						radius .1 
						height 1 
						bottom TRUE 
						top TRUE 
						side TRUE 
					} 
				} 
				Transform  
				{		 
					translation 0 .7 0 
					children Shape  
					{ 
						appearance Appearance  
						{ 
							material Material  
							{ 
								diffuseColor 1 .3 .2 
							} 
						} 
						geometry Sphere  
						{ 
							radius .15 
						} 
					} 
				}				 
			] 
		} 
		Transform  
		{ 
			translation .9 1.7 0 
			children  
			[ 
				Shape  
				{ 
					appearance Appearance  
					{ 
						material Material  
						{ 
							diffuseColor .7 .7 .7 
						} 
					} 
					geometry Cylinder  
					{ 
						radius .1 
						height 1 
						bottom TRUE 
						top TRUE 
						side TRUE 
					} 
				} 
				Transform  
				{		 
					translation 0 .7 0 
					children Shape  
					{ 
						appearance Appearance  
						{ 
							material Material  
							{ 
								diffuseColor 1 .3 .2 
							} 
						} 
						geometry Sphere  
						{ 
							radius .15 
						} 
					} 
				}				 
			] 
		} 
		Transform  
		{ 
			translation 0 1.7 .9 
			children  
			[ 
				Shape  
				{ 
					appearance Appearance  
					{ 
						material Material  
						{ 
							diffuseColor .7 .7 .7 
						} 
					} 
					geometry Cylinder  
					{ 
						radius .1 
						height 1 
						bottom TRUE 
						top TRUE 
						side TRUE 
					} 
				} 
				Transform  
				{		 
					translation 0 .7 0 
					children Shape  
					{ 
						appearance Appearance  
						{ 
							material Material  
							{ 
								diffuseColor 1 .3 .2 
							} 
						} 
						geometry Sphere  
						{ 
							radius .15 
						} 
					} 
				} 
			] 
		} 
		Transform  
		{ 
			translation 0 1.7 -.9 
			children  
			[ 
				Shape  
				{ 
					appearance Appearance  
					{ 
						material Material  
						{ 
							diffuseColor .7 .7 .7 
						} 
					} 
					geometry Cylinder  
					{ 
						radius .1 
						height 1 
						bottom TRUE 
						top TRUE 
						side TRUE 
					} 
				} 
				Transform  
				{	 
					translation 0 .7 0 
					children Shape  
					{ 
						appearance Appearance  
						{ 
							material Material  
							{ 
								diffuseColor 1 .3 .2 
							} 
						} 
						geometry Sphere  
						{ 
							radius .15 
						} 
					} 
				} 
			] 
		} 
		Transform  
		{ 
			translation -.9 1.7 0 
			children  
			[ 
				Shape  
				{ 
					appearance Appearance  
					{ 
						material Material  
						{ 
							diffuseColor .7 .7 .7 
						} 
					} 
					geometry Cylinder  
					{ 
						radius .1 
						height 1 
						bottom TRUE 
						top TRUE 
						side TRUE 
					} 
				} 
				Transform  
				{		 
					translation 0 .7 0 
					children Shape  
					{ 
						appearance Appearance  
						{ 
							material Material  
							{ 
								diffuseColor 1 .3 .2 
							} 
						} 
						geometry Sphere  
						{ 
							radius .15 
						} 
					} 
				}				 
			] 
		} 
	] 
}