remove tightBoundingBox
This commit is contained in:
parent
e1a1447a9d
commit
3f6dfdba1b
@ -61,7 +61,7 @@ Potree.PointCloudOctree = function(geometry, material){
|
||||
Potree.PointCloudOctree.lru = Potree.PointCloudOctree.lru || new LRU();
|
||||
|
||||
this.pcoGeometry = geometry;
|
||||
this.boundingBox = this.pcoGeometry.tightBoundingBox;
|
||||
this.boundingBox = this.pcoGeometry.boundingBox;
|
||||
this.boundingSphere = this.boundingBox.getBoundingSphere();
|
||||
this.material = material || new Potree.PointCloudMaterial();
|
||||
this.visiblePointsTarget = 2*1000*1000;
|
||||
|
||||
@ -45,12 +45,6 @@ Potree.POCLoader.load = function load(url, callback) {
|
||||
var min = new THREE.Vector3(fMno.boundingBox.lx, fMno.boundingBox.ly, fMno.boundingBox.lz);
|
||||
var max = new THREE.Vector3(fMno.boundingBox.ux, fMno.boundingBox.uy, fMno.boundingBox.uz);
|
||||
var boundingBox = new THREE.Box3(min, max);
|
||||
var tightBoundingBox = boundingBox.clone();
|
||||
|
||||
if(fMno.tightBoundingBox){
|
||||
tightBoundingBox.min.copy(new THREE.Vector3(fMno.tightBoundingBox.lx, fMno.tightBoundingBox.ly, fMno.tightBoundingBox.lz));
|
||||
tightBoundingBox.max.copy(new THREE.Vector3(fMno.tightBoundingBox.ux, fMno.tightBoundingBox.uy, fMno.tightBoundingBox.uz));
|
||||
}
|
||||
var offset = new THREE.Vector3(0,0,0);
|
||||
|
||||
offset.set(-min.x, -min.y, -min.z);
|
||||
@ -58,13 +52,8 @@ Potree.POCLoader.load = function load(url, callback) {
|
||||
boundingBox.min.add(offset);
|
||||
boundingBox.max.add(offset);
|
||||
|
||||
tightBoundingBox.min.add(offset);
|
||||
tightBoundingBox.max.add(offset);
|
||||
|
||||
pco.boundingBox = boundingBox;
|
||||
pco.tightBoundingBox = tightBoundingBox;
|
||||
pco.boundingSphere = boundingBox.getBoundingSphere();
|
||||
pco.tightBoundingSphere = tightBoundingBox.getBoundingSphere();
|
||||
pco.offset = offset;
|
||||
if(fMno.pointAttributes === "LAS"){
|
||||
pco.loader = new Potree.LasLazLoader(fMno.version);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user