title: Raycaster.intersectObjects() not returning anything?
body: <p>I set up my scene as follows:</p>
  
  <pre><code>document.addEventListener('mousedown', onDocumentMouseDown, false);
  
  var container = document.getElementById("myCanvas");
  
  scene = new THREE.Scene();
  camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
  
  renderer = new THREE.WebGLRenderer();
  renderer.setSize( window.innerWidth*0.99, window.innerHeight*0.99 );
  container.appendChild( renderer.domElement );
  
  room_material = new THREE.MeshBasicMaterial({color: 0x00ff00});
  room_material.side = THREE.DoubleSide;
  
  objects = [];
  
  camera.position.z = 19;
  camera.position.x = 5;
  camera.position.y = 30;
  </code></pre>
  
  <p>I have an array of objects that i'm trying to detect if a click intersects with them, defined as follows:</p>
  
  <pre><code>var thing0 = new THREE.Shape();
  thing0.moveTo(-12.1321728566, 35.3935535858);
  thing0.lineTo(7.10021556487,35.3935535858);
  thing0.lineTo(7.10021556487,19.7039735578);
  thing0.lineTo(5.12636517425,19.7166264449);
  thing0.lineTo(5.12636517425,33.6221493891);
  thing0.lineTo(-12.1377356984,33.6439534769);
  var thing0Geom = new THREE.ShapeGeometry(thing0);
  var thing0Mesh = new THREE.Mesh( thing0Geom, room_material );
  thing0Mesh.name = "abcd";
  scene.add(thing0Mesh);
  objects.push(thing0Mesh);
  </code></pre>
  
  <p>I then render the scene with the following code:</p>
  
  <pre><code>renderer.render(scene, camera);
  requestAnimationFrame(render);
  </code></pre>
  
  <p>And lastly I use the following code for the mouse click event:</p>
  
  <pre><code>function onDocumentMouseDown(event) {
      var vector = new THREE.Vector3(( event.clientX / window.innerWidth ) * 2 - 1, -( event.clientY / window.innerHeight ) * 2 + 1, 0.5);
      vector = vector.unproject(camera);
      var raycaster = new THREE.Raycaster(camera.position, vector.sub(camera.position).normalize());
      var intersects = raycaster.intersectObjects(objects, true);
      alert("well, you clicked!");
      if (intersects.length &gt; 0) {
          alert("wow, it worked");
      }
  }
  </code></pre>
  
  <p>However, no matter what I do the alert never gets called when it follows <code>raycaster.intersectObjects(objects, true);</code> However it does get called when it is placed anywhere before it. It seems that <code>raycaster.intersectObjects(objects, true);</code> is a bit of a black hole in this case? </p>
  
  <p>I assume I simply have something wrong in my setup? Any help would be appreciated!</p>