Skip to content

CutScratch

Defined in: network/lod.ts:984

Reusable scratch for cut (#213) — engine-owned so a zoom/pan frame allocates nothing steady-state: the frontier output, the DFS stack, and its parallel cross-fade alpha stack are grow-on-demand typed arrays reused across frames. The returned frontier is a subarray view of frontier, valid until the next cut with the same scratch — every per-frame consumer re-selects before reading, so one scratch per engine serves all paths.

alpha: Float64Array

Defined in: network/lod.ts:990

Inherited cross-fade multiplier (#133), parallel to stack — only touched when fading.


frontier: Uint32Array

Defined in: network/lod.ts:986

Emitted frontier ids; only the returned subarray(0, n) prefix is valid per call.


stack: Uint32Array

Defined in: network/lod.ts:988

DFS stack of pending tree-node ids (only a call-local prefix is live).