Original Post
Hey folks !
I've just realized that it might be a good idea to sort nodes created during a pathfinding procedure in a tree structure (the grid is composed of triangles) and I was wondering if there is any particular tree library you guys might recommend.
Since every node will have a unique numeric index I figured it would be faster to maintain a tree structure than just a linear list. So what I need is a tree class that can hold arbitrary data structures, re-sort the nodes (to maintain the order as new nodes are pushed in) and destroy them in a reliable fashion. Many thanks for any tips and hints ! :)
- Dave
I've just realized that it might be a good idea to sort nodes created during a pathfinding procedure in a tree structure (the grid is composed of triangles) and I was wondering if there is any particular tree library you guys might recommend.
Since every node will have a unique numeric index I figured it would be faster to maintain a tree structure than just a linear list. So what I need is a tree class that can hold arbitrary data structures, re-sort the nodes (to maintain the order as new nodes are pushed in) and destroy them in a reliable fashion. Many thanks for any tips and hints ! :)
- Dave