Edge and singularity effects during simulation of smooth boundaries by means of polygons