Skip to content
Permalink
Browse files

qgsmeshlayerutils.cpp: fix warnings about unused variables

  • Loading branch information
rouault authored and nyalldawson committed Jun 13, 2020
1 parent f11eb45 commit 3827aa09f43bee70f1369f9591700d58812b0fc4
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/mesh/qgsmeshlayerutils.cpp
@@ -314,6 +314,7 @@ QVector<double> QgsMeshLayerUtils::interpolateFromFacesData(
QgsMeshRendererScalarSettings::DataResamplingMethod method )
{
assert( nativeMesh );
Q_UNUSED( method );
assert( method == QgsMeshRendererScalarSettings::NeighbourAverage );

// assuming that native vertex count = triangular vertex count
@@ -366,9 +367,11 @@ QVector<double> QgsMeshLayerUtils::resampleFromVerticesToFaces(
QgsMeshRendererScalarSettings::DataResamplingMethod method )
{
assert( nativeMesh );
Q_UNUSED( method );
assert( method == QgsMeshRendererScalarSettings::NeighbourAverage );

// assuming that native vertex count = triangular vertex count
Q_UNUSED( triangularMesh );
assert( nativeMesh->vertices.size() == triangularMesh->vertices().size() );

QVector<double> ret( nativeMesh->faceCount(), std::numeric_limits<double>::quiet_NaN() );

0 comments on commit 3827aa0

Please sign in to comment.
You can’t perform that action at this time.