HighMap library (C++)
Loading...
Searching...
No Matches
drainage_basin.hpp File Reference

Header file for DrainageBasin class and hydrology utilities. More...

Go to the source code of this file.

Classes

class  hmap::DrainageBasin
 Represents a drainage basin network constructed on a 3D terrain mesh. More...
 

Namespaces

namespace  hmap
 

Functions

std::vector< size_t > hmap::find_border_minima (const std::vector< glm::vec3 > &xyz, float eps=1e-6f)
 Find local minima along the border of a set of 3D coordinates.
 
std::vector< size_t > hmap::find_border_sinks (TerrainTriMesh &mesh, float eps=1e-6f)
 Find sinks along the border of a terrain tri mesh.
 
std::vector< glm::vec3 > hmap::heightmap_retopology (const Array &z, float max_error, int max_triangles=0, int max_points=0)
 Performs retopology of a heightmap to generate a 3D point cloud.
 
std::vector< size_t > hmap::sample_border_points (const std::vector< glm::vec3 > &xyz, size_t nb)
 Sample a specified number of points along the border.
 

Detailed Description

Header file for DrainageBasin class and hydrology utilities.

Author
Otto Link (otto..nosp@m.link.nosp@m..bv@g.nosp@m.mail.nosp@m..com)