This may be relevant: How do I get the amount of overlapping geometry between two meshes? - #2 by Chatouille