The algebra of continuous piecewise polynomials