# Show segment connection edges of a tube

**URL:** https://discourse.vtk.org/t/show-segment-connection-edges-of-a-tube/12560
**Category:** Support
**Created:** [October 29, 2023, 3:07am UTC](https://discourse.vtk.org/t/show-segment-connection-edges-of-a-tube/12560 "2023-10-29T03:07:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![j-miguel](https://discourse.vtk.org/user_avatar/discourse.vtk.org/j-miguel/32/3199_2.png) [@j-miguel](https://discourse.vtk.org/u/j-miguel)
#### Post date: [October 29, 2023, 3:07am UTC](https://discourse.vtk.org/t/show-segment-connection-edges-of-a-tube/12560/1 "2023-10-29T03:07:39Z")

</div>

I’m using the TubeFilter on top of a polyline to display a tube and now I would like to display the segments connection “rings” on the tube.

I’ve tried setting On the EdgeVisibility, but it display (as expected) all the edges (both the connection rings and the edges from the triangles used to display the tube).

Do you have any suggestions on how to display the tube and it’s connections only?

(While I’m currently using TubeFilter, I’m opened to other approaches as well)

---

<div class="post-metadata">

### Author: ![mau\_igna\_06](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mau_igna_06/32/8064_2.png) [@mau\_igna\_06](https://discourse.vtk.org/u/mau_igna_06)
#### Post date: [October 29, 2023, 12:57pm UTC](https://discourse.vtk.org/t/show-segment-connection-edges-of-a-tube/12560/2 "2023-10-29T12:57:10Z")

</div>

Maybe you could calculate the “ring” plane normal between each two adjacent cells and a for loop to use appendPolydataFilter and each vtkCircleSource (or vtkArcSource)

Hope it helps 🙂

---

<div class="post-metadata">

### Author: ![j-miguel](https://discourse.vtk.org/user_avatar/discourse.vtk.org/j-miguel/32/3199_2.png) [@j-miguel](https://discourse.vtk.org/u/j-miguel)
#### Post date: [October 30, 2023, 1:36am UTC](https://discourse.vtk.org/t/show-segment-connection-edges-of-a-tube/12560/3 "2023-10-30T01:36:58Z")

</div>

Thanks for the answer!

I was trying to use the tube filter vertices directly (in my understanding these would be exactly the “rings” vertices).  
I’m gonna test this approach using the normal but i suppose I’m gonna need some kind of offset to display the “rings” over the tube anyway, right?
