SCIInstitute / ShapeWorks

ShapeWorks
http://sciinstitute.github.io/ShapeWorks/
Other
104 stars 32 forks source link

Mesh to DT produces artifacts in some cases #2033

Closed akenmorris closed 1 year ago

akenmorris commented 1 year ago

The current algorithm for determining a point being inside or outside a mesh relies on a dot product with the normal of the closest face. While this is fast, it can be incorrect in some cases:

image image

The distance values are correct, but the sign is wrong.

We should try this instead:

https://vtk.org/doc/nightly/html/classvtkSelectEnclosedPoints.html

Example data attached:

problemDTConv.zip