What if the piecewise polynomial is discontinuous? Bernstein polynomials are AFAIK always continuous?