Setting multiple scalars in point data

Looks like your second call to SetScalars simply replaces the data set in the first call.
I’m no expert on vtk data structures but from what I can say from a quick search, you probably need to use AddArray instead.

Edit: Now I found this bug which seems to indicate that the SetScalars method is a bit dated and probably should be avoided.

1 Like