Delete All Internal Geometry I generated a bunch of random cubes from MATLAB as .STL and imported into Blender. All cubes intersect so there's a bunch of internal geometry. I did ctrl-F -> intersect to create edges between cubes, but now how do I remove all the vertices/edges/faces inside the cubes?

I checked out Simplify mesh by cutting out inside parts and tried to remeshing modifier, which did absolutely nothing possibly b/c I'm noob with this software, and tried the code which failed on line 4. 

I'm used to using CAD, so could I possibly make an enclosure, boolean subtract from said enclosure, then fill the enclosure up with a second solid that doesn't have internals? Can Blender do that? Help!



Edit: Figured it out. Bool tool solved all my problems. Regular boolean would take forever to implement for something like this I think.
Bool Tool Addon (fast enabled)
&#9096; Ctrl&#8679; Shift+ after separating cubes using P> by loose parts in edit mode.