How can i implement THREE.Curve to draw a 3D multiple vertex line?

Compare this example TubeGeometryFrom2Dshape

from the Collection of examples from discourse.threejs.org

It uses Curve.