addBreaks() first converts a trigfun to a chebfun