diff --git a/js/fea/DmaCell.js b/js/fea/DmaCell.js index 369017c2e06bb8911e908c0fda62a8b0f523d992..34359dbd09ab0222e4ce32a19801f451a4d9b452 100644 --- a/js/fea/DmaCell.js +++ b/js/fea/DmaCell.js @@ -14,6 +14,7 @@ function DMACell(indices, cellMode, partType) { this.cellMesh = this._buildCellMesh(); this._doMeshTransformations(this.cellMesh);//some cell types require transformations + this._setMeshPosition(this.cellMesh, this._calcPosition()); globals.three.sceneAdd(this.cellMesh,this._sceneType(indices)); diff --git a/js/fea/DmaPart.js b/js/fea/DmaPart.js index 7069dfb530651729f24cb07aa3246c90aee5baba..cd977ced5db20bb5bc53c5f0b17c74aef5dabe93 100644 --- a/js/fea/DmaPart.js +++ b/js/fea/DmaPart.js @@ -22,13 +22,6 @@ var partMaterial = new THREE.MeshLambertMaterial({ color:0xffffff, shading: THRE globals.three.sceneAdd(this.mesh, "part"); }; - DMAPart.prototype.updateForScale = function(scale, position){ - if (this.mesh) { - this.mesh.scale.set(scale, scale, scale); - this._setMeshPosition(position); - } - }; - DMAPart.prototype._setMeshPosition = function(position){ var mesh = this.mesh; mesh.position.x = position.x; @@ -229,7 +222,6 @@ var partMaterial = new THREE.MeshLambertMaterial({ color:0xffffff, shading: THRE var unitScale = 1/(1.2699999809265137); unitPartGeo.applyMatrix(new THREE.Matrix4().makeRotationX(Math.PI/2)); unitPartGeo.applyMatrix(new THREE.Matrix4().makeScale(unitScale, unitScale, unitScale)); - console.log(unitPartGeo); }); function DMAGIKPart(type, parent){