import { type MarkingCell, type SurfaceCell } from './walk'; /** A cell that is written as it is: `size` metres square with its corner at (ox, oz) in world metres. */ export interface RenderLeaf { size: number; ox: number; oz: number; surface: SurfaceCell; marking?: MarkingCell; } /** * Emits the leaves of one cell: the cell itself when it holds at most `limit` triangles (surface and paint together, * since both mount with the cell), otherwise its four quarters, recursively down to `minSize`. Paint in a quarter that has * no road surface would float, so it is dropped and handed to `dropped`. */ export declare function subdivide(surface: SurfaceCell, marking: MarkingCell | undefined, size: number, ox: number, oz: number, limit: number, minSize: number, emit: (leaf: RenderLeaf) => void, dropped: (triangles: number) => void): void;