How to make two tubes appear joined?

You can also use my addon.

THREEf geometries r136

See

GitHub - hofk/THREEf.js: three.js addon, to produce almost infinite many time-varying geometries / buffer geometries with functions (cylindrical coordinates)