floorGeometry_facecolors_lines = {
var result = {
faceColors:[],
lines:{},
floorGeometry:new THREE.PlaneGeometry(graphDimensions.w,graphDimensions.d,10,2405)
}
const faceColors = result.faceColors;
const lines = result.lines;
const floorGeometry = result.floorGeometry;
for(var i=0;i<floorGeometry.vertices.length;i++){
faceColors.push(colors[Math.round(realData[i][2]*4)]);
if(realData[i][2]==null){
floorGeometry.vertices[i].z='null';
}else{
floorGeometry.vertices[i].z = realData[i][2]*100;
if(!lines[floorGeometry.vertices[i].x]){
lines[floorGeometry.vertices[i].x] = new THREE.Geometry();
}
lines[floorGeometry.vertices[i].x].vertices.push(new THREE.Vector3(
floorGeometry.vertices[i].x,
floorGeometry.vertices[i].y,
realData[i][2]*100
))
}
}
for(var x=0;x<floorGeometry.faces.length;x++){
floorGeometry.faces[x].vertexColors[0] = new THREE.Color(faceColors[floorGeometry.faces[x].a])
floorGeometry.faces[x].vertexColors[1] = new THREE.Color(faceColors[floorGeometry.faces[x].b])
floorGeometry.faces[x].vertexColors[2] = new THREE.Color(faceColors[floorGeometry.faces[x].c])
}
return result;
}