[3D] Add extrusion support#7629
Open
mohsenD98 wants to merge 5 commits into
Open
Conversation
Collaborator
🍎 MacOS DMG universal buildsDownload a MacOS DMG universal build of this PR for testing. 📱 Android buildsDownload an Android arm64 build of this PR for testing. Other Android architectures🪟 Windows buildsDownload a Windows build of this PR for testing and for arm64. (Built from commit 437c5c9) 🐧 Linux AppImage buildsDownload a Linux AppImage build of this PR for testing. |
…on into geometry generation
… material settings for opaque extruded geometry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 Description
Adds optional polygon extrusion to the 3D feature selection highlight. When a selected polygon's layer carries a height attribute, the highlight is rendered as a volumetric solid (vertical walls + a roof cap) instead of a flat fill, with
the height taken per-feature from that attribute.
✨ Key Changes
generatePolygonWalls().extrusionHeightproperty.extrusionHeightmodel role, backed byLayerUtils::guessFriendlyHeightField().ℹ️ How the extrusion height is determined
LayerUtils::guessFriendlyHeightField()scans the layer's numeric fields for a name matching candidate list (extrusion,height). The model role returns that field's value for each feature. When no suitable field exists it returns 0, so polygons keep rendering flat exactly as before.🐛 A bug Fix: Terrain sampling (independent fix in this branch)
Quick3DTerrainProvidernow rejects gross low DEM outliers: extreme low samples are marked as missing so isolated DEMspikes no longer drag down the computed height range.Demo
Screencast.From.2026-06-24.20-37-40.mp4