Re: [Paraview] Extract cell type from unstructured grid

2009-02-19 Thread Berk Geveci
And then use the Cell Types array in the Threshold filter, I guess? -berk On Wed, Feb 18, 2009 at 11:55 AM, Moreland, Kenneth kmo...@sandia.gov wrote: Paul, I don't know of any existing filter to do that, but a pretty simple programmable filter can do it. Here is the script that will

[Paraview] Extract cell type from unstructured grid

2009-02-18 Thread Paul Edwards
Hello, Does anyone know an easy way to extract all cells of a particular type from an unstructured grid (without writing code either a plugin or python script)? I was thinking it be possible with the calculator and the number of points in a cell but I can't get access to that. Thanks, Paul

Re: [Paraview] Extract cell type from unstructured grid

2009-02-18 Thread Moreland, Kenneth
Paul, I don't know of any existing filter to do that, but a pretty simple programmable filter can do it. Here is the script that will achieve it. Just create a custom filter and copy this into the script. input = self.GetUnstructuredGridInput() output = self.GetUnstructuredGridOutput()