Skip to content
Permalink
Browse files

Fix bounding boxes of point cloud chunks

  • Loading branch information
wonder-sk authored and nyalldawson committed Oct 26, 2020
1 parent fea3c21 commit 66ce1a602b63d3be3a3617eb99864621334d2bc9
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/3d/qgspointcloudlayerchunkloader_p.cpp
@@ -303,8 +303,9 @@ QVector<QgsChunkNode *> QgsPointCloudLayerChunkLoaderFactory::createChildren( Qg
// while in our 3D scene the X,Z axes define the horizontal plane
float chXMin = dx ? xc : bbox.xMin;
float chXMax = dx ? bbox.xMax : xc;
float chZMin = dy ? zc : bbox.zMin;
float chZMax = dy ? bbox.zMax : zc;
// Z axis: values are increasing to the south
float chZMin = !dy ? zc : bbox.zMin;
float chZMax = !dy ? bbox.zMax : zc;
float chYMin = dz ? yc : bbox.yMin;
float chYMax = dz ? bbox.yMax : yc;
children << new QgsChunkNode( childId, QgsAABB( chXMin, chYMin, chZMin, chXMax, chYMax, chZMax ), childError, node );

0 comments on commit 66ce1a6

Please sign in to comment.
You can’t perform that action at this time.