forked from: Basic:Multiple curves with midpoints

