[GRASSLIST:5652] Filling a polygon using a "bucket with color"

Have a nice day anywhere you are,

    I have an area described by several lines and I need to find a
function which is similar to "spilling a color". From a given point I need
to set all surrounding points to have some speicifed value/category until
reaches wall(borders) from lines.

    The border is defined by non-zero values, other values are zero (of
course I can change it if needed). Any idea?

    This method is used in almost all graphical programs, but I need to
use some GRASS method because of non-interactivity.

               Thanks for help

                        Honza

---------------------------------------------------------------------
                           HoK Honza Kohout
student Fakulty Informatiky MU clen 137. NRS Klubu Bludny koren
http://www.fi.muni.cz/~xkohout2 http://www.koren.cz/
  honza@koren.cz klub@koren.cz