-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qgsmesh3geometry: Limit geometry to 3d scenes' 2d extent
This is a follow-up of qgis#51304 which did not handle mesh layers. This commit adds this support. The meshes displayed in a 3d view do not take into account the scene 2d extent. This issue is fixed by filtering the faces which are used to build the Qt3D geometry. By using `mesh.faceIndexesForRectangle( extent )`, it is possible to keep the faces inside `extent`. This list is then used to populate the `IndexAttribute` of the qt3d geometry. This way, only the faces inside the extent are displayed.
- Loading branch information
1 parent
4f345e7
commit 4cf8344
Showing
5 changed files
with
84 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Binary file added
BIN
+15.9 KB
...estdata/control_images/3d/expected_mesh3d_filtered/expected_mesh3d_filtered.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.