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

super cell length

parent 283341e9
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,8 @@ DMACell.prototype.updateForScale = function(scale, cellMode, partType){
this._setMeshPosition(this.cellMesh, position);
this.cellMesh.scale.set(scale, scale, scale);//must do this so highlighting works properly in part mode
if (this.superCell && this.superCellIndex == 0) this.superCell.setScale(scale);
//only update visible object to scale
if (!cellMode) cellMode = dmaGlobals.appState.get("cellMode");
if (!partType) partType = dmaGlobals.lattice.get("partType");
......@@ -249,6 +251,9 @@ DMACell.prototype.destroy = function(){
this.indices = null;
this.nodes = null;
this.beams = null;
this.superCell = null;
this.superCellIndex = null;
this.superCellLength = null;
};
DMACell.prototype.toJSON = function(){
......
......@@ -78,6 +78,7 @@ var cellMaterial = [new THREE.MeshNormalMaterial()];
};
DMAGIKCell.prototype.setSuperCell = function(superCell, index, length){
this.superCell = superCell;
this.superCellIndex = index;
this.superCellLength = length;
};
......
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