Hi all,
I’ve got a vtkPolyData with 2 attached arrays:
- an int array which represents strength
- a double array which represents opacity.
I want to colour this data according to a LookupTable - through a vtkPolyMapper. However, I need to colour my data according to the int array, but set the opacity of each point through the double array.
The naive solution would be to have an enormous lookuptable (sizeof(doublearray)*siuzeof(lengtharray) and have one entry for each possible int + double pair. However, I was hoping there would be some way to do this via vtk inbuilt solutions, instead of having to manually calculate these values.
Is such a thing possible?