@pbroom/color-kit/planeTracing
PlaneQueryTraceMarchingSquaresStage
Stage summarizing one marching-squares contouring pass.
import type { PlaneQueryTraceMarchingSquaresStage } from '@pbroom/color-kit/plane';types.ts:261interface PlaneQueryTraceMarchingSquaresStage {
kind: 'marchingSquares';
label: string;
resolution: number;
cellCount: number;
segmentCount: number;
cells?: PlaneQueryTraceCellEvent[];
durationMs?: number;
}Properties
- kind
'marchingSquares' - label
string - Which pass this is (e.g.
'viewport-boundary','visible-region'). - resolution
number - Base grid cells per axis.
- cellCount
number - Cells visited, including adaptive refinements.
- segmentCount
number - Segments emitted.
- cells?
PlaneQueryTraceCellEvent[] - Cells that emitted segments, capped at
maxStageEntries. Collected only at'full'level; an empty array at'stages'. - durationMs?
number - Stage duration in milliseconds. Reserved; not currently populated.
Also exported from
@pbroom/color-kitthe same declaration, re-exported