close
Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mesh-heightmap-contours

experimental

Given a heightmap, generate a "contoured" terrain mesh, e.g.:

Image

🚨 There are still a few bugs but they'll be fixed soon 🚨

Usage

NPM

mesh = contourMesh(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, which are passed onto heightmap-contours:

  • slices: the number of slices to make through the heightmap, hence the number of output layers in the mesh.

Returns a simplicial complex.

See Also

License

MIT, see LICENSE.md for details.

About

Given a heightmap, generate a "contoured" terrain mesh

Resources

Code of conduct

Contributing

Stars

27 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages