Building surfaces from borders in Areas 17 and 18 of the cat