id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 2734,[PATCH] Improved polygon scan conversion for imageFilledPolygon(),brage,sdlime,"The attached patch is a new implemetation of imageFilledPolygon() for mapgd.c. With the current mapgd.c it is not really possible to make a polygon without an outline. If no outline is specified, the polygon will have a outline the same color as the fill. This results in loss of detail, and makes small polygons (for instance lakes and islands) look bigger than they should. The problem is that imageFilledPolygon() uses a midpoint line algorithm, and includes points which are not strictly interior to the polygon. The patch replaces this with an interior extrema algorithm, based on Paul Heckbert's algorithm from from ""Graphics Gems"". The attached examples should demonstrate how big difference this makes. The patch is also eliminates the loop iterating over every point for every scanline, and is generally much faster than the old imageFilledPolygon. It should actually give mapsever appliactions using the gd backend a noticable performance improvement. For example, the average runtime for shp2img when creating the example maps was || ||Unpatched|| Patched|| ||Itasca lakes||99ms||84ms|| ||North Europe coastline||610ms||399ms|| And, at last, Mapserver should be able to render the coastline of Norway correctly! -- Brage Førland ",enhancement,assigned,normal,5.6 release,MapServer C Library,svn-trunk (development),normal,,,dmorissette