optimad / bitpit

Open source library for scientific HPC
http://optimad.github.io/bitpit/
GNU Lesser General Public License v3.0
116 stars 33 forks source link

levelset: fix evalution of segment information for points that lie on the segmentation #394

Closed andrea-iob closed 1 year ago

andrea-iob commented 1 year ago

Levelset sign should be evaluated with the same tolerance used when checking if the point lies on the segmentation. Also, I've replace the algorithm for projection points onto triangles. The new algorithm is more precise when the point lies on the triangle.