Skip to content

Commit

Permalink
typo and fix active face
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec authored and wonder-sk committed Apr 1, 2021
1 parent 1cf2d11 commit b90bbc9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
9 changes: 0 additions & 9 deletions src/3d/mesh/qgsmesh3dgeometry_p.cpp
Expand Up @@ -218,15 +218,6 @@ QgsMeshDataset3dGeometry::QgsMeshDataset3dGeometry(
prepareData();
}

QgsMeshDataset3dGeometry::~QgsMeshDataset3dGeometry()
{
// if ( mBuilder && mBuilder->isBuilding() )
// {
// mBuilder->cancel();
// mBuilder->waitForFinished();
// }
}

void QgsMeshDataset3dGeometry::getData()
{
const QByteArray indexData = mBuilder->indexData();
Expand Down
8 changes: 3 additions & 5 deletions src/3d/mesh/qgsmesh3dgeometry_p.h
Expand Up @@ -93,7 +93,7 @@ class QgsMesh3DGeometryBuilder: public QObject


/**
* Abstract class for creating attributes and vertex/index buffers for a mesh layer
* Base class for creating attributes and vertex/index buffers for a mesh layer
*/
class QgsMesh3dGeometry: public Qt3DRender::QGeometry
{
Expand Down Expand Up @@ -134,7 +134,7 @@ class QgsMeshDataset3DGeometryBuilder;
* Base class for creating attributes and vertex/index buffers for mesh dataset
*
* On creation, the instance prepare all needed data from the mesh layer but 3D geometry is not defined.
* Then the instance launches immediatly another thread that constructs 3D vertices, faces and scalar value on vertices
* Then the instance launches immediately another thread that constructs 3D vertices, faces and scalar value on vertices
* depending on the dataset chosen for vertical magnitude and the one for scalar magnitude (color rendering).
*
* When this job is finished, the mesh datset 3D geometry node is updated and can be rendered in the 3D scene.
Expand All @@ -151,8 +151,6 @@ class QgsMeshDataset3dGeometry: public QgsMesh3dGeometry
const QgsMesh3DSymbol *symbol,
QNode *parent );

~QgsMeshDataset3dGeometry();

//! Data sended to the other thread to consctruct the 3D geometry
struct VertexData
{
Expand Down Expand Up @@ -204,7 +202,7 @@ class QgsMeshDataset3DGeometryBuilder: public QgsMesh3DGeometryBuilder
/**
* Base class for creating attributes and vertex/index buffers for a mesh dataset
*
* On creation, the instance launches immediatly another thread that constructs 3D vertices, faces of the mesh based on the mesh vertices z value.
* On creation, the instance launches immediately another thread that constructs 3D vertices, faces of the mesh based on the mesh vertices z value.
* When this job is finished, the mesh terrain 3D geometry node is updated and can be rendered in the 3D scene.
*/
class QgsMeshTerrain3dGeometry: public QgsMesh3dGeometry
Expand Down
2 changes: 1 addition & 1 deletion src/core/mesh/qgsmeshlayerutils.cpp
Expand Up @@ -369,7 +369,7 @@ QVector<double> QgsMeshLayerUtils::interpolateFromFacesData( const QVector<doubl
activeFace = *active;
else
{
activeFace = QgsMeshDataBlock();
activeFace = QgsMeshDataBlock( QgsMeshDataBlock::ActiveFlagInteger, nativeMesh.faceCount() );
activeFace.setValid( true );
}

Expand Down

0 comments on commit b90bbc9

Please sign in to comment.