Skip to content

declutterFrontier

declutterFrontier(tree, frontier, t, width, height, opts): Uint32Array

Defined in: network/lod.ts:935

Thin an LOD frontier in screen space: keep higher-importance glyphs (by tree LODTree.weight = strength) and drop lower-importance ones that would overlap a kept glyph (centre distance < sum of the two radii). Greedy in descending importance over a uniform screen grid, so a dense cluster keeps its most important members and the kept set is overlap-free (no overdraw). Runs per cut, so it’s zoom-dependent — more glyphs resolve as you zoom in. Returns the kept frontier ids (original order).

LODTree

Uint32Array

LODTransform

number

number

DeclutterOptions

Uint32Array