by analysing segments intersecting the pattern segments obtained by the intersection of the pattern with a scanning pattern