UNPKG

@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 • 440 B
import {generateTileDatabaseFromCityJSON,generate3DTilesFromTileDatabase}from'./index.js';const o="D:\\generator_test\\src",r="rgbTexture",n="D:\\generator_test";(async()=>{const{dbFilePath:e}=await generateTileDatabaseFromCityJSON(o,n,r,console.log,{threadCount:1});await generate3DTilesFromTileDatabase(e,"D:\\generator_test\\tiles",console.log,{threadCount:1});})();//# sourceMappingURL=example.js.map //# sourceMappingURL=example.js.map