Tube geometry with varying radius


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

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?

CylinderGeometry has both radius top and radius bottom parameters, you could use this as a base in conjunction with a bend deformer…

Maybe you can take something from it?

Multi Form Geometry
Curved2Geometry - a twofold curved geometry
How to update tubeGeometry geometry based in lineCurve modifications? - #14 by hofk
Pino - a procedurally generated and moved skeleton figure

1 Like