From 0e7dc0a8a26c084aaf2a189aa2ea48434c846e29 Mon Sep 17 00:00:00 2001 From: Amanda Ghassaei <amandaghassaei@gmail.com> Date: Mon, 14 Sep 2015 18:31:00 -0400 Subject: [PATCH] aspect ratio --- js/parts/DNAStraightPart.js | 2 +- js/plists/PList.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/js/parts/DNAStraightPart.js b/js/parts/DNAStraightPart.js index 80a8fbff..4fd898ef 100644 --- a/js/parts/DNAStraightPart.js +++ b/js/parts/DNAStraightPart.js @@ -5,7 +5,7 @@ define(['underscore', 'stlLoader', 'gikPart'], function(_, THREE, GIKPart){ - var zScale = 1/8; + var zScale = 1.08/8; var unitGeo = new THREE.BoxGeometry(0.2, 0.2, zScale); var bridgeGeo = new THREE.BoxGeometry(0.3, 0.4, zScale); diff --git a/js/plists/PList.js b/js/plists/PList.js index 56f4b679..58ff02f7 100644 --- a/js/plists/PList.js +++ b/js/plists/PList.js @@ -261,10 +261,12 @@ define(['three'], function(THREE){ name: "Lego Blocks" } }, - aspectRatio: new THREE.Vector3(1,1,1), + aspectRatio: new THREE.Vector3(1,1,1.08), materialClasses: ['mechanical'], options: { - gikLength: 2 + gikLength: 2, + scale: 2.5, + units: 'nm' } }, default: { -- GitLab