Fix #20911: automatic bone weights work poorly when vertex lies
exactly on a bone, tweak epsilons to make this work better.
This commit is contained in:
@@ -523,10 +523,8 @@ static void heat_set_H(LaplacianSystem *sys, int vertex)
|
||||
|
||||
/* compute H entry */
|
||||
if(numclosest > 0) {
|
||||
if(mindist > 1e-5)
|
||||
h= numclosest*C_WEIGHT/(mindist*mindist);
|
||||
else
|
||||
h= 1e10f;
|
||||
mindist= maxf(mindist, 1e-4f);
|
||||
h= numclosest*C_WEIGHT/(mindist*mindist);
|
||||
}
|
||||
else
|
||||
h= 0.0f;
|
||||
|
||||
Reference in New Issue
Block a user