From e6f3000df7155576a58a8c90e9da7b18a7f78beb Mon Sep 17 00:00:00 2001
From: Amanda Ghassaei <amandaghassaei@gmail.com>
Date: Wed, 28 Jan 2015 21:14:20 -0500
Subject: [PATCH] fixed part rotation bug

---
 js/fea/dmaPart.js | 2 +-
 main.html         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/js/fea/dmaPart.js b/js/fea/dmaPart.js
index 47378e75..eda72728 100644
--- a/js/fea/dmaPart.js
+++ b/js/fea/dmaPart.js
@@ -48,6 +48,7 @@
                 mesh.rotateZ(-2*Math.PI/3);
                 break;
         }
+        if (this.oddZFlag) mesh.rotateZ(Math.PI);
         return mesh;
     };
 
@@ -60,7 +61,6 @@
 
         if (this.oddZFlag){//adjust some offsets for odd z layers
             mesh.position.y += 7*scale/6;
-            mesh.rotateZ(Math.PI);
         }
         return mesh;
     };
diff --git a/main.html b/main.html
index d63f1ade..cd780003 100644
--- a/main.html
+++ b/main.html
@@ -37,7 +37,7 @@
 
     <!--global variables-->
     <script>
-        window.defaultLatticeScale = 10;
+        window.defaultLatticeScale = 20;
     </script>
 
     <!--multi-threading-->
-- 
GitLab