Skip to main content

qualia_core_db/domains/geospatial/terrain/
mod.rs

1// SPDX-License-Identifier: Apache-2.0 OR MIT
2// Copyright (c) EarthCraft contributors & Nerthus contributors (adapted under MIT License)
3//! Round 2 (`GEO-S2`) & Round 3 (`GEO-S3`) Procedural Terrain, 4D Geomorphology,
4//! `.m64` `0x02` Stratigraphic Column, and 323-Province Sentinel-2 Spectral Engine.
5
6pub mod erosion_fixed824;
7pub mod geomorph_qa_report;
8pub mod hydro_stream_power;
9pub mod m64_strata_constituents;
10pub mod noise_simd_lut;
11pub mod terrain_adjust_filter;
12pub mod terrain_dag_workspace;
13pub mod terrain_primitives;
14pub mod terrain_selectors_combine;
15pub mod thermal_snow_glacier;
16
17pub use erosion_fixed824::{
18    carve_meander_channel, f32_to_fixed824, fixed824_to_f32, step_coupled_6species_erosion,
19    step_hydraulic_pipe_fixed824, trace_erosion_droplet, CoupledErosionParams, StrataCell6,
20    FIXED_8_24_SCALE,
21};
22pub use geomorph_qa_report::{
23    audit_geomorph_realism, compute_hacks_law_and_concavity, compute_hypsometric_curve,
24    compute_strahler_order_and_bifurcation, GeomorphQaReport,
25};
26pub use hydro_stream_power::{
27    apply_coastal_wave_cliff_terrace, breach_depressions_least_cost, compute_d8_flow,
28    compute_dinf_flow_accumulation, priority_flood_fill_depressions, step_fastscape_stream_power,
29};
30pub use m64_strata_constituents::{
31    crc32c, derive_surface_constituents, evaluate_sentinel2_biome_albedo, BiomeSpectralStop,
32    M64StrataCell, SurfaceConstituents8, M64_MAGIC, M64_STRATA_SUBMAGIC,
33    SENTINEL2_BIOME_PROVINCE_COUNT,
34};
35pub use noise_simd_lut::{
36    eval_fractal_grid_into, evaluate_fractal_2d, gabor_anisotropic_2d, opensimplex2s_2d,
37    perlin_2d, perlin_2d_deriv, perlin_3d, perm_hash, value_noise_2d, voronoi_2d,
38    wavelet_bandlimited_2d, FractalConfig, FractalMode, VoronoiSample, GRAD3, RANPERM,
39};
40pub use terrain_adjust_filter::{
41    apply_autolevel, apply_clamp_normalize, apply_curve_lut, apply_fold,
42    apply_histogram_equalize, apply_shear_grid, apply_stratify, apply_terrace,
43    filter_aperture_3x3, filter_chamfer_distance_transform, filter_curvature_map,
44    filter_dilate_3x3, filter_erode_morph_3x3, filter_gaussian_5x5, filter_median_3x3,
45};
46pub use terrain_dag_workspace::{
47    DagNodeKernel, DagNodeSpec, TerrainDagError, TerrainDagWorkspace, MAX_DAG_NODES,
48};
49pub use terrain_primitives::{
50    generate_landform_grid_into, sample_landform, LandformKind, LandformParams,
51};
52pub use terrain_selectors_combine::{
53    apply_post_process_chain, combine_layers, domain_warp_grid, select_ambient_occlusion,
54    select_convexity_protrusion, select_flow_accumulation_proxy, select_height,
55    select_rock_exposure_and_treeline, select_slope_aspect, selector_band_weight, CombineMode,
56    PostProcessOp,
57};
58pub use thermal_snow_glacier::{
59    step_aeolian_sand_saltation, step_glacier_sia_carving, step_landslide_debris_runout,
60    step_snow_wind_and_avalanche, step_thermal_talus_creep,
61};