import { GrowF32 } from './grow'; /** * The surfaces a wheel or a foot rests on, whose drawn tops the collider takes exactly. The rest (concrete decks and girders, kerb tops, * medians) keeps the collider's own simplification at its old tolerance: copying every drawn top put Pacifica rd4's densest cells at up to * 73,080 triangles (budget 45,000) and the extra collider bytes regrouped the roads so the phone refused its street furniture. */ export declare const COLLIDER_EXACT_TOP_KINDS: ReadonlySet; /** A triangle whose unit normal's Y is at least this is a surface to stand on (the asphalt shader's vertical-face cut). */ export declare const COLLIDER_TOP_MIN_NORMAL_Y = 0.6; /** A collider top is the render's when a render top lies under or over its centroid within this many metres. */ export declare const COLLIDER_TOP_COVER_M = 0.3; /** * Appends the up-facing triangles of a local-frame indexed mesh, in world coordinates (origin `ox`, `oz`), to `out` as a soup; `normals` (per * vertex) decide which way a face points when given. With `kinds` (the `_ROAD` vertex attribute, four bytes a vertex, the kind first) only the * triangles of `only` kinds are taken. */ export declare function appendUpFacing(out: GrowF32, positions: ArrayLike, indices: ArrayLike, ox: number, oz: number, normals?: ArrayLike, minNy?: number, kinds?: { road: ArrayLike; only: ReadonlySet; }): number; /** The soup without the up-facing triangles a `tops` triangle covers (within `toleranceM` vertically at the centroid). */ export declare function withoutCoveredTops(soup: Float32Array, tops: Float32Array, toleranceM?: number, minNy?: number): Float32Array; /** One indexed mesh of two. */ export declare function mergeIndexed(a: { positions: Float32Array; indices: Uint32Array; }, b: { positions: Float32Array; indices: Uint32Array; }): { positions: Float32Array; indices: Uint32Array; };