# What is the easiest way to clip a vtkOutlineFilter?

**URL:** https://discourse.vtk.org/t/what-is-the-easiest-way-to-clip-a-vtkoutlinefilter/15550
**Category:** Support
**Tags:** python
**Created:** [April 28, 2025, 1:07pm UTC](https://discourse.vtk.org/t/what-is-the-easiest-way-to-clip-a-vtkoutlinefilter/15550 "2025-04-28T13:07:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![uv382](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/u/c89c15/32.png) [@uv382](https://discourse.vtk.org/u/uv382)
#### Post date: [April 28, 2025, 1:07pm UTC](https://discourse.vtk.org/t/what-is-the-easiest-way-to-clip-a-vtkoutlinefilter/15550/1 "2025-04-28T13:07:24Z")

</div>

I would like to show only the corners of the outline shown with a `vtkOutlineFilter`:

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

My thought was that I could first create the `vtkOutlineFilter` algorithm, and then “subtract” the parts that I don’t want using some kind of subtraction filter. Is this doable?

In my testing I applied a `vtkBox` implicit function to `vtkClipPolyData`, and then tried to use it to clip the `vtkOutlineFilter`, but it did not clip anything.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cory.quammen/32/6751_2.png) [@cory.quammen](https://discourse.vtk.org/u/cory.quammen)
#### Post date: [April 28, 2025, 2:25pm UTC](https://discourse.vtk.org/t/what-is-the-easiest-way-to-clip-a-vtkoutlinefilter/15550/2 "2025-04-28T14:25:17Z")

</div>

The [`vtkOutlineCornerFilter`](https://vtk.org/doc/nightly/html/classvtkOutlineCornerFilter.html) does exactly what you want. You can use that in place of the `vtkOutlineFilter`.
