Convert a point cloud directly to a GLB file (POINTS primitive mode).
positions
Float32Array
[x0, y0, z0, x1, y1, z1, ...]
colors
Uint8Array
[r0, g0, b0, a0, r1, ...]
normals
[nx0, ny0, nz0, ...]
Uint8Array containing the complete GLB binary.
Optional
Convert a point cloud directly to a GLB file (POINTS primitive mode).
Arguments
positions:Float32Array[x0, y0, z0, x1, y1, z1, ...]colors: OptionalUint8Array[r0, g0, b0, a0, r1, ...](RGBA per vertex)normals: OptionalFloat32Array[nx0, ny0, nz0, ...]Returns
Uint8Arraycontaining the complete GLB binary.