/** The towers of each painted bridge: placed objects that join the bridge's layer instead of the placements. */ export declare const CS2_PAINTED_TOWERS: ReadonlyArray<{ prefab: RegExp; bridge: string; }>; /** * Simplifier tolerances tried for the steel, metres, finest first, until it fits its share of the budget: the game draws it as * 412k triangles of open pieces (cable segments, truss members), so a tight tolerance barely moves it. A main cable is 0.9 m * across; a suspender is under a pixel past 300 m. */ export declare const LANDMARK_STEEL_ERRORS_M: readonly number[]; /** * Triangle budget of the whole layer. 140k since a second painted bridge joined (TrussArchBridge03, 50k triangles of steel before * simplification): the Golden Gate's share stays above the 88k it was accepted at (pacifica owner check 3) instead of giving the * arch a tenth of it. */ export declare const LANDMARK_MAX_TRIANGLES = 140000; /** The tower LOD the layer takes (the builder's middle level: half of LOD0). */ export declare const LANDMARK_TOWER_LOD = 1; export declare function paintedTowerBridge(prefab: string): string | null; /** One painted bridge of the layer: its steel and towers, one primitive in its own paint. */ export interface Cs2LandmarkPaint { bridge: string; colour: string; steelErrorM: number; triangles: number; steelTriangles: number; steelTrianglesBefore: number; towerTriangles: number; towers: number; } export interface Cs2LandmarkLayer { file: string; triangles: number; /** One per painted bridge, in name order: the GLB holds one primitive (one material, one draw) per paint. */ paints: Cs2LandmarkPaint[]; bounds: { min: [number, number, number]; max: [number, number, number]; }; } /** The positions and indices of every primitive of a GLB, in its scene's world space. */ export declare function glbWorldTriangles(bytes: Uint8Array): Promise<{ positions: Float32Array; indices: Uint32Array; }>; /** * The layer's parts joined into one indexed primitive. It carries no normals: a glTF primitive without NORMAL is drawn flat * (the spec, and three's GLTFLoader sets `flatShading`), so the paint reads as steel plate and girder, not a smoothed blob, at a * third of the vertices a per-face copy would ship (the layer is resident from the first frame). */ export declare function joinParts(parts: ReadonlyArray<{ positions: Float32Array; indices: Uint32Array; }>): { positions: Float32Array; indices: Uint32Array; }; /** Welds by exact position and simplifies (meshopt) toward `maxTriangles`, at the finest of `errorsM` that gets there (else the coarsest). */ export declare function simplifySteel(positions: Float32Array, indices: Uint32Array, errorsM: readonly number[], maxTriangles: number): Promise<{ positions: Float32Array; indices: Uint32Array; errorM: number; }>; /** * Each painted bridge's share of the layer's steel budget: what is left after every tower, split by the steel each draws before * simplification (a long suspension span needs more than a short arch). */ export declare function steelBudgets(steelBefore: readonly number[], towerTriangles: number, maxTriangles?: number): number[]; /** * Builds `/landmarks.glb` from the bundle's painted bridges and the given tower placements (prototype LOD GLBs under `out`), * or returns null when the capture has no painted bridge. Every painted bridge is one primitive in its own paint. */ export declare function buildCs2Landmarks(bundle: string, out: string, towers: ReadonlyArray<{ bridge: string; glb: string; position: readonly number[]; rotation: readonly number[]; }>, options: { seaLevelMetres: number; }): Promise;