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

Go to the source code of this file.

Classes

class  hmap::TerrainTriMesh
 Triangle mesh representation of a terrain surface. More...
 
struct  hmap::TerrainTriMesh::BoundingBox
 Axis-aligned 2D bounding box. More...
 
struct  hmap::TerrainTriMesh::Edge
 Undirected edge between two vertices. More...
 
struct  hmap::TerrainTriMesh::EdgeHash
 Hash functor for Edge. More...
 
struct  hmap::TerrainTriMesh::Triangle
 Triangle defined by three vertex indices. More...
 
struct  hmap::TerrainTriMesh::Neighbor
 Neighbor vertex information. More...
 
struct  hmap::TerrainTriMesh::NeighborData
 Vertex adjacency lists. More...
 
struct  hmap::TerrainTriMesh::ShortestPathResult
 Result of a shortest-path computation. More...
 

Namespaces

namespace  hmap
 

Functions

std::vector< float > hmap::cubic_pulse (const TerrainTriMesh &mesh)
 Compute a cubic pulse value for each mesh vertex.
 
TerrainTriMesh hmap::generate_terrain_tri_mesh_from_heightmap (const Array &z, float max_error, int max_triangles=0, int max_points=0)
 Generate a terrain mesh from a heightmap.
 
TerrainTriMesh hmap::generate_terrain_tri_mesh_from_heightmap_random (const Array &z, int control_points_count, std::uint32_t seed)
 Generate a random terrain mesh from a heightmap.