From 2480da98e7da88126e5f0846b0bccf5136723404 Mon Sep 17 00:00:00 2001 From: Amanda Ghassaei <amandaghassaei@gmail.com> Date: Mon, 24 Aug 2015 13:04:16 -0400 Subject: [PATCH] fix case issue --- js/parts/KennyTeqHighResPart.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 js/parts/KennyTeqHighResPart.js diff --git a/js/parts/KennyTeqHighResPart.js b/js/parts/KennyTeqHighResPart.js new file mode 100644 index 00000000..f47dbce4 --- /dev/null +++ b/js/parts/KennyTeqHighResPart.js @@ -0,0 +1,22 @@ +/** + * Created by aghassaei on 6/29/15. + */ + +define(['underscore', 'stlLoader', 'part', 'bin!kennyTeqPartHighResSTL'], function(_, THREE, DMAPart, stl){ + + var loader = new THREE.STLLoader(); + var unitGeo = loader.parse(stl); + var unitScale = 1/6.9597; + unitGeo.applyMatrix(new THREE.Matrix4().makeScale(unitScale, unitScale, unitScale)); + + function PartSubclass(type, parent){ + DMAPart.call(this, type, parent); + } + PartSubclass.prototype = Object.create(DMAPart.prototype); + + PartSubclass.prototype._getGeometry = function(){ + return unitGeo; + }; + + return PartSubclass; +}); \ No newline at end of file -- GitLab