Construct an unstructured grid from arrays

Dear all,

I have some coordinates (XYZ) with associated array-fields (density, pressure, velocity…). I need them to be a continuous grid because I have to compute gradients (vorticiy, density gradients, Q-criterion…). Is it possible to generate an unstructured grid from numpy arrays using a programmable filter? Thank you in advance!

Kind regards,


You may look at the VTK python examples: