diff --git a/js/models/threeModel.js b/js/models/threeModel.js index 9947e78e13f2b73f22b13f6f6ce561b0914fb75b..08d734c202cc2ada27b4a40fe08cfb0c63a50c68 100644 --- a/js/models/threeModel.js +++ b/js/models/threeModel.js @@ -13,7 +13,9 @@ function ThreeModel(){ function initialize(){ - camera.position.z = 500; + camera.position.x = 125; + camera.position.y = 100; + camera.position.z = 165; scene.fog = new THREE.FogExp2(0xcccccc, 0.002); // lights diff --git a/js/threeViews/fillGeometryView.js b/js/threeViews/fillGeometryView.js index 18a7fb1da8b66bfbbc5288aa4347cc635b30383a..466b7ebff6281bbf28572cd9924f88ec94aa1609 100644 --- a/js/threeViews/fillGeometryView.js +++ b/js/threeViews/fillGeometryView.js @@ -39,11 +39,11 @@ FillGeometryView = PushPullMeshView.extend({ updateBounds: function(){ var bounds = this.model.get("bounds");//this has not been scaled or rotated, as is when model was first imported var max = bounds.max.toArray(); - var min = bounds.min.toArray() + var min = bounds.min.toArray(); var size = numeric.sub(max, min); var translation = numeric.mul(numeric.add(max, min), 0.5); var geometry = new THREE.BoxGeometry(size[0], size[1], size[2]); - geometry.applyMatrix( new THREE.Matrix4().makeTranslation(translation[0], translation[1], translation[2])); + geometry.applyMatrix(new THREE.Matrix4().makeTranslation(translation[0], translation[1], translation[2])); this.boundsBox.geometry = geometry; this.boxHelper.update(this.boundsBox); this.render();