Skip to content
Permalink
Browse files

fix typo and switch with dataOnEdges

  • Loading branch information
vcloarec authored and PeterPetrik committed Mar 9, 2020
1 parent 42bc065 commit ba37a9c571c399fbfa3a0ab676aec70207ba07b7
@@ -73,6 +73,7 @@ class _3D_EXPORT QgsAbstract3DEngine : public QObject
* Only one image request can be active at a time.
*/
virtual void requestCaptureImage() = 0;

/**
* Returns the surface of the engine
*
@@ -37,7 +37,7 @@ uniform bool arrowsEnabled;
uniform sampler2D arrowsGridTexture;
// Sets the location of the minimum corner of the grid
uniform vec2 arrowsMinCorner;
// Sets the spacing beteen arrows in map unit
// Sets the spacing between arrows in map unit
uniform float arrowsSpacing;
// Sets the texture used for drawing arrows
uniform sampler2D arrowTexture;
@@ -293,6 +293,7 @@ class _3D_EXPORT QgsMesh3DSymbol : public QgsAbstract3DSymbol
* \since QGIS 3.14
*/
bool arrowsFixedSize() const;

/**
* Sets if the arrow size is fixed
*
@@ -125,6 +125,10 @@ QVector<QgsVector> QgsMeshLayerUtils::griddedVectorValues( const QgsMeshLayer *m

const QgsMeshDataBlock isFacesActive = meshLayer->dataProvider()->areFacesActive( index, 0, nativeMesh->faceCount() );
const QgsMeshDatasetGroupMetadata::DataType dataType = meta.dataType();

if ( dataType == QgsMeshDatasetGroupMetadata::DataOnEdges )
return vectors;

vectors.reserve( size.height()*size.width() );
for ( int iy = 0; iy < size.height(); ++iy )
{
@@ -159,6 +163,8 @@ QVector<QgsVector> QgsMeshLayerUtils::griddedVectorValues( const QgsMeshLayer *m
value = QgsMeshDatasetValue( x, y );
}
break;
case QgsMeshDatasetGroupMetadata::DataOnEdges:
break;
}
}
vectors.append( QgsVector( value.x(), value.y() ) );

0 comments on commit ba37a9c

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