3d collision question

Hi, im loading an .obj file into openframeworks and then im creating a set of cubes randomly scattered in x/y/z.

I need to calculate when each cube collides with my .obj shape.
how can i calculate this?

here i uploaded a pic so you can understand me better

ofxBullet should do the job check it out here http://ofxaddons.com/repos/27