# vtkMultiBlockDataSet + vtkClipDataSet

**URL:** https://discourse.vtk.org/t/vtkmultiblockdataset-vtkclipdataset/7031
**Category:** Support
**Created:** [November 1, 2021, 1:07pm UTC](https://discourse.vtk.org/t/vtkmultiblockdataset-vtkclipdataset/7031 "2021-11-01T13:07:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Olivier](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/o/d2c977/32.png) [@Olivier](https://discourse.vtk.org/u/Olivier)
#### Post date: [November 1, 2021, 1:07pm UTC](https://discourse.vtk.org/t/vtkmultiblockdataset-vtkclipdataset/7031/1 "2021-11-01T13:07:50Z")

</div>

Hi,

Is it possible to cut a vtkMultiBlockDataSet somehow ?  
Seams that vtkClipDataSet does not accept vtkMultiBlockDataSet as input …  
Thanks !

---

<div class="post-metadata">

### Author: ![andreasbuykx](https://discourse.vtk.org/user_avatar/discourse.vtk.org/andreasbuykx/32/8137_2.png) [@andreasbuykx](https://discourse.vtk.org/u/andreasbuykx)
#### Post date: [November 1, 2021, 3:42pm UTC](https://discourse.vtk.org/t/vtkmultiblockdataset-vtkclipdataset/7031/2 "2021-11-01T15:42:57Z")

</div>

When you work with vtkMultiBlockDataSet you should use the vtkCompositeDataPipeline executive which supports processing of composite data by non-composite-data-aware algorithms like vtkClipDataSet. This executive will traverse over the leaf nodes of your composite data to the algorithm and present the output in the same composite structure at the output.

---

<div class="post-metadata">

### Author: ![rockydut](https://discourse.vtk.org/user_avatar/discourse.vtk.org/rockydut/32/4261_2.png) [@rockydut](https://discourse.vtk.org/u/rockydut)
#### Post date: [August 16, 2023, 8:10am UTC](https://discourse.vtk.org/t/vtkmultiblockdataset-vtkclipdataset/7031/3 "2023-08-16T08:10:36Z")

</div>

> [@andreasbuykx](#):
>
> vtkCompositeDataPipeline

@Olivier Do you have got how to clip the multiblockdataset? can you paste an exameple? I have the same problem.

---

<div class="post-metadata">

### Author: ![Olivier](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/o/d2c977/32.png) [@Olivier](https://discourse.vtk.org/u/Olivier)
#### Post date: [August 16, 2023, 8:48am UTC](https://discourse.vtk.org/t/vtkmultiblockdataset-vtkclipdataset/7031/4 "2023-08-16T08:48:57Z")

</div>

Hi Rockydut,

My use case is pretty specific : I must be able to conditionally clip each Block !

So I didn’t leaned on vtkCompositeDataPipeline.  
I’ve written a tree based pipe that applies a vtkClipClosedSurface / vtkTableBasedClipDataSet on each block, and reinjects the result inside block’s geometry.  
This way I can fully drive the clipping process (condition + multithreading).
