Simplified and improved signed distance function filter to better handle numerical errors, and avoid errors due to thin structures by only using face normals and by specifically checking for this case
Adjusted to also assume positive sign if the dot_product between the vector between the point and its closest point is too small. This seems to finally fix all the problems!