cityGen.package
This package holds more than this page lists. See all of its files in its world.
README.md
relief
This module generates landforms from a topographic sketch, as defined in a template's terrain.relief section. It interprets spot heights and lines (ridgelines, valley floors, shelves) as a set of weighted samples. The surface is calculated as a Gaussian-weighted mean of these samples, resulting in a smooth, natural-looking terrain where features are shaped by their specified radii. It provides functions to process the relief sketch into samples, calculate the height at any given point on the surface, and generate a coarse grid of height values suitable for rendering or further processing. It is called by city generation stages that need to define or query the terrain's elevation.