Skip to content

Commit

Permalink
more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCaha committed Oct 5, 2024
1 parent 62fa703 commit eae1ba0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/analysis/processing/qgsalgorithmmeshsurfacetopolygon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,6 @@ bool QgsMeshSurfaceToPolygonAlgorithm::prepareAlgorithm( const QVariantMap &para

mNativeMesh = *meshLayer->nativeMesh();

if ( feedback )
{
feedback->pushInfo( QObject::tr( "Preparing data" ) );
}

return true;
}

Expand Down Expand Up @@ -182,6 +177,7 @@ QVariantMap QgsMeshSurfaceToPolygonAlgorithm::processAlgorithm( const QVariantMa
feedback->setProgress( 0 );
feedback->setProgressText( "Parsing mesh edges." );
}

std::unique_ptr<QgsMultiLineString> multiLineString( new QgsMultiLineString() );

int i = 0;
Expand All @@ -199,6 +195,7 @@ QVariantMap QgsMeshSurfaceToPolygonAlgorithm::processAlgorithm( const QVariantMa
std::unique_ptr<QgsLineString> line( new QgsLineString( mNativeMesh.vertex( it.key().first ), mNativeMesh.vertex( it.key().second ) ) );
multiLineString->addGeometry( line.release() );
}

if ( feedback )
feedback->setProgress( 100 * i / edges.size() );

Expand Down

0 comments on commit eae1ba0

Please sign in to comment.