How to visualize 2d array of doubles in vtk?
问题 I have 2d array (of size 20x30) of doubles: double a[20*30]; How to visualize it using VTK? It is extremely difficult to find proper documentation. The closest example which I found is this, however it uses as input 3 unsigned chars which represents color. As I understand I should use vtkScalarsToColors class to somehow map scalars to colors, but I can't figure out how to put everything into single piece of code. 回答1: What you probably want to do is to assign scalars to points or cells of a