is there a way to generate a Curve Vector from an array of coordinates in the world space?