Skip to content
Permalink
Browse files

fix travis

  • Loading branch information
PeterPetrik committed Jan 24, 2019
1 parent 967893a commit c90905bd65bc44442eafca2bf626152ceff5a34d
Showing with 9 additions and 1 deletion.
  1. +3 −1 src/core/mesh/qgsmeshspatialindex.cpp
  2. +6 −0 tests/src/3d/testqgs3drendering.cpp
@@ -27,6 +27,8 @@

using namespace SpatialIndex;

///@cond PRIVATE

static Region faceToRegion( const QgsMesh &mesh, int id )
{
const QgsMeshFace face = mesh.face( id );
@@ -288,7 +290,7 @@ class QgsMeshSpatialIndexData : public QSharedData

};

// -------------------------------------------------------------------------
///@endcond

QgsMeshSpatialIndex::QgsMeshSpatialIndex()
{
@@ -24,6 +24,7 @@
#include "qgssinglebandpseudocolorrenderer.h"
#include "qgsvectorlayer.h"
#include "qgsmeshlayer.h"
#include "qgsmeshrenderersettings.h"

#include "qgs3dmapscene.h"
#include "qgs3dmapsettings.h"
@@ -104,6 +105,11 @@ void TestQgs3DRendering::initTestCase()
mLayerMesh = new QgsMeshLayer( dataDir + "/mesh/quad_flower.2dm", "mesh", "mdal" );
QVERIFY( mLayerMesh->isValid() );
mLayerMesh->setCrs( mLayerDtm->crs() ); // this testing mesh does not have any CRS defined originally
// disable rendering of scalar 2d datasets for now
QgsMeshRendererSettings settings = mLayerMesh->rendererSettings();
settings.setActiveScalarDataset();
settings.setActiveVectorDataset();
mLayerMesh->setRendererSettings( settings );
mProject->addMapLayer( mLayerMesh );

QgsPhongMaterialSettings meshMaterial;

0 comments on commit c90905b

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