Daniel,

As you have discovered, trying to “connect” data sets in this way after the 
clip filter is applied is problematic because it changes the locations of 
points and the structure of cells. It makes the grids no longer isomorphic or 
sub-isomorphic.

I would suggest one of two approaches. The first approach would be to combine 
all the data arrays into one data set before doing any of the extractions, 
thresholds, or clips. If all your arrays are on data sets with the exact same 
grid structure, then you can use the append attributes filter to combine the 
arrays of all these data sets into a single data set. Then the arrays will 
simply be available from the output of the clip.

If that approach will not work for some reason, a second approach is to use the 
resample with dataset filter. You can use this to sample the other data sets 
onto the clipped data set, which I think in the end gives you the effect you 
are looking for.

-Ken


From: ParaView <paraview-boun...@paraview.org> on behalf of Daniel Frisch 
<daniel.frisch....@gmail.com>
Date: Tuesday, January 31, 2017 at 1:20 AM
To: "paraview@paraview.org" <paraview@paraview.org>
Subject: [EXTERNAL] [Paraview] Generate IDs

Hello, I want to

- open an unstructured grid,
- view a sub-volume using the Threshold filter that selects a certain material
- apply some Clip filters to remove unwanted parts
- select everything I am seeing now
- and create an "Extract Selection" filter that can be used for other vtk files 
containing the same unstructured grid but other data arrays.

But the "GenerateIDs" filter removes the material array from the dataset so I 
can't apply the Threshold filter anymore. I see the "Extract Selection" works 
only with the current IDs anyway that are different from the original cell IDs 
due to the Clip filters.

How can I have a filter that extracts a certain set of cells that I define and 
apply it to other .vtk files?

Thank you very much in advance,
Daniel
_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to