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

baseplane not highlightable from bottom

parent 00ece1b4
Branches
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ BasePlane = Backbone.Model.extend({ ...@@ -10,7 +10,7 @@ BasePlane = Backbone.Model.extend({
mesh: [], mesh: [],
dimX: 100, dimX: 100,
dimY: 100, dimY: 100,
material: new THREE.MeshBasicMaterial({color:0x000000, transparent:true, opacity:0.2, wireframe:true, side:THREE.DoubleSide}), material: new THREE.MeshBasicMaterial({color:0x000000, transparent:true, opacity:0.2, wireframe:true})
// currentScene: "default", // currentScene: "default",
// allScenes: {default:"Default", "mars":"Mars"} // allScenes: {default:"Default", "mars":"Mars"}
}, },
...@@ -225,7 +225,7 @@ SquareBasePlane = BasePlane.extend({ ...@@ -225,7 +225,7 @@ SquareBasePlane = BasePlane.extend({
planeGeometry.faces.push(new THREE.Face3(0, 3, 2)); planeGeometry.faces.push(new THREE.Face3(0, 3, 2));
planeGeometry.computeFaceNormals(); planeGeometry.computeFaceNormals();
var mesh = new THREE.Mesh(planeGeometry, new THREE.MeshBasicMaterial({color:0x000000, transparent:true, opacity:0.0, side:THREE.DoubleSide})); var mesh = new THREE.Mesh(planeGeometry, new THREE.MeshBasicMaterial({color:0x000000, transparent:true, opacity:0.0}));
mesh.myParent = this;//reference used for intersection highlighting mesh.myParent = this;//reference used for intersection highlighting
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.Line(geometry, new THREE.LineBasicMaterial({color:0x000000, transparent:true, linewidth:2, opacity:this.get("material").opacity}), THREE.LinePieces)];
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment