So, i have a vector field i need to display in vtk, i have x and y coordinates (it’s a vector field on a 0 z axis, just a plane) but i also have for every vector a rotation around an axis, so what i’m asking here is, is it possible to apply a transform array or something like that to rotate each vector individually? Or am i forced to create an actor for each vector to display it properly (doesn’t seem good for memory)
Where myInputPoly provides all the positions of the vectors as well as a 3 component vtkDataArray that gives the vectors. ie: myInputPoly->GetPointData()->SetScalars();
It may also be sensitive to the name of the array, I can’t remember. In some old code of mine I have it force the name to “Scalars”.
glyphFilter->GetOutput() should then give you output poly data of a bunch of arrows copied to the positions of myInputPoly, and oriented by the vectors given by the active scalars.