diff --git a/NeighborhoodFeature.cpp b/NeighborhoodFeature.cpp index 1b3aa5f..e415290 100644 --- a/NeighborhoodFeature.cpp +++ b/NeighborhoodFeature.cpp @@ -304,9 +304,9 @@ bool NeighborhoodFeature::computeValue(CCCoreLib::DgmOctree::NeighboursSet& poin minZ = maxZ = pointsInNeighbourhood[0].point->z; for (size_t i = 1; i < kNN; ++i) { - if (minZ < pointsInNeighbourhood[i].point->z) + if (minZ > pointsInNeighbourhood[i].point->z) minZ = pointsInNeighbourhood[i].point->z; - else if (maxZ > pointsInNeighbourhood[i].point->z) + else if (maxZ < pointsInNeighbourhood[i].point->z) maxZ = pointsInNeighbourhood[i].point->z; } diff --git a/q3DMASCTools.cpp b/q3DMASCTools.cpp index 3bd3655..5994b5c 100644 --- a/q3DMASCTools.cpp +++ b/q3DMASCTools.cpp @@ -687,8 +687,8 @@ bool Tools::LoadFile( const QString& filename, { loadParameters.alwaysDisplayLoadDialog = true; loadParameters.shiftHandlingMode = ccGlobalShiftManager::DIALOG_IF_NECESSARY; - loadParameters._coordinatesShift = &loadCoordinatesShift; - loadParameters._coordinatesShiftEnabled = &loadCoordinatesTransEnabled; + loadParameters._coordinatesShift = &loadCoordinatesShift; + loadParameters._coordinatesShiftEnabled = &loadCoordinatesTransEnabled; loadParameters.parentWidget = parent; FileIOFilter::ResetSesionCounter(); } @@ -1137,7 +1137,7 @@ bool Tools::PrepareFeatures(const CorePoints& corePoints, Feature::Set& features for (int i = 0; i < static_cast(pointCount); ++i) { //spherical neighborhood extraction structure - CCCoreLib::DgmOctree::NearestNeighboursSearchStruct nNSS; + CCCoreLib::DgmOctree::NearestNeighboursSearchStruct nNSS; { nNSS.level = octreeLevel; nNSS.queryPoint = *corePoints.cloud->getPoint(i);