@pbroom/color-kit/planeTracing

PlaneQueryTraceCellEvent

One marching-squares cell that produced contour segments ('full' level).

interfaceimport type { PlaneQueryTraceCellEvent } from '@pbroom/color-kit/plane';types.ts:249
interface PlaneQueryTraceCellEvent {
  xIndex: number;
  yIndex: number;
  mask: number;
  points: PlanePoint[];
}

Properties

xIndexnumber
Cell column index.
yIndexnumber
Cell row index.
masknumber
4-bit marching-squares corner mask (0–15).
pointsPlanePoint[]
Segment end points emitted for the cell, in plane-normalized coordinates.

Also exported from