diff --git a/js/fea/DmaCell.js b/js/fea/DmaCell.js index eada9d7ab8a64a4dcd65723cd64fc137b5340d97..044ac75bde544d347764b609e157d73bede47e80 100644 --- a/js/fea/DmaCell.js +++ b/js/fea/DmaCell.js @@ -33,14 +33,14 @@ DMACell.prototype.drawForMode = function(scale, cellMode, inverseMode){ DMACell.prototype._superBuildCellMesh = function(unitCellGeo, material){//abstract mesh representation of cell if (!material) material = cellMaterials; var mesh = THREE.SceneUtils.createMultiMaterialObject(unitCellGeo, material); - this._doMeshTransformations(mesh); + this._doMeshTransformations(mesh);//some cell types require transformations, this may go away if i decide to do this in the geo instead mesh.myParent = this;//we need a reference to this instance from the mesh for intersection selection stuff if (this.isInverse) dmaGlobals.three.sceneAdd(mesh, "inverseCell"); else dmaGlobals.three.sceneAdd(mesh, "cell"); return mesh; }; -DMACell.prototype._doMeshTransformations = function(mesh){}; +DMACell.prototype._doMeshTransformations = function(mesh){};//by defualt, no mesh transformations /////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////SCALE/POSITION//////////////////////////////////////////////// @@ -75,7 +75,6 @@ DMACell.prototype.getPosition = function(){//need for part relay }; DMACell.prototype._setCellMeshVisibility = function(visibility){ - if (!this.cellMesh) return; this.cellMesh.visible = visibility; };