Skip to content

Support multipolygon building holes and fix indoor highway bridges#756

Merged
louis-e merged 2 commits intomainfrom
multipolygon-buildings-and-indoor-highways
Feb 14, 2026
Merged

Support multipolygon building holes and fix indoor highway bridges#756
louis-e merged 2 commits intomainfrom
multipolygon-buildings-and-indoor-highways

Conversation

@louis-e
Copy link
Owner

@louis-e louis-e commented Feb 14, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 14, 2026 20:59
@github-actions
Copy link

⏱️ Benchmark run finished in 0m 34s
🧠 Peak memory usage: 1100 MB

📈 Compared against baseline: 30s
🧮 Delta: 4s
🔢 Commit: 78882ba

🟢 Generation time is unchanged.

📅 Last benchmark: 2026-02-14 21:02:51 UTC

You can retrigger the benchmark by commenting retrigger-benchmark.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the OSM-to-world generation pipeline to better handle building relations with inner rings (courtyards/holes) and to avoid incorrect bridge/support generation for indoor highways.

Changes:

  • Expand building-relation detection and member-role handling in osm_parser for building-tagged multipolygons.
  • Add inner-ring (“hole”) support for building relations and render courtyard walls in the building generator.
  • Adjust highway layer handling to treat indoor ways as ground-level.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
src/osm_parser.rs Treat building-tagged multipolygon relations as building relations and adjust default member-role handling.
src/element_processing/highways.rs Clamp negative layer and force layer_value=0 for indoor=yes ways.
src/element_processing/buildings.rs Introduce hole polygons, subtract hole areas from the filled footprint, and render walls for inner rings in building relations.
src/data_processing.rs Update generate_buildings call-site for the new hole_polygons argument.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@louis-e louis-e merged commit ffbdd22 into main Feb 14, 2026
2 checks passed
@louis-e louis-e deleted the multipolygon-buildings-and-indoor-highways branch February 14, 2026 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants