From aa294d2d8c6dd4ef3f4c20e2511b6399e7dadbff Mon Sep 17 00:00:00 2001
From: amandaghassaei <amandaghassaei@gmail.com>
Date: Tue, 17 Mar 2015 03:25:14 -0400
Subject: [PATCH] scaling

---
 js/fea/DmaPart.js    | 3 ++-
 js/models/Lattice.js | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/js/fea/DmaPart.js b/js/fea/DmaPart.js
index 792de4d0..17b0869f 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 5fbec446..6c23b23f 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();
-- 
GitLab