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

three line pieces warning

parent 4c1a5e69
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ define(['underscore', 'backbone', 'appState', 'lattice', 'threeModel', 'three',
var mesh = new THREE.Mesh(planeGeometry, new THREE.MeshBasicMaterial({color:0x000000, transparent:true, opacity:0.0}));
// return [mesh];
return [mesh, new THREE.Line(geometry, new THREE.LineBasicMaterial({color:0x000000, transparent:true, linewidth:2, opacity:this.get("material").opacity}), THREE.LinePieces)];
return [mesh, new THREE.LineSegments(geometry, new THREE.LineBasicMaterial({color:0x000000, transparent:true, linewidth:2, opacity:this.get("material").opacity}))];
}
});
});
\ No newline at end of file
......@@ -34,7 +34,7 @@ define(['underscore', 'backbone', 'appState', 'lattice', 'threeModel', 'three',
planeGeometry.computeFaceNormals();
var mesh = new THREE.Mesh(planeGeometry, new THREE.MeshBasicMaterial({color:0x000000, transparent:true, opacity:0.0}));
return [mesh, new THREE.Line(geometry, new THREE.LineBasicMaterial({color:0x000000, transparent:true, linewidth:2, opacity:this.get("material").opacity}), THREE.LinePieces)];
return [mesh, new THREE.LineSegments(geometry, new THREE.LineBasicMaterial({color:0x000000, transparent:true, linewidth:2, opacity:this.get("material").opacity}))];
}
// _renderZIndexChange: function(){
......
......@@ -30,12 +30,12 @@ define(['underscore', 'backbone', 'appState', 'globals', 'plist', 'three', 'thre
},
_zIndexRotation: function(index){
if (index.z%2 == 0) return Math.PI/2;
if (index.z%2 == 1) return Math.PI/2;
return 0;
},
_zIndexRotationSuperCell: function(index){
if (index.z%2 != 0) return -Math.PI/2;//this goes neg if zIndexRotation rules are opp? need to clear this up eventually
if (index.z%2 != 1) return Math.PI/2;//todo this goes neg if zIndexRotation rules are opp? need to clear this up eventually
return 0;
},
......
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