[vtkusers] How to find range of data in Cell Scalar Array?

scotsman60 doug at beachmailing.com
Sun Dec 17 20:32:46 EST 2017


Hello,

I'm using vtk in a Python app and I need to set parameters on a lookup table
based on the range of values in an integer scalar array associated to Cells
in a vtkUnstructuredGrid.

I can access the array ,

name = self.mesh.GetCellData().GetArrayName('PID') 

where self.mesh is my vtkUnstructuredGrid

But how can I find the unique value sin this array?

I need something like numpy.unique () - is there a vtk method available?

Thanks in advance,


Doug  



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list