mrdoob/three.js — pull request #4672 by lmcd (2014-04-12 15:24:42+00:00)
Title: Add a way of excluding items from intersectObjects via a callback

For my project I need a way of selectively excluding items from intersectObjects based on userData attributes. Can be used like so:

raycaster.intersectObjects(objects, false, function(object) {
return object.userData['shouldIntersect'];
}

I thought it was useful, so have submitted as a PR.