Using equation (1), we visualize the body joints which are in contact. The sphere radius and the colour depends on the value of . The higher value corresponds to the bigger sphere radius.
We can clip the values to if they are less than a threshold value. If we fix the threshold value to be , the visualization looks like this.
In the real world, the body surface gets in contact with the environment, not the body joints. Let us use the above-mentioned method for the body vertices. We calculate instead of in the same way as . The visualization looks like this.
The code is not publicly available, however, it is available upon request.