SCIInstitute / ShapeWorks

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

Fix 2033 mesh to dt #2036

Closed akenmorris closed 1 year ago

akenmorris commented 1 year ago

Fix #2033 by using vtkSelectEnclosedPoints to determine if points are inside or outside.

image

Also parallelized mesh to DT, patch bugs in VTK

akenmorris commented 1 year ago

Doesn't matter that is not completely robust. I think it's good enough.

It turns out that it is simply returning a different, but still correct cell. Quite often the closest point on a mesh is at a vertex, and any cell that the vertex belongs to would be valid. The SMP enabled versions can simply turn different cells.

Screen Shot 2023-04-15 at 8 05 34 PM Screen Shot 2023-04-15 at 8 04 17 PM