How to create a pipeline geometry as shown below from two vectors?

Any relevance to the topic?

How to update tubeGeometry geometry based in lineCurve modifications? - #14 by hofk
DynamicTubeGeometryCaps