Expand description
Terrain processing utilities for 3D tile generation.
This crate ties together martini (RTIN mesh generation) and
quantized_mesh (Cesium quantized-mesh-1.0 encode/decode) and adds
higher-level utilities — most notably seamless vertex-normal
computation from a halo-extended DEM grid, which keeps shading
continuous across tile boundaries.
§Re-exports
The two underlying crates are re-exported as modules, so downstream code can use them through this single dependency:
use terrain_codec::{martini, quantized_mesh};§Normals
See normals for the seam-free buffered-gradient normal algorithm
and a simpler per-tile face-normal accumulator.
§Heightmap codecs
See heightmap for Terrarium / Mapbox Terrain-RGB / GSI 地理院標高タイル
encode ⇄ decode pairs.
Re-exports§
pub use martini;pub use quantized_mesh;
Modules§
- heightmap
- Heightmap codecs for elevation tile formats.
- layer_
json - Cesium
layer.json(TerrainProvider metadata) builder. - normals
- Vertex-normal computation for terrain meshes.
- tile_
coords - Tile coordinate utilities for the tiling schemes commonly used with Cesium terrain and Web Mercator raster sources.