Volume Rendering require coloring array to be set to work correctly
Describe the bug
F3D recently decoupled --scalars into --scalar-coloring and --coloring-array option, however this is an unepexted effect on --volume behavior when not using --scalar-coloring
To Reproduce Steps to reproduce the behavior:
- Open the file using
f3d --dry-run ../src/testing/data/waveletArrays.vti -v --coloring-array=Result -b - Incorrect array is used
Expected behavior Correct array is used for rendering
F3D Information
Paste the content of f3d --version: master
Additional context
A workaround is to have -s in the command line.
Should not be fixed before https://github.com/f3d-app/f3d/pull/1609 is merged
This is caused by the vtkF3DRendererWithColoring::SetColoring with enable set to false which in turn ignore the array name.
Fixing this is more work than I expected due to design choices in the vtkF3DRenderer. I think creating a new class for handling the coloring cycle logic would be beneficial to both the vtkF3DMetaImporter and vtkF3DRenderer.