提交 88a104b6 编写于 作者: M Mr.doob

Updated builds.

上级 2fa40cbd
......@@ -7096,6 +7096,34 @@ THREE.EventDispatcher.prototype = {
} );
} else if ( object instanceof THREE.PointCloud ) {
var vertices = object.geometry.vertices;
for ( var i = 0; i < vertices.length; i ++ ) {
var v = vertices[ i ];
matrixPosition.copy( v ).applyMatrix4( object.matrixWorld );
var distance = raycaster.ray.distanceToPoint( matrixPosition );
if ( distance < 1 ) { // needs a better test; particle size?
intersects.push( {
distance: distance,
index: i,
face: null,
object: object
} );
}
}
} else if ( object instanceof THREE.LOD ) {
matrixPosition.setFromMatrixPosition( object.matrixWorld );
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册