Extract subset that is not a box from structured data

I know I can use the Extract Subset-filter to extract a box from a Structured Grid and the output will also be a Structured Grid. What do I do if I want to extract a more complex subset and still have the output be a Structured Grid? Are there other filters apart from Extract Subset I can use?

What I really want to do is compute the intersection of a Structured Grid with another object, a Polygonal Mesh for instance, and have the output be the Structured Grid with points in the intersection blanked. Is there any way to do that? If there isn’t any filter, can I use this function vtkBlankStructuredGridWithImage in the Python Shell somehow?

Here is an example of a Structured Grid and a sphere I would like to use to intersect the Structured Grid


@Charles_Gueunet

Hello @Sandra ,

You may try to expose the vtkBlankStructuredGridWithImage using an xml plugin.
You may try this one:
BlankWithImage.xml (1.8 KB)
It is a quick a dirty example I have setup for the occasion, it may be improved.

Then, you would need your sphere as a cell data on an image with the same resolution, which will “crinkle” the shape:

Best,
Charles