wblut/HE_Mesh

Updating a WB_KDTreeInteger without rebuilding it

co-ord opened this issue · 2 comments

Apologies for the inconvenience. I'm wondering whether it is possible or not to change a KDTree without having to rebuild it.

Basically I have an array of cells whose locations are stored in a WB_KDTreeInteger . These locations may change over time but not at the same moment (only 1 cell out of 1000 will move, one by one). Is it possible to update the entry corresponding to the cell that has moved (update the location) without having to rebuild entirely the WB_KDTreeInteger at each iteration ?

wblut commented

Thanks a lot for the reply and details. I'll keep rebuilding the KDTree at each frame. And I got to say, it's working pretty good so far.

Thanks again,

Respectfully