From ff7850471affca568f0bdcd49de94ca281d2656e Mon Sep 17 00:00:00 2001 From: Amanda Ghassaei <amandaghassaei@gmail.com> Date: Tue, 26 May 2015 23:00:44 -0700 Subject: [PATCH] wireframes --- js/cells/CubeCell.js | 2 ++ js/cells/TruncatedCubeCell.js | 5 ++++- js/models/AllAppPLists.js | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/js/cells/CubeCell.js b/js/cells/CubeCell.js index 355dddf5..cda3dc62 100644 --- a/js/cells/CubeCell.js +++ b/js/cells/CubeCell.js @@ -19,6 +19,8 @@ CubeCell.prototype._buildWireframe = function(mesh){//abstract mesh representation of cell var wireframe = new THREE.BoxHelper(mesh); wireframe.material.color.set(0x000000); + wireframe.matrixWorld = mesh.matrixWorld; + wireframe.matrixAutoUpdate = true; return wireframe; }; diff --git a/js/cells/TruncatedCubeCell.js b/js/cells/TruncatedCubeCell.js index 5e6665bd..35fdca0d 100644 --- a/js/cells/TruncatedCubeCell.js +++ b/js/cells/TruncatedCubeCell.js @@ -59,7 +59,10 @@ }; TruncatedCubeCell.prototype._buildWireframe = function(mesh){//abstract mesh representation of cell - return new THREE.EdgesHelper(mesh, 0x000000); + var wireframe = new THREE.EdgesHelper(mesh, 0x000000); + wireframe.matrixWorld = mesh.matrixWorld; + wireframe.matrixAutoUpdate = true; + return wireframe; }; TruncatedCubeCell.prototype.calcHighlighterPosition = function(face){ diff --git a/js/models/AllAppPLists.js b/js/models/AllAppPLists.js index 322bc864..684124c1 100644 --- a/js/models/AllAppPLists.js +++ b/js/models/AllAppPLists.js @@ -31,7 +31,7 @@ function AppPList(){ tetra: "Tetrahedron (Coming Soon)", cube:"Cube", truncatedCube:"Cuboctahedron", - kelvin:"Truncated Octahedron" + kelvin:"Kelvin" }, allConnectionTypes: { octa: {face:"Face", freeformFace:"Freeform Face", edgeRot:"Edge", vertex:"Vertex"},//edge:"Edge", -- GitLab