Skip to main content

Module vector_scene

Module vector_scene 

Source
Expand description

Bounded OSM vector geometry to local render meshes.

This is a per-render-tile compiler, not a national GIS store. It projects source WGS84 coordinates into a local ENU frame, preserves source identity beside the resulting mesh, and lets callers drape geometry against a separately sourced elevation field. A larger Australian place is compiled as many independently streamed tiles.

Structs§

OsmRenderedFeature
A per-feature render mesh with its OSM source facts retained alongside it.
VectorSceneFrame
Local WGS84 tangent frame and cold-build limits for one render tile.

Enums§

OsmVectorStyle
Game-authored presentation intent for one OSM geometry.

Functions§

compile_osm_feature_mesh
Compile one validated feature in a local ENU frame, using its WGS84 elevations as the fallback surface. Geometry with parser diagnostics is refused so incomplete ways or relations cannot silently become art.
compile_osm_feature_mesh_draped
Compile one feature and sample a caller-owned local terrain surface at every emitted vertex. The sampler returns metres above frame.origin_alt_m; returning None rejects the feature instead of leaving an undraped gap.