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

Separator {
	# Options: ON OFF AUTO
	renderCulling AUTO
	
	OUTPUT_TO Matrix.wrl
	
	DEF BackgroundColor Info {
		string  ".1 .2 .6"
	}

	Material {
		diffuseColor =Color("yellow")
	}

	# Define a triangle
	DEF object Coordinate3 {
		point [1 0 0, 2 0 0, 2 1 0 ] # MFVec3f
	}
	
	# Reflect the triangle and append (we now have two triangles)
	APPEND object:point convert3D(convert4D(object:point)*yzReflect())
	
	# Rotate the two triangles and append (we now have four 4 triangles)
	APPEND object:point convert3D(convert4D(object:point)*yRotate(90'deg))
	
	# Now display the triangles
	
	DEF objectIndex IndexedFaceSet {
		coordIndex [0, 1, 2, 0, -1, 3, 4, 5, 3, -1,
						 6, 7, 8, 6, -1, 9, 10, 11, 9, -1] 
	}
	
	Material {
		diffuseColor =Color("red")
	}

	DEF mirror Coordinate3 {
		point []
	}
	
	SET mirror:point convert3D(convert4D(object:point)*xzReflect())
	
	IndexedFaceSet {
		coordIndex =objectIndex:coordIndex   
	}

}
[ RETURN TO DIRECTORY ]