Create a new inline Worker for point cloud processing.
wasmUrl — URL to the WASM module file (.wasm).The Worker is created as a Blob URL from an inline script. It loads
the WASM module, initializes it, and waits for process commands.
Cancel the current processing job.
The Worker will stop as soon as possible (between octree build and tileset generation phases).
Initialize the Worker (load and initialize WASM).
Must be called before process. The Worker will post a ready
message when initialization is complete.
Register a cancellation callback.
Called when the Worker is cancelled mid-processing.
Register a completion callback.
Callback receives the result object with tilesetJson, tileCount,
totalBytes, and tileSizes.
Register an error callback.
Callback receives an error object with message and stage.
Register a progress callback.
Callback receives (stage: string, progress: number) where stage
is "octree" or "tileset" and progress is 0.0 to 1.0.
Submit a point cloud for processing in the Worker.
Positions and colors are transferred (zero-copy) to the Worker.
positions — Float32Array of [x, y, z, ...].colors — Optional Uint8Array of [r, g, b, ...].options — WorkerOptions for octree configuration.Submit a GeoTIFF for terrain processing in the Worker.
The Worker will parse the GeoTIFF, optionally apply color ramp and hillshade, and generate a GLB terrain mesh.
geotiff_bytes — Uint8Array of raw GeoTIFF data.color_ramp — Optional color ramp (0=Terrain, 1=Heat, 2=Ocean, 3=Gray), or None.azimuth — Hillshade light azimuth (degrees, 0=N, 90=E). Default 315.altitude — Hillshade light altitude (degrees). Default 45.Optionalcolor_ramp: number | nullOptionalazimuth: number | nullOptionalaltitude: number | nullTerminate the Worker and release all resources.
A handle to a point cloud processing Web Worker.
Create via
createPointCloudWorker(wasmUrl). The Worker loads the WASM module in a separate thread and executes the full Octree → Tileset pipeline.Example (JS)