Generate polynomial paths.
Updated demo to use library function instead.