Intermact API Reference / @intermact/core / marchingSquares
Function: marchingSquares()
marchingSquares(
field,level,options?):IsoSegment[]
Defined in: packages/core/src/pcg/marching-squares.ts:39
Extract iso-line segments of field at level over the field domain. Uses standard marching-squares case handling with linear edge interpolation; the ambiguous saddle cases (5/10) are resolved by the cell-center average.
Parameters
field
level
number