# Clipping data only on area selected

**URL:** https://discourse.vtk.org/t/clipping-data-only-on-area-selected/7375
**Category:** Support
**Created:** [December 9, 2021, 5:58am UTC](https://discourse.vtk.org/t/clipping-data-only-on-area-selected/7375 "2021-12-09T05:58:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dwventer](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dwventer/32/1579_2.png) [@dwventer](https://discourse.vtk.org/u/dwventer)
#### Post date: [December 9, 2021, 5:58am UTC](https://discourse.vtk.org/t/clipping-data-only-on-area-selected/7375/1 "2021-12-09T05:58:20Z")

</div>

![image](https://discourse.vtk.org/uploads/default/original/2X/e/eee4f394432f3318c73cd464e2f1730fcc8c5721.png)

I have an image of a human that I need to clip the selected area only(e.g. an arm or leg). My methodology:

- First pick two points on the area I want to cut.
- Calculate the plane normals that will be perpendicular to the line connecting the two points.
- Use the normals from the plane to set vtkPlanes normal (2 normals, one the negative of the other)
- and add the two selected points to vtkPlanes
- I used vtkClipPolyData and set the clip function to the above-mentioned vtkPlanes.

So the problem is that the plane is never-ending and thus also cuts the rest of the body and not just the selected arm (as seen from the picture). I was thinking of adding some bounds but how do I do that? Is there perhaps a different kind of clipper I should use?

I thank you in advance.
