Skip to content
Permalink
Browse files

remove sorting nodes in 2D renderering

  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed Feb 10, 2021
1 parent 19e4617 commit ed4db04a78e891963b1fb1191a402bc0a3e206b3
Showing with 1 addition and 6 deletions.
  1. +1 −6 src/core/pointcloud/qgspointcloudlayerrenderer.cpp
@@ -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 );

0 comments on commit ed4db04

Please sign in to comment.