|
|
@@ -986,6 +986,32 @@ THREE.Triangle.getInterpolation = function( point, p1, p2, p3, v1, v2, v3, targe
|
|
|
|
|
|
|
|
|
|
|
|
+THREE.Frustum.prototype.intersectsObject = function( object ) {
|
|
|
+ /* if(object.name == '网格001' && object.geometry.attributes.position.count == 5778){
|
|
|
+ debugger
|
|
|
+ } */
|
|
|
+ if ( object.boundingSphere !== undefined ) {//null skinMesh 173ver 和frustumCull有关
|
|
|
+
|
|
|
+ if ( object.boundingSphere === null ) object.computeBoundingSphere();
|
|
|
+
|
|
|
+ _sphere$5.copy( object.boundingSphere ).applyMatrix4( object.matrixWorld );
|
|
|
+
|
|
|
+ } else {
|
|
|
+
|
|
|
+ const geometry = object.geometry;
|
|
|
+
|
|
|
+ if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();
|
|
|
+
|
|
|
+ _sphere$5.copy( geometry.boundingSphere ).applyMatrix4( object.matrixWorld );
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ return this.intersectsSphere( _sphere$5 );
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|