Browse Source

Fix to Raycaster.js to return calculated vertex and index info for BufferGeometry.

Tarek Sherif 11 years ago
parent
commit
76056bf550
3 changed files with 276 additions and 268 deletions
  1. 4 0
      build/three.js
  2. 268 268
      build/three.min.js
  3. 4 0
      src/core/Raycaster.js

+ 4 - 0
build/three.js

@@ -7148,6 +7148,8 @@ THREE.EventDispatcher.prototype = {
 
 								distance: distance,
 								point: intersectionPoint,
+								vertices: [vA.clone(), vB.clone(), vC.clone()],
+								indices: [a, b, c],
 								face: null,
 								faceIndex: null,
 								object: object
@@ -7211,6 +7213,8 @@ THREE.EventDispatcher.prototype = {
 
 							distance: distance,
 							point: intersectionPoint,
+							vertices: [vA.clone(), vB.clone(), vC.clone()],
+							indices: [a, b, c],
 							face: null,
 							faceIndex: null,
 							object: object

File diff suppressed because it is too large
+ 268 - 268
build/three.min.js


+ 4 - 0
src/core/Raycaster.js

@@ -164,6 +164,8 @@
 
 								distance: distance,
 								point: intersectionPoint,
+								vertices: [vA.clone(), vB.clone(), vC.clone()],
+								indices: [a, b, c],
 								face: null,
 								faceIndex: null,
 								object: object
@@ -227,6 +229,8 @@
 
 							distance: distance,
 							point: intersectionPoint,
+							vertices: [vA.clone(), vB.clone(), vC.clone()],
+							indices: [a, b, c],
 							face: null,
 							faceIndex: null,
 							object: object

Some files were not shown because too many files changed in this diff