Global topology of triatomic potential surfaces