# Tube geometry with varying radius

**URL:** <https://discourse.threejs.org/t/tube-geometry-with-varying-radius/49866>\
**Category:** Questions\
**Tags:** tubegeometry, geometry\
**Created:** [March 31, 2023, 11:15pm UTC](https://discourse.threejs.org/t/tube-geometry-with-varying-radius/49866 "2023-03-31T23:15:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stla](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/stla/32/3323_2.png) [@stla](https://discourse.threejs.org/u/stla)\
**Post date:** [March 31, 2023, 11:15pm UTC](https://discourse.threejs.org/t/tube-geometry-with-varying-radius/49866/1 "2023-03-31T23:15:36Z")

</div>

Hello,

I’d like to reproduce such a thing with **three.js** :

![](https://laustep.github.io/stlahblog/posts/figures/DuoprismStereo_R.png)

The edges are like a `TubeGeometry` but with a non-constant radius along the tube. The `TubeGeometry` only allows one number for the radius. How could one do a tubular path with a varying radius?

---

<div class="post-metadata">

**Author:** ![Lawrence3DPK](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/lawrence3dpk/32/29184_2.png) [@Lawrence3DPK](https://discourse.threejs.org/u/Lawrence3DPK)\
**Post date:** [March 31, 2023, 11:50pm UTC](https://discourse.threejs.org/t/tube-geometry-with-varying-radius/49866/2 "2023-03-31T23:50:33Z")

</div>

[CylinderGeometry](https://threejs.org/docs/#api/en/geometries/CylinderGeometry) has both radius top and radius bottom parameters, you could use this as a base in conjunction with a bend deformer…

---

<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:** [April 1, 2023, 8:51am UTC](https://discourse.threejs.org/t/tube-geometry-with-varying-radius/49866/3 "2023-04-01T08:51:00Z")

</div>

Maybe you can take something from it?

🤔  
[Multi Form Geometry](https://discourse.threejs.org/t/multi-form-geometry/36839)  
[Curved2Geometry - a twofold curved geometry](https://discourse.threejs.org/t/curved2geometry-a-twofold-curved-geometry/25580)  
[How to update tubeGeometry geometry based in lineCurve modifications? - #14 by hofk](https://discourse.threejs.org/t/how-to-update-tubegeometry-geometry-based-in-linecurve-modifications/40854/14)  
[Pino - a procedurally generated and moved skeleton figure](https://discourse.threejs.org/t/pino-a-procedurally-generated-and-moved-skeleton-figure/36184)
