![]() | This article includes a list of references, related reading, or external links, but its sources remain unclear because it lacks inline citations. (February 2022) |
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:
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:
© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search