Compare this example TubeGeometryFrom2Dshape
from the Collection of examples from discourse.threejs.org
It uses Curve.