Hello,
I have three vtkDoubleArray 3D scalar fields in my Python VTK pipeline:
bx = resample.GetOutput().GetPointData().GetArray("Bx")
by = resample.GetOutput().GetPointData().GetArray("By")
bz = resample.GetOutput().GetPointData().GetArray("Bz")
How do I create a single vector field from these three components, without cycling through all data points explicitly (these arrays are large)? I assume I would start with
vector = vtk.vtkFloatArray()
vector.SetName("B")
vector.SetNumberOfComponents(3)
How do I specify the components?
Thank you.