From 9834a0ce49bd098535c276358015b2c64e20696a Mon Sep 17 00:00:00 2001 From: m-schuetz Date: Tue, 12 Dec 2017 16:47:05 +0100 Subject: [PATCH] fix classification for binary format --- src/workers/BinaryDecoderWorker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workers/BinaryDecoderWorker.js b/src/workers/BinaryDecoderWorker.js index 6b7bda69..28258fd9 100644 --- a/src/workers/BinaryDecoderWorker.js +++ b/src/workers/BinaryDecoderWorker.js @@ -122,7 +122,7 @@ onmessage = function (event) { for (let j = 0; j < numPoints; j++) { let classification = cv.getUint8(inOffset + j * pointAttributes.byteSize); let firstByte = j * iStride + outOffset; - iView.setUint8(firstByte + 0, classification, true); + iView.setFloat32(firstByte + 0, classification, true); } } else if (pointAttribute.name === Potree.PointAttribute.NORMAL_SPHEREMAPPED.name) {