This C++ application is designed to generate 3D models from heightmap images through triangulation, optionally adding solid bases and applying various modifications to the heightmap before processing. It also supports generating normal and hillshade maps based on the input heightmap. Below is a detailed usage guide, including implementation and algorithm details.
To use this application, you need to compile the provided source files (base.cpp
, blur.cpp
, heightmap.cpp
, main.cpp
, stl.cpp
, triangulator.cpp
, along with their headers) into an executable. The program requires specifying an input heightmap file and various optional parameters to control the output model's characteristics.
./heightmap_to_stl [options] infile [outfile.stl]