Hi, I use GradientOfUnstructuredDataSet to get Gradients. I can see the Gradients_0, ..., Gradients_8 on the Scalars part if I add a new Calculator filter after the GradientOfUnstructuredDataSet filter. My question is how to get these Gradients_0, ..., Gradients_8 in Python Shell or Programmable Filter? I would like to do some data process with them.
I tried to get by this way: reader = GetActiveSource() gradientsAll = reader.PointData.GetArray(1) # suppose the Gradients is the second variables in the data list gradientsAll.GetRange(0) # I can see the range of the 9 gradient scalars but I cannot access the data I want to create a Jacobi matrix of these 9 gradients to calculate other support matrix and the eigenvalues (for example, to get the Lambda2 criterion). I also need the number of points. I check the proxy but have no idea which function can be used. Any suggestion or example of codes will be very appreciated! Thanks, Mei Chen
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
