# How to generate clipped plane area?

**URL:** https://discourse.vtk.org/t/how-to-generate-clipped-plane-area/5823
**Category:** Support
**Created:** [May 20, 2021, 2:59am UTC](https://discourse.vtk.org/t/how-to-generate-clipped-plane-area/5823 "2021-05-20T02:59:31Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Dgg820502](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/d/bbce88/32.png) [@Dgg820502](https://discourse.vtk.org/u/Dgg820502)
#### Post date: [May 20, 2021, 2:59am UTC](https://discourse.vtk.org/t/how-to-generate-clipped-plane-area/5823/1 "2021-05-20T02:59:31Z")

</div>

![clipped](https://discourse.vtk.org/uploads/default/original/2X/1/14f840b28c25ecf95a583eab7251065f2b3eaa2f.png)

Please help, I have generated the clipped plane of ear canal but which VTK function should I use to generate the clipped plane area?

Many thanks in advance.

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [May 21, 2021, 4:42pm UTC](https://discourse.vtk.org/t/how-to-generate-clipped-plane-area/5823/2 "2021-05-21T16:42:46Z")

</div>

For dense meshes like this you can use vtkClipPolyData, but depending on your mesh (and if VTK was built with TBB SMP backend), vtkPolyDataPlaneClipper and vtkClipClosedSurface may be faster and/or more accurate.

---

<div class="post-metadata">

### Author: ![Dgg820502](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/d/bbce88/32.png) [@Dgg820502](https://discourse.vtk.org/u/Dgg820502)
#### Post date: [May 22, 2021, 12:28am UTC](https://discourse.vtk.org/t/how-to-generate-clipped-plane-area/5823/3 "2021-05-22T00:28:17Z")

</div>

Andras,Many thanks.

Please let me ask more quesions, if I stuck again.

---

<div class="post-metadata">

### Author: ![Dgg820502](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/d/bbce88/32.png) [@Dgg820502](https://discourse.vtk.org/u/Dgg820502)
#### Post date: [May 24, 2021, 2:03am UTC](https://discourse.vtk.org/t/how-to-generate-clipped-plane-area/5823/4 "2021-05-24T02:03:11Z")

</div>

Dear Andras,

Please let me ask which VTK functions should I use to generate 2D contour data of the clipped plane area?

Many thanks in advance.

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [May 25, 2021, 6:06pm UTC](https://discourse.vtk.org/t/how-to-generate-clipped-plane-area/5823/5 "2021-05-25T18:06:18Z")

</div>

You can get boundary edges of the clipped polydata using vtkFeatureEdges that you can sort into polygons using vtkStripper. This is not very robust, though (vtkStripper requires you to tell the maximum strip length in advance; there may be several boundary edges in your polydata, etc.). So, it is probably better to use a clipping filter that can give you the clipped plane or use a separate cut filter to get the clipped boundaries.

---

<div class="post-metadata">

### Author: ![Dgg820502](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/d/bbce88/32.png) [@Dgg820502](https://discourse.vtk.org/u/Dgg820502)
#### Post date: [May 26, 2021, 8:59am UTC](https://discourse.vtk.org/t/how-to-generate-clipped-plane-area/5823/6 "2021-05-26T08:59:14Z")

</div>

Dear Andras,

Very appreciate for your generous helps.
