fix classification for binary format

This commit is contained in:
m-schuetz 2017-12-12 16:47:05 +01:00
parent 7453a3ec62
commit 9834a0ce49

View File

@ -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) {