type Surface = { positions: Float32Array; indices: Uint32Array; }; /** * How much of an exterior shell a simplified surface still stands on: the area-weighted fraction of points sampled on `shell` that lie within * `toleranceM` of `candidate`. * * Why it exists: `simplifyHlodSurface` reduces by an error metric measured against the surfaces that SURVIVE, so a curtain wall made of thousands * of thin separate panes (every glazed tower) collapses into its floor slabs and a few sliver triangles. The bake then holds a tower with its * walls missing: see-through from altitude, with the atlas filled from whatever source surface was nearest (Leonida build 18, Pack10-CHSignature02: * 116,313 source triangles to 1,469, one 100 m span of facade with nothing under it). The voxel exterior approximation is the reference shell: * a candidate that leaves a large part of it unsupported has lost the building's envelope, however few triangles it kept. */ export declare function shellCoverage(shell: Surface, candidate: Surface, toleranceM: number, samplesPerM2?: number, maxSamples?: number): number; /** A simplified surface must stand on at least this share of the exterior shell, or the shell wins. */ export declare const MIN_SHELL_COVERAGE = 0.85; /** * The bake keeps the smaller of the simplified surface and the exterior shell (the shell must be at least a quarter smaller), unless the * simplified surface has lost the envelope: then the shell wins whatever it costs. */ export declare function shellWins(shell: Surface, simplified: Surface, toleranceM: number): boolean; export {};