minor profile fetch fix

This commit is contained in:
mschuetz 2015-10-16 17:17:56 +02:00
parent a691634f5e
commit a2bb52c06c

View File

@ -211,6 +211,9 @@ Potree.ProfileRequest = function(pointcloud, profile, maxDepth, callback){
};
points.segments.push(segment);
points.boundingBox.expandByPoint(inside.boundingBox.min);
points.boundingBox.expandByPoint(inside.boundingBox.max);
}
@ -238,8 +241,8 @@ Potree.ProfileRequest = function(pointcloud, profile, maxDepth, callback){
return function(position){
var toOrigin = new THREE.Matrix4().makeTranslation(-start.x, -boundingBox.min.y, -start.z);
// -boundingBox.min.y
var toOrigin = new THREE.Matrix4().makeTranslation(-start.x, 0, -start.z);
var alignWithX = new THREE.Matrix4().makeRotationY(-alpha);
var applyMileage = new THREE.Matrix4().makeTranslation(mileage.x, 0, 0);