Check if all elements are tets or triangles
Merge remote-tracking branch 'upstream/master'
added combined distance