function TerrainBufferGeometry(width, height, widthSegments, heightSegments, scale, image)
{
	BufferGeometry.call(this);

	this.type = "TerrainBufferGeometry";

	this.parameters =
	{
		width: width || 1,
		height: height || 1,
		widthSegments: widthSegments || 10,
		heightSegments: heightSegments || 10,
		scale: scale || 1
	};

	this.image = image;


	this.generate();
}
Terrrain geometry is a plane like geometry deformed by a height map texture.

This geometry type can be used to create large terrains. Its possible to generate the height data using scripts and create terrain dynamically.

@class TerrainBufferGeometry
@constructor
@param {number} width Width of the terrain.
@param {number} height Height of the terrain.
@param {number} widthSegments How many segments compose the terrain width.
@param {number} heightSegments How many segments compose the terrain height.
@param {number} scale Scale of the terrain in height (maximum altitude of the terrain).
@param {Image} image Image containing the height data of the terrain.