mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2791 Fix tensor vector colors so principal to has a single color.
This commit is contained in:
parent
88cc6ea3f5
commit
57b3ad82a8
@ -399,8 +399,11 @@ void RivTensorResultPartMgr::createOneColorPerPrincipalScalarMapper(const RimTen
|
||||
}
|
||||
|
||||
scalarMapper->setColors(arrowColors);
|
||||
scalarMapper->setRange(0.5, 3.5);
|
||||
scalarMapper->setLevelCount(3, true);
|
||||
|
||||
// Using a linear color mapper to set colors for three discrete principal numbers (1, 2, 3)
|
||||
// by setting the 3 + 1 interval levels so the principal numbers match the center of the intervals.
|
||||
std::set<double> levelValues = { 0.5, 1.5, 2.5, 3.5 };
|
||||
scalarMapper->setLevelsFromValues(levelValues);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user