mikedh / trimesh

Python library for loading and using triangular meshes.
https://trimesh.org
MIT License
3.02k stars 583 forks source link

closest point corner cases issues (also having warning: divided by zero #2295

Open tangyuq opened 1 month ago

tangyuq commented 1 month ago

https://github.com/mikedh/trimesh/blob/634c608f129d15a307557800deaba954f8a30a3e/trimesh/triangles.py#L644-L650 in line 648: if (d1[is_ab] - d3[is_ab]) is zero, then the result will be incorrect.

josieisjose commented 1 month ago

i have the same question.did you solve it?