We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1024024 commit 81bd6ffCopy full SHA for 81bd6ff
src/loader/ept/LaszipLoader.js
@@ -51,7 +51,12 @@ export class CopcLaszipLoader {
51
// isolate the compressed data buffer, which is passed to the worker.
52
// The time-consuming decompression and extracting the data into
53
// GPU-compatible buffers happens in the worker.
54
- const { pointDataOffset, pointDataLength } = node.nodeinfo
+ const { pointCount, pointDataOffset, pointDataLength } = node.nodeinfo
55
+
56
+ // Note that COPC explicitly allows nodes to exist with no data. They
57
+ // may have children, but there is no point cloud data. Make sure we
58
+ // don't try to fetch a slice of point data in this case.
59
+ if (!pointCount) return this.parse(node, new ArrayBuffer())
60
const compressed = await node.owner.getter(
61
pointDataOffset,
62
pointDataOffset + pointDataLength)
0 commit comments