One-time polygonal overlap testing

I'm needing to test an user-entered body (usually a collection on polygons) against all the world for overlapping.
I looked around and saw that there isn't an available way to test this without playing with the innards of the engine, so I decided to ask if what I'm thinking of doing is too ugly.
As I will probably need this done before the sensor shapes get implemented (that would solve it), I'm thinking of going through the world->Query results and creating a b2Contact for the matches, and testing for manifolds.
Is there an easier/cheaper way to do this now?
You can call the query function then b2CollidePoly. The only problem is you don't have a shape. It's kind of ugly, but you can create a temporary body and then grab the shape off the body and call b2CollidePoly. After you are done, delete the shape. To prevent contacts from being created you can use maskBits of 0. This will minimize the performance hit.

I'll think about ways to make this cleaner in the future.

Original thread: https://box2d.org/forum/viewtopic.php?t=149