Priority Queue Heap

Bill Baxter dnewsgroup at billbaxter.com
Sun Mar 30 14:50:50 PDT 2008


Mason Green wrote:
> Hello D Community,
> 
> I need to implement a priority queue heap for Blaze's continuous collision detection scheme, and was wondering if anyone would be willing the help me in this endeavor.
> 
> Blaze project page: 
> http://www.dsource.org/projects/blaze
> 
> Basically, I need to store and sort all (potential) dynamic collision events detected during a time step based on time of impact (TOI). For all potentially colliding objects, the TOI and contact information needs to be stored in a list. Objects may have more than one potential contact. If two rigid bodies collide, all future collision events (collisions with a greater TOI) involving either one of the two bodies need to be invalidated.
> 
> I've found a C++ implementation, and may need help integrating into Blaze: 
> 
> http://idav.ucdavis.edu/~okreylos/ResDev/Balls/index.html
> 
> Any help/thoughts/suggestions would be greatly appreciated!
> 
> Best regards,
> Mason 

There's one in OpenMeshD that I ported from C++.
It's very efficient but kind of has a weird interface.
http://www.dsource.org/projects/openmeshd

--bb


More information about the Digitalmars-d-learn mailing list