Change overlapping topo lines to black

Hi Daan, tried different solutions but your second script does not work for me. The first gives a decent result so I will proceed with that one.