mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: scalarBar range ignored in runTimePostProcessing
- was missing range setting for the colour lookup table
This commit is contained in:
committed by
Andrew Heather
parent
4f93bc3b5e
commit
be3efed44b
@ -515,6 +515,7 @@ setField
|
|||||||
auto lut = vtkSmartPointer<vtkLookupTable>::New();
|
auto lut = vtkSmartPointer<vtkLookupTable>::New();
|
||||||
setColourMap(lut);
|
setColourMap(lut);
|
||||||
lut->SetVectorMode(vtkScalarsToColors::MAGNITUDE);
|
lut->SetVectorMode(vtkScalarsToColors::MAGNITUDE);
|
||||||
|
lut->SetTableRange(range_.first(), range_.second());
|
||||||
|
|
||||||
// Configure the mapper
|
// Configure the mapper
|
||||||
const char* fieldName = colourFieldName.c_str();
|
const char* fieldName = colourFieldName.c_str();
|
||||||
|
|||||||
Reference in New Issue
Block a user