The following function minimizes the number of vertices in a mesh.
 
	BABYLON.Mesh.prototype.minimizeVertices = function() {
		
		var _pdata = this.getVerticesData(BABYLON.VertexBuffer.PositionKind);
		var _ndata = this.getVerticesData(BABYLON.VertexBuffer.NormalKind);
		var _idata = this.getIndices();	
		var _newPdata = []; //new positions array
		var _newIdata =[]; //new indices array
	
		var _mapPtr =0; // new index;
		var _uniquePositions = []; // unique vertex positions
		for(var _i=0; _