# Apply vtkTubeFilter() to edges of an vtkUnstructuredGrid

**URL:** https://discourse.vtk.org/t/apply-vtktubefilter-to-edges-of-an-vtkunstructuredgrid/6576
**Category:** Support
**Created:** [September 7, 2021, 9:47pm UTC](https://discourse.vtk.org/t/apply-vtktubefilter-to-edges-of-an-vtkunstructuredgrid/6576 "2021-09-07T21:47:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Drew](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/d/b19c9b/32.png) [@Drew](https://discourse.vtk.org/u/Drew)
#### Post date: [September 7, 2021, 9:47pm UTC](https://discourse.vtk.org/t/apply-vtktubefilter-to-edges-of-an-vtkunstructuredgrid/6576/1 "2021-09-07T21:47:31Z")

</div>

Hello,

I would like to create tubes around the edges of an vtkUnstructuredGrid. The vtkTubeFilter() is what I have used previously but that requires having the edges which I would get from vtkExtractEdges(). However, I I have not worked out how to do this with an Unstructured Grid. I expect that this is rather simple. Any hints would be appreciated.

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [September 7, 2021, 10:37pm UTC](https://discourse.vtk.org/t/apply-vtktubefilter-to-edges-of-an-vtkunstructuredgrid/6576/2 "2021-09-07T22:37:24Z")

</div>

You just need to run a Geometry filter before your edge extraction. That way, you get a polydata from your vtkUnstructuredGrid.
