remove hierarchy entirely from cloud.js, including root.

This commit is contained in:
mschuetz 2015-03-12 21:07:01 +01:00
parent 1b98200bfb
commit 616f069f75
2 changed files with 5 additions and 1 deletions

View File

@ -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 = [];

View File

@ -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;