Skip to content

Commit

Permalink
remove sorting nodes in 2D renderering
Browse files Browse the repository at this point in the history
  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed Feb 10, 2021
1 parent 19e4617 commit ed4db04
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/core/pointcloud/qgspointcloudlayerrenderer.cpp
Expand Up @@ -168,12 +168,7 @@ bool QgsPointCloudLayerRenderer::render()
return false;
}
double rootErrorPixels = rootErrorInMapCoordinates / mapUnitsPerPixel; // in pixels
QVector<IndexedPointCloudNode> nodes = traverseTree( pc, context.renderContext(), pc->root(), maximumError, rootErrorPixels );

std::sort( nodes.begin(), nodes.end(), []( IndexedPointCloudNode & n1, IndexedPointCloudNode & n2 )
{
return n1.d() < n2.d();
} );
const QVector<IndexedPointCloudNode> nodes = traverseTree( pc, context.renderContext(), pc->root(), maximumError, rootErrorPixels );

QgsPointCloudRequest request;
request.setAttributes( mAttributes );
Expand Down

0 comments on commit ed4db04

Please sign in to comment.