Closed rubenverhack closed 4 years ago
vtk version 9.0.0 on Ubuntu 20.04 using python 3.8.2
itk-vtk-viewer version 10.2.1
I suspect that the differnce between the renderer and itk-vtk-viewer might lay in:
mapper.SetColorModeToDirectScalars()
Is there a way to enable this?
@rubenverhack thank you for the kind words and detailed, reproducible issue!
Yes, #300 will address this:
That was fast! Thank you!
Thank you for the development of this great tool!
I'm new to VTK, but I was implementing a Python script that reads two VTk files, combines them using an AppendFilter and writes them to a file.
I have noticed that if I render the output file using the following script. The colors are rendered correctly. However, if I open the file using itk-vtk-viewer, then the whole object is a single color.
There might be an issue with how the file was created, so I added the script for combining the two vtk objects as well. object-.zip
Output in itk-vtk-viewer:
Output in renderer:
output.zip
Script to combine the two VTK files: