← Feel++ discussions

Portfolio

Generating urban landscape meshes using CGAL

Read and comment on GitHub ↗

Original GitHub text, preserved in its published language. This text describes the situation at its publication date. Comments are available on GitHub.

Exa-MA WP1 - Terrain Mesh Generation Internship

Objective

During my internship, I focused on improving the terrain mesh generation process for urban energy simulations as part of the Exa-MA[^1] project at Cemosis[^2]. The goal was to optimize the 3D geometric reconstruction of urban landscapes by generating constrained triangulated meshes aligned with contour lines, reducing unnecessary complexity in flat areas.

Key Components

1. Terrain Mesh Generation

  • Lambda-Generated Meshes:
    • Half-Sphere Terrain:
      • This mesh was generated using a lambda function representing a half-sphere:
generated-lambda-1
  • Wave-Like Terrain:
    • Another lambda-generated mesh with a wave-like surface:
generated-lambda-2
  • GPS Data-Driven Meshes:
    • Grenoble, France (Zoom Level 16):
      • A real-world terrain mesh generated using elevation data from the Mapbox Terrain-RGB API[^3]. This high-resolution mesh captures the detailed topography of Grenoble.
generated-gps

2. Contour Line Generation

  • Implemented a method to generate and constrain terrain meshes along contour lines:
contour-gps

3. Re-Triangulation

  • Using the CGAL[^4] library, the contour-constrained meshes were re-triangulated:
constrained-gpsconstrained-gps-side

Impact and Future Work

The developed framework successfully reduces mesh complexity, making large-scale urban energy simulations more computationally efficient. Future work could involve merging multiple tiles for broader terrain coverage, optimizing performance for larger datasets, and integrating urban elements like buildings and vegetation to create comprehensive 3D urban models.

More information on the terrain mesh generation methods and visualizations can be found here.

References

[^1]: Exa-MA. Methods and Algorithms for Exascale. 2024. Available at: Exa-MA [^2]: Cemosis. Center for Modeling and Simulation in Strasbourg. 2024. Available at: Cemosis [^3]: Mapbox. Mapbox Terrain-RGB v1. Mapbox Documentation. 2024. Available at Mapbox Terrain-RGB v1 [^4]: CGAL: The Computational Geometry Algorithms Library. 2024. Available at: CGAL