+Now also works with curves not on xy plane
(need min 3 control points)