terrain-codec 0.2.1

Terrain processing utilities for 3D tile generation: seamless DEM-gradient normals, mesh helpers, and re-exports of martini + quantized-mesh
Documentation
[package]
name = "terrain-codec"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
description = "Terrain processing utilities for 3D tile generation: seamless DEM-gradient normals, mesh helpers, and re-exports of martini + quantized-mesh"
readme = "README.md"
keywords = ["terrain", "cesium", "quantized-mesh", "normals", "3d-tiles"]
categories = ["graphics", "science::geo"]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[features]
default = []
# Per-format container support in `heightmap::container`. Enable just
# what you need — each pulls in the `image` crate plus its matching
# codec.
png = ["dep:image", "image/png"]
webp = ["dep:image", "image/webp"]
# AVIF encoder via the pure-Rust ravif backend. AVIF *decoding* needs
# libdav1d (`image/avif-native`); opt in yourself if you need it.
avif = ["dep:image", "image/avif"]

[dependencies]
martini = { version = "0.2", path = "../martini" }
quantized-mesh = { version = "0.2.1", path = "../quantized-mesh" }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
image = { version = "0.25", optional = true, default-features = false }