public void considerPathXRegion(GeoPath path,GeoRegion region){
  for (GeoPath.SegmentIterator pit=path.segmentIterator(); pit.hasNext(); ) {
    GeoSegment seg=pit.nextSegment();
    if (filter.preConsider(seg,region) && considerSegmentXRegion(seg,region)) {
      collector.collect(seg,region);
      return;
    }
  }
}

public void considerPathXRegion ( GeoPath path , GeoRegion region ) { for ( GeoPath . SegmentIterator pit = path . segmentIterator ( ) ; pit . hasNext ( ) ; ) { GeoSegment seg = pit . nextSegment ( ) ; if ( filter . preConsider ( seg , region ) && considerSegmentXRegion ( seg , region ) ) { collector . collect ( seg , region ) ; return ; } } }
puts the region in the collector if it intersects with the path .
