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

[MESH] fix streamlines and traces renderer when vector is null #36633

Merged
merged 2 commits into from
May 23, 2020

Conversation

vcloarec
Copy link
Member

In mesh rendering, the streamlines and the trace renderers didn't stop when vector magnitude was null.
This PR fix this issue

@vcloarec vcloarec added Bug Either a bug report, or a bug fix. Let's hope for the latter! Mesh Related to general mesh layer handling (not specific data formats) labels May 22, 2020
Copy link
Contributor

@PeterPetrik PeterPetrik left a comment

Choose a reason for hiding this comment

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

it fixes which ticket? i think there is missing issue # in the description

@@ -550,6 +550,9 @@ void QgsMeshLayerRenderer::renderVectorDataset()
if ( std::isnan( mVectorDatasetMagMinimum ) || std::isnan( mVectorDatasetMagMaximum ) )
return; // only NODATA values

if ( !( mVectorDatasetMagMaximum > 0 ) )
Copy link
Contributor

Choose a reason for hiding this comment

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

mVectorDatasetMagMaximum <= 0

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed, I hesitated, but I found more explicit >0

@@ -429,6 +430,9 @@ void QgsMeshStreamField::addTrace( QPoint startPixel )
if ( !mVectorValueInterpolator )
return;

if ( !( mMaximumMagnitude > 0 ) )
Copy link
Contributor

Choose a reason for hiding this comment

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

mVectorDatasetMagMaximum <= 0

@vcloarec
Copy link
Member Author

I found this issue without ticket during temporal tries. Maybe fix #35888, but very not sure.

@PeterPetrik
Copy link
Contributor

related #35888

@PeterPetrik PeterPetrik merged commit 42ba3d7 into qgis:master May 23, 2020
@PeterPetrik
Copy link
Contributor

Merged the ticket, I have

@vcloarec vcloarec deleted the fixTraceRenderer branch July 1, 2020 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Mesh Related to general mesh layer handling (not specific data formats)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants