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


#VRML V2.0 utf8 
Viewpoint 
{ 
	position 0.0 0.0 5.0 
	description "viewFront" 
} 
 
Shape 
{ 
	appearance Appearance 
	{ 
		material Material  
		{ 
			emissiveColor 1.0 1.0 0.0 
		} 
	} 
	geometry IndexedLineSet  
	{ 
		colorPerVertex FALSE 
		coord Coordinate  
		{ 
			point  
			[ 
				1 1 1, 
				1 1 -1, 
				-1 1 -1, 
				-1 1 1, 
				1 -1 1, 
				1 -1 -1, 
				-1 -1 -1, 
				-1 -1 1 
			] 
		} 
		coordIndex  
		[ 
			0,1,-1, 
			1,2,-1, 
			2,3,-1, 
			3,0,-1, 
			4,5,-1, 
			5,6,-1, 
			6,7,-1, 
			7,4,-1, 
			0,4,-1, 
			1,5,-1, 
			2,6,-1, 
			3,7,-1 
		] 
		color Color  
		{ 
			color  
			[ 
				1 0 0, 
				0 1 0, 
				0 0 1, 
				1 1 0, 
				1 0 1, 
				0 1 1 
			] 
		} 
		colorIndex  
		[ 
			0,1,2,3, 
			2,3,0,1, 
			4,5,4,5 
		]	 
	} 
}