Mesh contact surface detection

Hello everybody.
Please understand that I am not good at English.
Using Babylon, we are creating a web-based CAD program.
The contact surfaces of the two meshes should be colored according to the distance.
Is there a way Babylon can do this?
Or please present an algorithm.

Hi @072mung and welcome to the forum. This could be used as a starting point for your issue Intersect Collisions - mesh - Babylon.js Documentation.
However if your meshes are as complex as the appear in your image then it is going to be much more difficult.