VTK clip: How to clip with cell as the minimum unit

I want to clip the model (for finite element simulation). However, the existing clipping methods triangulate the cell.
In other word, for a cell, it is either cut or not cut, rather than cutting a part of a cell and triangulating it.

just like this, the cells will not be cutted.

vtkExtractGeometry. It is not obvious from the name that this filter would do what you are requesting.

Here’s an example: https://kitware.github.io/vtk-examples/site/Python/VisualizationAlgorithms/ExtractData/

Note that the example is extracting whole cells within a spherical region. You probably want to extract cells on one side of a plane based on your example image. That’s possible - just change the vtkImplicitFunction you are passing to vtkExtractGeometry.

1 Like

@cory.quammen Thank you, it’s just what I want.