Is it possible to turn off triangles on vtkClipDataSet filter?

I’ve added two nex examples to the VTKExamples Project. They illustrate the difference between vtkTableBasedClipDataSet and vtkClipDataSet.

  1. ClipUnstructuredGridWithPlane
  2. ClipUnstructuredGridWithPlane2

The former is faster and produces many fewer cells because it retains the original cells outside the clip boundary. See the difference in these images:
TestClipUnstructuredGridWithPlane
TestClipUnstructuredGridWithPlane2

If you have been using vtkClipDataSet you may wish to switch to vtkTableBasedClipDataSet.

Thanks to Bane Sullivan for bringing up the original problem and for helping to track down a solution.

Also, he provided a great unstructured grid test dataset.

1 Like