export interface LipOptions { minStepM: number; maxStepM: number; /** Horizontal run of the bevel per metre of step (3 = 18.4 degrees). */ bevelRatio: number; /** * A triangle is a steep face (a kerb wall, a chamfer, a lip ramp too steep to roll) when its normal.y lies in * (faceMinNy, faceMaxNy): steeper than 25 degrees, and not an overhang's underside. */ faceMaxNy: number; faceMinNy: number; /** How far either side of a wall or edge the neighbouring surfaces are sampled. */ probeM: number; /** A surface counts as up-facing (a thing to roll on) from this normal.y. */ upMinNy: number; } export declare const DEFAULT_LIP_OPTIONS: Readonly; export interface SurfaceHit { h: number; ny: number; } /** Up-facing triangles, bucketed on the ground plane, answering "which surfaces lie under (x, z) near this height". */ export declare class SurfaceIndex { private data; private count; private readonly cells; get triangles(): number; add(t: ArrayLike): void; /** Every surface under (x, z) whose height lies in [yMin, yMax]. */ hits(x: number, z: number, yMin: number, yMax: number): SurfaceHit[]; } /** One step: its direction towards the LOW side (unit, horizontal), and the high and low surface heights. */ interface Step { dx: number; dz: number; high: number; low: number; } export interface WallLip { tri: Float32Array; step: Step; stepM: number; lengthM: number; probeM: number; } /** * Classifies a triangle of the collider tier: a wall (near-vertical) standing between two up-facing surfaces that differ by * `[minStepM, maxStepM]`. `index` holds the up-facing surfaces of the whole tier (and the deck cells). */ export declare function classifyWall(t: Float32Array, index: SurfaceIndex, input?: Partial): WallLip | null; /** * The bevels of a set of wall triangles. Every distinct wall vertex is mapped ONCE (shared by all the triangles that use it), so * the bevel is watertight where the wall is: the vertex keeps its place at the top of the step and moves `bevelRatio x step` * out over the low side at its foot, in between in proportion. The direction is the average of the walls that meet there. */ export declare function bevelWalls(lips: readonly WallLip[], index: SurfaceIndex, input?: Partial): { triangles: Array<{ lip: WallLip; tri: number[]; }>; degenerate: number; degeneratedLips: WallLip[]; }; export interface EdgeLip { tris: number[]; kind: 'deck-over-ground' | 'ground-over-deck'; stepM: number; lengthM: number; } /** * Bevels for the free boundary edges of an indexed deck mesh (`positions`/`indices`) where a surface of `ground` lies within a * step of the edge just outside it. A deck edge ABOVE the ground gets a wedge going down onto the ground; a deck edge BELOW * higher ground gets a wedge rising on the deck up to the ground's height. */ export declare function deckEdgeLips(positions: ArrayLike, indices: ArrayLike, ground: SurfaceIndex, input?: Partial): EdgeLip[]; /** * The largest vertical jump between samples `sampleM` apart along the straight line (x0, z0) -> (x1, z1) over a set of up-facing * triangles, as a wheel meets it: at each sample the highest surface within 0.5 m of the previous sample's, taken over * `bridgeM` either side along the line (a wheel rolls over a hairline crack between two triangles). */ export declare function maxJumpAlong(index: SurfaceIndex, x0: number, z0: number, x1: number, z1: number, startY: number, sampleM?: number, bridgeM?: number): { maxJumpM: number; at: number; }; export {};