You have to redefine the geometry as buffer geometry.
Then you can manipulate the vertices of the buffer geometry.
Simple examples in the Collection of examples from discourse.threejs.org .
see first CurvedArrowHelper
and than
SpiralFromCylinder
ColorWave