Different floodfill method for PET connected with mesh. More accurate but needs two temporary scratch arrays to keep vectors and nearest element pointers.

Will comment the code more later tonight, I'm a bit pissed at the moment (stupid errors right in your face. grrrr)
This commit is contained in:
2005-03-30 23:19:42 +00:00
parent 84ccd0dcde
commit e62740fa01
3 changed files with 106 additions and 59 deletions

View File

@@ -709,7 +709,7 @@ void calculatePropRatio(TransInfo *t)
if (td->flag & TD_SELECTED) {
td->factor = 1.0f;
}
else if (td->dist > t->propsize || td->rdist > t->propsize) {
else if (td->flag & TD_NOTCONNECTED || td->dist > t->propsize || td->rdist > t->propsize) {
/*
The elements are sorted according to their dist member in the array,
that means we can stop when it finds one element outside of the propsize.