End Caps of TubeGeometry

I have done something like this in my Addon. Produces almost infinite many time-varying geometries with functions - #24 by hofk.

2021-04-08 20.07.07

However, the code is not easy to keep track of.