import type { SimulationForce, Vec3 } from './types.ts'; /** A world-space box; forces without targets reach everywhere. */ export interface ForceReach { lo: Vec3; hi: Vec3; } /** Packs forces for the GPU: their rows, the regions of analytic targets, and for mesh * targets the velocity cells they cover, by brick. */ export declare class ForceFields { private rasterizer; private previous; private version; private bricks; private coverage; private spacing; private readonly brickCells; /** `spacing` is the velocity cell size: mesh targets cover velocity cells of the * world lattice. */ constructor(spacing: Vec3, brickCells?: number); /** * The GPU rows of `forces`, the coverage of their mesh targets and how far each force * reaches. Coverage is indexed by brick id (`bricks` of them): `brickId` gives the id of * a brick, or -1 outside every tile, and `version` changes when ids do. */ prepare(forces: readonly SimulationForce[], bricks: number, version: number, brickId: (brick: Vec3) => number): { data: Float32Array; reach: (ForceReach | undefined)[]; coverage: Uint32Array; }; /** Each brick's coverage entries, rebuilt when the mesh targets or the brick ids change. */ private prepareCoverage; }