Real-time GPU rendering of piecewise algebraic surfaces