|
@@ -416,39 +416,6 @@ Mesh.prototype = Object.assign( Object.create( Object3D.prototype ), {
|
|
fvB = vertices[ face.b ];
|
|
fvB = vertices[ face.b ];
|
|
fvC = vertices[ face.c ];
|
|
fvC = vertices[ face.c ];
|
|
|
|
|
|
- if ( faceMaterial.morphTargets === true ) {
|
|
|
|
-
|
|
|
|
- var morphTargets = geometry.morphTargets;
|
|
|
|
- var morphInfluences = this.morphTargetInfluences;
|
|
|
|
-
|
|
|
|
- vA.set( 0, 0, 0 );
|
|
|
|
- vB.set( 0, 0, 0 );
|
|
|
|
- vC.set( 0, 0, 0 );
|
|
|
|
-
|
|
|
|
- for ( var t = 0, tl = morphTargets.length; t < tl; t ++ ) {
|
|
|
|
-
|
|
|
|
- var influence = morphInfluences[ t ];
|
|
|
|
-
|
|
|
|
- if ( influence === 0 ) continue;
|
|
|
|
-
|
|
|
|
- var targets = morphTargets[ t ].vertices;
|
|
|
|
-
|
|
|
|
- vA.addScaledVector( tempA.subVectors( targets[ face.a ], fvA ), influence );
|
|
|
|
- vB.addScaledVector( tempB.subVectors( targets[ face.b ], fvB ), influence );
|
|
|
|
- vC.addScaledVector( tempC.subVectors( targets[ face.c ], fvC ), influence );
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- vA.add( fvA );
|
|
|
|
- vB.add( fvB );
|
|
|
|
- vC.add( fvC );
|
|
|
|
-
|
|
|
|
- fvA = vA;
|
|
|
|
- fvB = vB;
|
|
|
|
- fvC = vC;
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
intersection = checkIntersection( this, faceMaterial, raycaster, ray, fvA, fvB, fvC, intersectionPoint );
|
|
intersection = checkIntersection( this, faceMaterial, raycaster, ray, fvA, fvB, fvC, intersectionPoint );
|
|
|
|
|
|
if ( intersection ) {
|
|
if ( intersection ) {
|