made build
This commit is contained in:
parent
9cdbaf993f
commit
a6ce3da850
File diff suppressed because one or more lines are too long
6
build/js/potree.min.js
vendored
6
build/js/potree.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -84,7 +84,7 @@ Potree.PointCloudOctree.prototype.update = function(camera){
|
||||
|
||||
var visible = true;
|
||||
visible = visible && frustum.intersectsBox(box);
|
||||
if(object.level > 0){
|
||||
if(object.level > 1){
|
||||
// cull detail nodes based in distance to camera
|
||||
visible = visible && Math.pow(radius, 0.8) / distance > (1 / this.LOD);
|
||||
visible = visible && (this.numVisiblePoints + object.numPoints < Potree.pointLoadLimit);
|
||||
@ -103,6 +103,10 @@ Potree.PointCloudOctree.prototype.update = function(camera){
|
||||
// }
|
||||
//}
|
||||
|
||||
//if(object.level > 0){
|
||||
// visible = parseInt(object.name.charAt(object.name.length-1)) == 0;
|
||||
//}
|
||||
|
||||
object.visible = visible;
|
||||
|
||||
if(!visible){
|
||||
|
||||
@ -129,6 +129,11 @@ Potree.BinaryNodeLoader.load = function(node, callback){
|
||||
Potree.LasLazBatcher = function(node, url){
|
||||
this.push = function(lasBuffer){
|
||||
var ww = Potree.workers.lasdecoder.getWorker();
|
||||
var mins = new THREE.Vector3(lasBuffer.mins[0], lasBuffer.mins[1], lasBuffer.mins[2]);
|
||||
var maxs = new THREE.Vector3(lasBuffer.maxs[0], lasBuffer.maxs[1], lasBuffer.maxs[2]);
|
||||
mins.add(node.pcoGeometry.offset);
|
||||
maxs.add(node.pcoGeometry.offset);
|
||||
|
||||
ww.onmessage = function(e){
|
||||
var geometry = new THREE.BufferGeometry();
|
||||
var numPoints = lasBuffer.pointsCount;
|
||||
@ -155,7 +160,9 @@ Potree.LasLazBatcher = function(node, url){
|
||||
geometry.addAttribute('position', new THREE.Float32Attribute(positions, 3));
|
||||
geometry.addAttribute('color', new THREE.Float32Attribute(colors, 3));
|
||||
geometry.addAttribute('intensity', new THREE.Float32Attribute(intensities, 1));
|
||||
geometry.boundingBox = node.boundingBox;
|
||||
//geometry.boundingBox = node.boundingBox;
|
||||
geometry.boundingBox = new THREE.Box3(mins, maxs);
|
||||
node.boundingBox = geometry.boundingBox;
|
||||
|
||||
node.geometry = geometry;
|
||||
node.loaded = true;
|
||||
|
||||
@ -104,10 +104,13 @@ onmessage = function(event){
|
||||
tempUint8[3] = bufferView[i*pointSize+11];
|
||||
var z = tempInt32[0];
|
||||
|
||||
positions[3*i+0] = x * scale[0] + offset[0] - mins[0];
|
||||
positions[3*i+1] = y * scale[1] + offset[1] - mins[1];
|
||||
positions[3*i+2] = z * scale[2] + offset[2] - mins[2];
|
||||
//positions[3*i+0] = x * scale[0] + offset[0] - mins[0];
|
||||
//positions[3*i+1] = y * scale[1] + offset[1] - mins[1];
|
||||
//positions[3*i+2] = z * scale[2] + offset[2] - mins[2];
|
||||
|
||||
positions[3*i+0] = x * scale[0] + offset[0];
|
||||
positions[3*i+1] = y * scale[1] + offset[1];
|
||||
positions[3*i+2] = z * scale[2] + offset[2];
|
||||
|
||||
// INTENSITY
|
||||
tempUint8[0] = bufferView[i*pointSize+12];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user