heremaps / tin-terrain

A command-line tool for converting heightmaps in GeoTIFF format into tiled optimized meshes.
MIT License
586 stars 127 forks source link

fixed an issue where min and max determination were wrongly initializ… #45

Closed adrpar closed 5 years ago

adrpar commented 6 years ago

…ed in quantized mesh generation

adrpar commented 6 years ago

The issue here was, that min and max were not simultaneously initialized in the for loop. If the first element in the list actually was the max value in z, it was never set and the maximum value was wrongly determined.

adrpar commented 5 years ago

removed the asserts