5ea27bec1f
BMesh Decimate: use doubles to calculate optimized position
...
This allows the error threshold for calculating the optimized location to be much lower.
Resolves visible artifacts w/ 1m-tri happy-buddha example.
2016-06-16 19:25:02 +10:00
e37c4e5819
Fix T44780: Decimate planar creates concave edges
...
Float precision was causing problems for decimate,
small faces that create a nearly flat surface were detected as having no 'cost' to collapse.
2015-05-21 21:06:30 +10:00
24e1d7f4f4
BMesh: decimate wasn't using face/edge centers
...
When calculating quadrics, using the first-vertex isn't correct.
2015-05-21 00:00:13 +10:00
27e86ed832
Code cleanup: use bools
2014-03-20 22:56:28 +11:00
f727448e10
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.
2012-11-07 09:28:59 +00:00
78f7518bf3
small quadric library ported from Laurence Bourn's LOD_decimator LOD_Quadric class. not used just yet.
2012-10-19 07:20:37 +00:00