Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-11-07 13:28:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-11-07 13:28:59 +0400
commitf727448e10de503be0d89bf8b32b7db1a8a5cac7 (patch)
treeec487a38c383261f9bf37520ebe862b333f9015a /source/blender/blenlib/BLI_quadric.h
parentefc44d0c4de449e2f2a87871319d3842577e1928 (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.h2
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__ */