How to update tubeGeometry geometry based in lineCurve modifications?

Somewhat late the variant with caps.
2022-10-11 20.53.32

DynamicTubeGeometryCaps