Skip to content
Permalink
Browse files

fix and improve test

  • Loading branch information
vcloarec authored and nyalldawson committed Oct 12, 2020
1 parent 5aba56c commit 364e2e92d732b2c25e9007f29a8df83b48811d39
@@ -140,14 +140,15 @@ void TestQgs3DRendering::initTestCase()
QVERIFY( mLayerMeshDataset->isValid() );
mLayerMeshDataset->setCrs( mLayerDtm->crs() ); // this testing mesh does not have any CRS defined originally
mLayerMeshDataset->temporalProperties()->setIsActive( false );
mLayerMeshDataset->setStaticScalarDatasetIndex( QgsMeshDatasetIndex( 0, 0 ) );
mLayerMeshDataset->setStaticScalarDatasetIndex( QgsMeshDatasetIndex( 1, 0 ) );
mLayerMeshDataset->setStaticVectorDatasetIndex( QgsMeshDatasetIndex( 2, 0 ) );
mProject->addMapLayer( mLayerMeshDataset );
mProject->addMapLayer( mLayerMeshDataset );

QgsMesh3DSymbol *symbolMesh3d = new QgsMesh3DSymbol;
symbolMesh3d->setVerticalDatasetGroupIndex( 0 );
symbolMesh3d->setVerticalScale( 10 );
symbolMesh3d->setRenderingStyle( QgsMesh3DSymbol::ColorRamp2DRendering );
symbolMesh3d->setArrowsEnabled( true );
symbolMesh3d->setArrowsSpacing( 300 );
QgsMeshLayer3DRenderer *meshDatasetRenderer3d = new QgsMeshLayer3DRenderer( symbolMesh3d );
Binary file not shown.

0 comments on commit 364e2e9

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