Skip to content
Snippets Groups Projects
Commit ff785047 authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

wireframes

parent 0b32098c
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
CubeCell.prototype._buildWireframe = function(mesh){//abstract mesh representation of cell CubeCell.prototype._buildWireframe = function(mesh){//abstract mesh representation of cell
var wireframe = new THREE.BoxHelper(mesh); var wireframe = new THREE.BoxHelper(mesh);
wireframe.material.color.set(0x000000); wireframe.material.color.set(0x000000);
wireframe.matrixWorld = mesh.matrixWorld;
wireframe.matrixAutoUpdate = true;
return wireframe; return wireframe;
}; };
......
...@@ -59,7 +59,10 @@ ...@@ -59,7 +59,10 @@
}; };
TruncatedCubeCell.prototype._buildWireframe = function(mesh){//abstract mesh representation of cell 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){ TruncatedCubeCell.prototype.calcHighlighterPosition = function(face){
......
...@@ -31,7 +31,7 @@ function AppPList(){ ...@@ -31,7 +31,7 @@ function AppPList(){
tetra: "Tetrahedron (Coming Soon)", tetra: "Tetrahedron (Coming Soon)",
cube:"Cube", cube:"Cube",
truncatedCube:"Cuboctahedron", truncatedCube:"Cuboctahedron",
kelvin:"Truncated Octahedron" kelvin:"Kelvin"
}, },
allConnectionTypes: { allConnectionTypes: {
octa: {face:"Face", freeformFace:"Freeform Face", edgeRot:"Edge", vertex:"Vertex"},//edge:"Edge", octa: {face:"Face", freeformFace:"Freeform Face", edgeRot:"Edge", vertex:"Vertex"},//edge:"Edge",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment