diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-11-07 13:28:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-11-07 13:28:59 +0400 |
commit | f727448e10de503be0d89bf8b32b7db1a8a5cac7 (patch) | |
tree | ec487a38c383261f9bf37520ebe862b333f9015a /source/blender/blenlib/BLI_quadric.h | |
parent | efc44d0c4de449e2f2a87871319d3842577e1928 (diff) |
fix [#33106] Decimate modifier/collapse give bad result
FLT_EPSILON was too small to use when checking if the edge collapse result is an error.
add invert_m3_m3_ex(), invert_m3_ex() functiosn which take an epsilon to check the determinant, saves calculating it twice per edge collapse.
Diffstat (limited to 'source/blender/blenlib/BLI_quadric.h')
-rw-r--r-- | source/blender/blenlib/BLI_quadric.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_quadric.h b/source/blender/blenlib/BLI_quadric.h index aec11ec2b44..e71a6473852 100644 --- a/source/blender/blenlib/BLI_quadric.h +++ b/source/blender/blenlib/BLI_quadric.h @@ -51,6 +51,6 @@ void BLI_quadric_mul(Quadric *a, const float scalar); /* solve */ float BLI_quadric_evaluate(const Quadric *q, const float v[3]); -int BLI_quadric_optimize(const Quadric *q, float v[3]); +int BLI_quadric_optimize(const Quadric *q, float v[3], const float epsilon); #endif /* __BLI_QUADRIC_H__ */ |