[][src]Module building_blocks_mesh::height_map

Structs

HeightMapMeshBuffer

The output buffers used by triangulate_height_map. These buffers can be reused to avoid reallocating memory.

Traits

Height

Functions

padded_height_map_chunk_extent

Pads the given chunk extent with exactly the amount of space required for running the triangulate_height_map algorithm.

triangulate_height_map

Generates a mesh with a vertex at each point on the interior of extent. Surface normals are estimated using central differencing, which requires each vertex to have a complete Von Neumann neighborhood. This means that points on the boundary of extent are not eligible as mesh vertices, but they are still required.