@pbroom/color-kit/planeTracing
PlaneQueryTraceCellEvent
One marching-squares cell that produced contour segments ('full' level).
import type { PlaneQueryTraceCellEvent } from '@pbroom/color-kit/plane';types.ts:249interface PlaneQueryTraceCellEvent {
xIndex: number;
yIndex: number;
mask: number;
points: PlanePoint[];
}Properties
- xIndex
number - Cell column index.
- yIndex
number - Cell row index.
- mask
number - 4-bit marching-squares corner mask (
0–15). - points
PlanePoint[] - Segment end points emitted for the cell, in plane-normalized coordinates.
Also exported from
@pbroom/color-kitthe same declaration, re-exported