Interval scan line algorithm