Blender Git Commit Log

Git Commits -> Revision 6202bc8

Revision 6202bc8 by Jacques Lucke (master)
February 6, 2019, 10:49 (GMT)
Fix T60935: More numerically stable distance to ray computation

The old function was numerically very unstable for 2 reasons:
computing the square and then subtracting the results.

In the example in T60935 all precision was lost and it returned the distance 0
for all points.

I also removed the `depth` parameter since it wasn't used and computing
it would have made the code more complicated.

Reviewers: brecht, campbellbarton

Differential Revision: https://developer.blender.org/D4308

Commit Details:

Full Hash: 6202bc82b858d8f6876c6c20ec62dd0a16209087
Parent Commit: f7613cf
Lines Changed: +28, -29

3 Modified Paths:

/source/blender/blenlib/BLI_math_geom.h (+2, -2) (Diff)
/source/blender/blenlib/intern/math_geom.c (+16, -7) (Diff)
/source/blender/editors/mesh/editmesh_select.c (+10, -20) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021