On the removing leftovers from doing merge.applyToContainer.
That merge demo (marge) uses 107M becuase it has 9708 cubes still hanging
around.
Have to set
var merge:Merge = new Merge(false, true,false);
then loop through the cubes
do
merge.applyToContainer(imgHolder, "marge");
Now have to delete each cube
for each (var cc:Cube in cubesArr)
{
cc.dispose(true);
Mesh(cc).geometry.subGeometries[0].dispose();
cc.material = null;
cc = null
//System.gc();
}
cubesArr.length = 0;
Problem is the material is shared with the merged mesh, so have to reapply
the material to each of the 17 subG
And finally add the merged mesh to the scene.
http://www.shrewballooba.co.uk/marge2/
107M down to 44M
Tried various other methods bit this is the only one that worked.
Oh and that with the fix to the Mesh.as dispose missing super()