Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
remove sorting nodes in 2D renderering
- Loading branch information
Showing
with
1 addition
and
6 deletions.
-
+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 ); |
|
|