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

typos

parent 6b91f9c0
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ define(['lattice', 'appState', 'threeModel', 'eSim', 'eSimCell', 'eSimSuperCell'
var allVisible = groupNum < 0;
this._loopCells(this.sparseCells, function(cell){
if (cell) cell.setTransparent(function(evalCell){
return evalCell.conductiveGroupVisible(allVisible, groupNum);
return !(evalCell.conductiveGroupVisible(allVisible, groupNum));
});
});
three.render();
......
......@@ -30,8 +30,7 @@ define(['cell', 'lattice'], function(DMACell, lattice){
};
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){
if (allVisible) return this.isConductive();
for (var i=0;i<this.cells.length;i++){
for (var j=0;j<this.cells[0].length;j++){
for (var k=0;j<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;
for (var k=0;k<this.cells[0][0].length;k++){
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.
Finish editing this message first!
Please register or to comment