#7742 Contour map : Fix mix of global grid and result index

Always use globalGridCellIndex for grid cells
Always use resultGridIndex for result property vectors
This commit is contained in:
Magne Sjaastad
2021-06-03 14:33:04 +02:00
parent 33a1bbb6d6
commit e1e7201b9b
2 changed files with 19 additions and 23 deletions

View File

@@ -142,6 +142,7 @@ protected:
const cvf::Vec3d& lowestPoint ) const = 0;
virtual double getParameterWeightForCell( size_t globalCellIdx, const std::vector<double>& parameterWeights ) const = 0;
// Use this function to get the result index into grid cell results. The index will differ if we have active cells
virtual size_t gridResultIndex( size_t globalCellIdx ) const;
double calculateValueInMapCell( uint i, uint j, const std::vector<double>& gridCellValues ) const;