#5019 Use the static methods to color intersections as well

Move all the color/texture  generation methods into a separate tools class.
(Only scope wise)
This commit is contained in:
Jacob Støren
2019-11-20 13:01:25 +01:00
parent 46f335ad0b
commit cd08185678
7 changed files with 182 additions and 311 deletions

View File

@@ -223,3 +223,12 @@ private:
std::array<float, 8> m_weights;
int m_count;
};
class RivIntersectionGeometryGeneratorIF
{
public:
virtual bool isAnyGeometryPresent() const = 0;
virtual const std::vector<size_t>& triangleToCellIndex() const = 0;
virtual const std::vector<RivIntersectionVertexWeights>& triangleVxToCellCornerInterpolationWeights() const = 0;
virtual const cvf::Vec3fArray* triangleVxes() const = 0;
};