From 901881d9d21badc72ae813ca0cf64255fa150322 Mon Sep 17 00:00:00 2001 From: Amanda Ghassaei <amandaghassaei@gmail.com> Date: Wed, 28 Jan 2015 21:03:06 -0500 Subject: [PATCH] scale working --- js/main.js | 2 ++ js/threeViews/threeView.js | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 8cec3b7b..aef39a87 100644 --- a/js/main.js +++ b/js/main.js @@ -18,4 +18,6 @@ $(function(){ //setup ui var menu = MenuWrapper({lattice:lattice}); NavBar(menu); + + lattice.addCell(new THREE.Vector3(0,0,0)); }); diff --git a/js/threeViews/threeView.js b/js/threeViews/threeView.js index d9799972..5ce802cc 100644 --- a/js/threeViews/threeView.js +++ b/js/threeViews/threeView.js @@ -198,7 +198,6 @@ ThreeView = Backbone.View.extend({ if (type == "octa" && (connectionType == "face" || connectionType == "edge")){ - this.lattice.addCell(new THREE.Vector3(0,0,0)); var triangleHeight = gridSize/2*Math.sqrt(3); for (var j=-baseDim;j<=baseDim;j++){ -- GitLab