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

show sparse cell

parent 18c0e9b0
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ define(['lattice', 'three'], function(lattice, THREE){
showCellAtIndex: function(index){
var latticeIndex = (new THREE.Vector3()).subVectors(index, this.get("cellsMin"));//index is probably a json object from gcode comment
var cell = this.cells[latticeIndex.x][latticeIndex.y][latticeIndex.z];
var cell = this.sparseCells[latticeIndex.x][latticeIndex.y][latticeIndex.z];
if (cell) cell.show();
else console.warn("placing a cell that does not exist");
},
......
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