Marching squares
In computer graphics, marching squares is an algorithm that generates contours for a two-dimensional scalar field (rectangular array of individual numerical values).[src] A similar method can be used to contour 2D triangle meshes.[src] The contours can be of two kinds: * Isolines – lines following a single data level, or isovalue.[src] * Isobands – filled areas between isolines.[src] Typical applications include the contour lines on topographic maps or the generation of isobars for weather maps.[src] Marching squares takes a similar approach to the 3D marching cubes algorithm: * Process each cell in the grid independently.[src] * Calculate a cell index using comparisons of the contour level(s) with the data values at the cell corners.[src] * Use a pre-built lookup table, keyed on the cell index, to describe the output geometry for the cell.[src] * Apply linear interpolation along the boundaries of the cell to calculate the exact contour position.[src]
In computer graphics, marching squares is an algorithm that generates contours for a two-dimensional scalar field (rectangular array of individual numerical values).[src] A similar method can be used to contour 2D triangle meshes.[src] The contours can be of two kinds: Isolines – lines following a single data level, or isovalue.[src] Isobands – filled areas between isolines.[src] Typical applications include the contour lines on topographic maps or the generation of isobars for weather maps.[src] Marching squares takes a similar approach to the 3D marching cubes algorithm: Process each cell in the grid independently.[src] Calculate a cell index using comparisons of the contour level(s) with the data values at the cell corners.[src] Use a pre-built lookup table, keyed on the cell index, to describe the output geometry for the cell.[src] Apply linear interpolation along the boundaries of the cell to calculate the exact contour position.[src] ===Isolines=== The analysis for isolines over triangles is especially simple: there are 3 binary digits, so there are 8 possibilities: ===Isobands=== The analysis for isobands over triangles requires 3 ternary trits, so there are 27 possibilities:[src]
19 sentences · 19 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Marching squares." encyclopegia.org, 2026, https://encyclopegia.org/wiki/marching-squares. Accessed 01 December 2026.
Chicago
"Marching squares." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/marching-squares.
APA
encyclopegia.org. (2026). Marching squares. Retrieved December 1, 2026, from https://encyclopegia.org/wiki/marching-squares
Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON