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). A similar method can be used to contour 2D triangle meshes. The contours can be of two kinds: * Isolines – lines following a single data level, or isovalue. * Isobands – filled areas between isolines. Typical applications include the contour lines on topographic maps or the generation of isobars for weather maps. Marching squares takes a similar approach to the 3D marching cubes algorithm: * Process each cell in the grid independently. * Calculate a cell index using comparisons of the contour level(s) with the data values at... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
In computer graphics, marching squares is an algorithm that generates contours for a two-dimensional scalar field (rectangular array of individual numerical values). A similar method can be used to contour 2D triangle meshes. The contours can be of two kinds: Isolines – lines following a single data level, or isovalue. Isobands – filled areas between isolines. Typical applications include the contour lines on topographic maps or the generation of isobars for weather maps. Marching squares takes a similar approach to the 3D marching cubes algorithm: Process each cell in the grid independently. Calculate a cell index using comparisons of the contour level(s) with the data values at the cell corners. Use a pre-built lookup table, keyed on the cell index, to describe the output geometry for the cell. Apply linear interpolation along the boundaries of the cell to calculate the exact contour position. ===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:
Cite this
"Marching squares". 1789956659. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1375965230 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy