From 33dc7ae69633591d620ed84a10917a291f02652b Mon Sep 17 00:00:00 2001 From: mschuetz Date: Fri, 9 Oct 2015 12:18:00 +0200 Subject: [PATCH] fix some classification handling --- src/PointCloudOctree.js | 7 +++++++ src/materials/PointCloudMaterial.js | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/PointCloudOctree.js b/src/PointCloudOctree.js index b2708def..4f8e3977 100644 --- a/src/PointCloudOctree.js +++ b/src/PointCloudOctree.js @@ -1,5 +1,11 @@ +Potree.ProfileRequest = function(){ + this.queue = []; + + +}; + Potree.PointCloudOctreeNode = function(){ this.children = {}; this.sceneNode = null; @@ -771,6 +777,7 @@ Potree.PointCloudOctree.prototype.pick = function(renderer, camera, ray, params) this.pickMaterial.interpolate = this.material.interpolate; this.pickMaterial.minSize = this.material.minSize; this.pickMaterial.maxSize = this.material.maxSize; + this.pickMaterial.classification = this.material.classification; this.updateMaterial(this.pickMaterial, nodes, camera, renderer); diff --git a/src/materials/PointCloudMaterial.js b/src/materials/PointCloudMaterial.js index 0e63b793..d0c7b5b7 100644 --- a/src/materials/PointCloudMaterial.js +++ b/src/materials/PointCloudMaterial.js @@ -374,11 +374,11 @@ Object.defineProperty(Potree.PointCloudMaterial.prototype, "classification", { return this._classification; }, set: function(value){ - if(this._classification !== value){ + //if(this._classification !== value){ this._classification = value; this.classificationTexture = Potree.PointCloudMaterial.generateClassificationTexture(this._classification); this.uniforms.classificationLUT.value = this.classificationTexture; - } + //} } });