Blender Git Loki

Git Commits -> Revision 9f8dd4f

Revision 9f8dd4f by Campbell Barton (master)
February 19, 2020, 02:33 (GMT)
BLI_math: unify zero area checks for barycentric weight calculation

This applies the change from T73348 fix to related functions.

Instead of checking against an epsilon to avoid divide by zero,
perform the division and check the result is finite.

This is needed since small faces can have an area under 'FLT_EPSILON',
and dividing by values close to zero can result in 'inf'.

Commit Details:

Full Hash: 9f8dd4f9e5c0a397485262ec815a88de4fa6cee4
Parent Commit: eef5b50
Lines Changed: +65, -34

1 Modified Path:

/source/blender/blenlib/intern/math_geom.c (+65, -34) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021