Tessellating a curve