Three js ver67 Current code something like this -
var materials = []; var totalGeom = new THREE.Geometry(); var cubeMat; for (var i = 0; i &
Do this:
cubeMesh.updateMatrix(); totalGeom.merge( cubeMesh.geometry, cubeMesh.matrix );
For a further understanding, see the source code of THREE.Geometry.merge().
THREE.Geometry.merge()
three.js r.69