# How to create a segmented Tube?

**URL:** <https://discourse.threejs.org/t/how-to-create-a-segmented-tube/51229>\
**Category:** Questions\
**Tags:** geometry\
**Created:** [May 5, 2023, 4:50pm UTC](https://discourse.threejs.org/t/how-to-create-a-segmented-tube/51229 "2023-05-05T16:50:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![hofk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/hofk/32/44944_2.png) [@hofk](https://discourse.threejs.org/u/hofk)\
**Post date:** [May 6, 2023, 12:59pm UTC](https://discourse.threejs.org/t/how-to-create-a-segmented-tube/51229/4 "2023-05-06T12:59:10Z")

</div>

In @PavelBoytchev’s solution, the flat part on which you move always stays down. In @prisoner849’s solution, you rotate in the tube and the flat part is in different positions.

I have not yet found a solution for the rotation in my problem [Inaccurate adjustment when cylinder is deformed](https://discourse.threejs.org/t/inaccurate-adjustment-when-cylinder-is-deformed/50941). Must see if I can learn something from these solutions. 🤔

---

_[View the full topic](https://discourse.threejs.org/t/how-to-create-a-segmented-tube/51229)._
