master #19 compute clean intersection