fix globals and stuff

This commit is contained in:
mschuetz 2015-05-04 12:44:51 +02:00
parent ec5af34cb5
commit 6e02026f68
5 changed files with 712 additions and 195 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1315,7 +1315,7 @@ Potree.PointCloudOctree.prototype.createDEM = function(node){
//
var end = new Date().getTime();
var duration = end - start;
console.log(node.numPoints + " - " + duration);
//console.log(node.numPoints + " - " + duration);
demTime += duration;
@ -1387,8 +1387,8 @@ Potree.PointCloudOctree.prototype.getDEMHeight = function(position){
var stack = [];
var chosenNode = null;
if(pointcloud.children[0].dem){
stack.push(pointcloud.children[0]);
if(this.children[0].dem){
stack.push(this.children[0]);
}
while(stack.length > 0){
var node = stack.shift();

View File

@ -226,7 +226,7 @@ function projectedRadius(radius, fov, distance, screenHeight){
};
function topView(){
Potree.utils.topView = function(camera, controls, pointcloud){
camera.position.set(0, 1, 0);
camera.rotation.set(-Math.PI / 2, 0, 0);
camera.zoomTo(pointcloud, 1);
@ -238,7 +238,7 @@ function topView(){
}
}
function frontView(){
Potree.utils.frontView = function(camera, controls, pointcloud){
camera.position.set(0, 0, 1);
camera.rotation.set(0, 0, 0);
camera.zoomTo(pointcloud, 1);
@ -251,7 +251,7 @@ function frontView(){
}
function leftView(){
Potree.utils.leftView = function(camera, controls, pointcloud){
camera.position.set(-1, 0, 0);
camera.rotation.set(0, -Math.PI / 2, 0);
camera.zoomTo(pointcloud, 1);
@ -263,7 +263,7 @@ function leftView(){
}
}
function rightView(){
Potree.utils.rightView = function(camera, controls, pointcloud){
camera.position.set(1, 0, 0);
camera.rotation.set(0, Math.PI / 2, 0);
camera.zoomTo(pointcloud, 1);

View File

@ -13,9 +13,6 @@ Potree.HeightProfile = function(){
this.height = 20;
this._modifiable = true;
this.camera = camera;
this.renderer = renderer;
var sphereGeometry = new THREE.SphereGeometry(0.4, 10, 10);
var lineColor = new THREE.Color( 0xff0000 );