Skip to content
Snippets Groups Projects
Commit cffaf1fe authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

typos

parent 6b91f9c0
Branches
Tags
No related merge requests found
...@@ -24,7 +24,7 @@ define(['lattice', 'appState', 'threeModel', 'eSim', 'eSimCell', 'eSimSuperCell' ...@@ -24,7 +24,7 @@ define(['lattice', 'appState', 'threeModel', 'eSim', 'eSimCell', 'eSimSuperCell'
var allVisible = groupNum < 0; var allVisible = groupNum < 0;
this._loopCells(this.sparseCells, function(cell){ this._loopCells(this.sparseCells, function(cell){
if (cell) cell.setTransparent(function(evalCell){ if (cell) cell.setTransparent(function(evalCell){
return evalCell.conductiveGroupVisible(allVisible, groupNum); return !(evalCell.conductiveGroupVisible(allVisible, groupNum));
}); });
}); });
three.render(); three.render();
......
...@@ -30,8 +30,7 @@ define(['cell', 'lattice'], function(DMACell, lattice){ ...@@ -30,8 +30,7 @@ define(['cell', 'lattice'], function(DMACell, lattice){
}; };
DMACell.prototype.conductiveGroupVisible = function(allVisible, groupNum){ DMACell.prototype.conductiveGroupVisible = function(allVisible, groupNum){
console.log(allVisible); return this.isConductive() && (allVisible || groupNum == this._eSimConductorGroup);
return !this.isConductive() || (!allVisible && groupNum != this._eSimConductorGroup);
}; };
......
...@@ -9,9 +9,8 @@ define(['underscore', 'superCell'], function(_, DMASuperCell){ ...@@ -9,9 +9,8 @@ define(['underscore', 'superCell'], function(_, DMASuperCell){
if (allVisible) return this.isConductive(); if (allVisible) return this.isConductive();
for (var i=0;i<this.cells.length;i++){ for (var i=0;i<this.cells.length;i++){
for (var j=0;j<this.cells[0].length;j++){ for (var j=0;j<this.cells[0].length;j++){
for (var k=0;j<this.cells[0][0].length;k++){ for (var k=0;k<this.cells[0][0].length;k++){
console.log("here"); if (this.cells[i][j][k] && this.cells[i][j][k].conductiveGroupVisible(allVisible, groupNum)) return true;
if (this.cells[i][j[k]] && this.cells[i][j][k].conductiveGroupVisible(allVisible, groupNum)) return true;
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment