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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user