diff --git a/js/fea/DmaPart.js b/js/fea/DmaPart.js index 792de4d07dd5165635f1b5e9df47e3aa1f89c831..17b0869f31aaaa1feee6a48a1b85969f5352a189 100644 --- a/js/fea/DmaPart.js +++ b/js/fea/DmaPart.js @@ -154,9 +154,10 @@ var partMaterial = new THREE.MeshLambertMaterial({ color:0xffffff, shading: THRE unitPartGeo = geometry; unitPartGeo.computeBoundingBox(); - var unitScale = 0.7/unitPartGeo.boundingBox.max.y; + var unitScale = 0.706/unitPartGeo.boundingBox.max.y; unitPartGeo.applyMatrix(new THREE.Matrix4().makeScale(unitScale, unitScale, unitScale)); unitPartGeo.applyMatrix(new THREE.Matrix4().makeRotationY(Math.PI)); + unitPartGeo.applyMatrix(new THREE.Matrix4().makeTranslation(0,0,0.09)); }); function DMAEdgeVoxPart(type, parent){ diff --git a/js/models/Lattice.js b/js/models/Lattice.js index 5fbec446b7fdf1216013f273bb19a89de4c6d84a..6c23b23f8869ee188a6d3b105109a1f0e1e3847c 100644 --- a/js/models/Lattice.js +++ b/js/models/Lattice.js @@ -128,7 +128,7 @@ Lattice = Backbone.Model.extend({ dmaGlobals.three.render(); }, - //todo send clear all to three anddestroy without sceneRemove to cell + //todo send clear all to three and destroy without sceneRemove to cell clearCells: function(){ this._iterCells(this.get("cells"), function(cell){ if (cell && cell.destroy) cell.destroy();