diff --git a/js/cells/supercells/DMASuperCell.js b/js/cells/supercells/DMASuperCell.js index ec2f48106a600d5d2236f67f1a724187d10e89ae..3ac82d67045feb50486398173c472316dec0ce91 100644 --- a/js/cells/supercells/DMASuperCell.js +++ b/js/cells/supercells/DMASuperCell.js @@ -195,10 +195,12 @@ define(['underscore', 'three', 'threeModel', 'lattice', 'appState', 'cell', 'mat DMASuperCell.prototype._loopCells = function(callback){ var cells = this.sparseCells; + console.log(cells); if (!cells || cells === undefined) return; for (var x=0;x<cells.length;x++){ for (var y=0;y<cells[0].length;y++){ for (var z=0;z<cells[0][0].length;z++){ + console.log(cells[x][y][z]); if (cells[x][y][z]) callback(cells[x][y][z], x, y, z, this); } } diff --git a/js/lattice/LatticeBase.js b/js/lattice/LatticeBase.js index 934ae3b3c0fdaec697de2eab9dcf3d6f8d35b154..e7b8d27490a546c64af89f40772dbc3f1dd3091a 100644 --- a/js/lattice/LatticeBase.js +++ b/js/lattice/LatticeBase.js @@ -154,6 +154,7 @@ define(['underscore', 'backbone', 'appState', 'globals', 'plist', 'three', 'thre this.makeCellWithJSON(json, function(cell){ var flattenedCells = cell.getCells(); + console.log(flattenedCells); console.log(cell); var bounds = cell.getAbsoluteBounds();