Thin wall cloud > mesh signed distance calculation
Posted: Thu May 09, 2024 9:23 pm
I'm looking at comparing a scan cloud (that has good normals) with a mesh (also with correct per-triangle normals), but the scan cloud is of a thin part that is distorted enough that the nearest triangle for some regions is the opposite side of the thin surface, where the cloud normal and triangle normal are near 180° from one another. The result is that the signed distance goes negative, then to zero as it passes through the opposite wall, then more positive as you move into the distorted region, when the actual signed distance should just continue going more negative. The 'inside' wall correctly shows the signed distance increasing positive continuously.
From going through the documentation, it seems currently cloud to mesh signed distance just grabs the nearest triangle and computes a signed distance using the triangle's normal, but is there a way to ignore triangles with a normal different than the point normal by some threshold? I.e. if the nearest triangle's normal differs from the point normal by more than (for example) 100°, ignore it and keep looking for the next nearest triangle until you hit max distance or find a triangle within the orientation limit?
From going through the documentation, it seems currently cloud to mesh signed distance just grabs the nearest triangle and computes a signed distance using the triangle's normal, but is there a way to ignore triangles with a normal different than the point normal by some threshold? I.e. if the nearest triangle's normal differs from the point normal by more than (for example) 100°, ignore it and keep looking for the next nearest triangle until you hit max distance or find a triangle within the orientation limit?