Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3D] Z component of lines is discarded because of a buffer computation #56158

Open
2 tasks done
ptitjano opened this issue Feb 2, 2024 · 0 comments
Open
2 tasks done
Assignees
Labels
3D Relates to QGIS' 3D engine or rendering Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@ptitjano
Copy link
Contributor

ptitjano commented Feb 2, 2024

What is the bug or the crash?

When displaying lines in a 3D view, the Z component of the lines is completely ignored and therefore they are stuck to the terrain even if altitude clamping is absolute or relative.

Here is a screenshot of a simple line rendered as a simple line. The altitude is correct:

Capture d’écran du 2024-02-02 18-51-16

The same line rendered without the "simple line" flag:

Capture d’écran du 2024-02-02 18-52-50

On the second screenshot, the Z component of the line is completely ignored.
This is because, a buffer of the input lines is computed during the preprocessing stage. This algorithm completely discards the Z component of the geometries:

QgsAbstractGeometry *buffered = engine.buffer( width / 2., nSegments, endCapStyle, joinStyle, mitreLimit ); // factory

Steps to reproduce the issue

  1. Load a vector layer with lines
  2. change the Z symbols of the layers and set altitude clamping to absolute or relative
  3. create a new 3d view
  4. line is displayed along the terrain even if its altitude is different from zero

Versions

3.35.0-Master

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

@ptitjano ptitjano added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Feb 2, 2024
@Djedouas Djedouas added the 3D Relates to QGIS' 3D engine or rendering label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3D Relates to QGIS' 3D engine or rendering Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

No branches or pull requests

2 participants