README
heightmap-contours
Generate a series of 2D contour meshes over a heightmap.
Usage
layers = heightmapContours(heightmap, [options])
heightmap
is a 2D ndarray representing the heightmap. Its size ("shape") will determine the resolution of the final output.
Accepts the following options:
slices
: the number of slices to make through the heightmap, hence the number of output layers.border
: boolean value. Iftrue
, add a border to the edges to ensure that all of the resulting layers are manifold (i.e. contain no gaps or forks). Defaults totrue
.
Returns an array of simplicial complexes, one for each layer starting from the top.
See Also
License
MIT, see LICENSE.md for details.