Tessellating a 3D surface