Tessellating Algebraic Curves and Surfaces Using A-Patches