remove hierarchy entirely from cloud.js, including root.
This commit is contained in:
parent
1b98200bfb
commit
616f069f75
@ -116,6 +116,7 @@ Potree.PointCloudOctreeGeometryNode.prototype.loadHierachyThenPoints = function(
|
||||
var stack = [];
|
||||
var children = view.getUint8(0);
|
||||
var numPoints = view.getUint32(1, true);
|
||||
node.numPoints = numPoints;
|
||||
stack.push({children: children, numPoints: numPoints, name: node.name});
|
||||
|
||||
var decoded = [];
|
||||
|
||||
@ -81,7 +81,10 @@ POCLoader.load = function load(url, callback) {
|
||||
var root = new Potree.PointCloudOctreeGeometryNode(name, pco, boundingBox);
|
||||
root.level = 0;
|
||||
root.hasChildren = true;
|
||||
root.numPoints = fMno.hierarchy[0][1];
|
||||
if(pco.loader.version.upTo("1.5")){
|
||||
root.numPoints = fMno.hierarchy[0][1];
|
||||
}
|
||||
root.numPoints = 0;
|
||||
pco.root = root;
|
||||
pco.root.load();
|
||||
nodes[name] = root;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user