VRML Exporter disregards UseLookupTableScalarRangeOn on LookupTables
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
In its (internal) PolyDataMapper the exporter "copies" ScalarRange from the actor (Get/Set), disregarding UseLookupTableScalarRangeOn if such done. As a result the lookup table (colors) gets reset to the defaout range 0..1. Remark: I do not now if "by design" the GetScalarRange shall (only) return what has been "Sat" (diregarding UseLookupTableScalarRangeOn) OR if any Exporter shall check UseLookupTableScalarRangeOn and go the other (now missing) way.
My Code: contourMapper.ScalarVisibilityOn(); contourMapper.SetLookupTable(_LookupTable); contourMapper.UseLookupTableScalarRangeOn(); // otherwise Mapper overwites lut range!
and in vtkVRMLExporter: pm = vtkPolyDataMapper::New(); pm->SetInput(pd); pm->SetScalarRange(anActor->GetMapper()->GetScalarRange()); <================?????? pm->SetScalarVisibility(anActor->GetMapper()->GetScalarVisibility()); pm->SetLookupTable(anActor->GetMapper()->GetLookupTable()); pm->SetScalarMode(anActor->GetMapper()->GetScalarMode());
i.e. no check if UseLookupTableScalarRangeOn used instead