@csi-foxbyte/cityjson-to-3d-tiles
Version:
A Node.js library that converts CityJSON files into Cesium 3D Tiles—complete with automatic texture atlas packing, Basis compression, three LOD levels, and customizable threading.
2 lines • 477 B
JavaScript
import a from'sharp';import {Logger}from'@gltf-transform/core';import {generateCell}from'./generateCell.js';a.concurrency(1),a.cache(false);Logger.DEFAULT_INSTANCE=new Logger(Logger.Verbosity.SILENT),process.on("message",async e=>{try{const r=await generateCell(e.data.cell,e.data.outputFolder,e.data.databasePath,e.data.hasAlphaEnabled);process.send?.(r);}catch(r){console.error(r),process.send?.(null);}});//# sourceMappingURL=worker.js.map
//# sourceMappingURL=worker.js.map