detect edges: detect polygons in all possible normal direction

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>