works with CurvePath also (arrays of Curves)
use an array of curvePaths instead of only 2