Generate contour lines from a height grid using the marching squares algorithm.
heights
Float32Array
width
height
interval
A JS array of contour line segments. Each segment is [x0, y0, x1, y1].
[x0, y0, x1, y1]
Generate contour lines from a height grid using the marching squares algorithm.
Arguments
heights:Float32Arrayelevation grid (row-major)width: Grid width (columns)height: Grid height (rows)interval: Elevation interval between contour linesReturns
A JS array of contour line segments. Each segment is
[x0, y0, x1, y1].