Jelajahi Sumber

Removed Face4 from BufferGeometryUtils.

Mr.doob 12 tahun lalu
induk
melakukan
9841d47434
1 mengubah file dengan 0 tambahan dan 82 penghapusan
  1. 0 82
      examples/js/BufferGeometryUtils.js

+ 0 - 82
examples/js/BufferGeometryUtils.js

@@ -157,88 +157,6 @@ THREE.BufferGeometryUtils = {
 			i3 += 9;
 			i2 += 6;
 
-			if ( face instanceof THREE.Face4 ) {
-
-				var d = vertices[ face.d ];
-
-				positions[ i3     ] = a.x;
-				positions[ i3 + 1 ] = a.y;
-				positions[ i3 + 2 ] = a.z;
-				
-				positions[ i3 + 3 ] = c.x;
-				positions[ i3 + 4 ] = c.y;
-				positions[ i3 + 5 ] = c.z;
-				
-				positions[ i3 + 6 ] = d.x;
-				positions[ i3 + 7 ] = d.y;
-				positions[ i3 + 8 ] = d.z;
-
-				var nd = face.vertexNormals[ 3 ];
-
-				normals[ i3     ] = na.x;
-				normals[ i3 + 1 ] = na.y;
-				normals[ i3 + 2 ] = na.z;
-
-				normals[ i3 + 3 ] = nc.x;
-				normals[ i3 + 4 ] = nc.y;
-				normals[ i3 + 5 ] = nc.z;
-
-				normals[ i3 + 6 ] = nd.x;
-				normals[ i3 + 7 ] = nd.y;
-				normals[ i3 + 8 ] = nd.z;
-
-				if ( vertexColors === THREE.FaceColors ) {
-
-					colors[ i3     ] = fc.r;
-					colors[ i3 + 1 ] = fc.g;
-					colors[ i3 + 2 ] = fc.b;
-
-					colors[ i3 + 3 ] = fc.r;
-					colors[ i3 + 4 ] = fc.g;
-					colors[ i3 + 5 ] = fc.b;
-
-					colors[ i3 + 6 ] = fc.r;
-					colors[ i3 + 7 ] = fc.g;
-					colors[ i3 + 8 ] = fc.b;
-
-				} else if ( vertexColors === THREE.VertexColors ) {
-
-					var vcd = face.vertexColors[ 3 ];
-
-					colors[ i3     ] = vca.r;
-					colors[ i3 + 1 ] = vca.g;
-					colors[ i3 + 2 ] = vca.b;
-
-					colors[ i3 + 3 ] = vcc.r;
-					colors[ i3 + 4 ] = vcc.g;
-					colors[ i3 + 5 ] = vcc.b;
-
-					colors[ i3 + 6 ] = vcd.r;
-					colors[ i3 + 7 ] = vcd.g;
-					colors[ i3 + 8 ] = vcd.b;
-
-				}
-
-				if ( hasFaceVertexUv === true ) {
-
-					var uvd = faceVertexUvs[ 0 ][ i ][ 3 ];
-
-					uvs[ i2     ] = uva.x;
-					uvs[ i2 + 1 ] = uva.y;
-				
-					uvs[ i2 + 2 ] = uvc.x;
-					uvs[ i2 + 3 ] = uvc.y;
-				
-					uvs[ i2 + 4 ] = uvd.x;
-					uvs[ i2 + 5 ] = uvd.y;
-								
-				}
-
-				i3 += 9;
-				i2 += 6;
-			
-			}
-
 		}
 
 		bufferGeometry.computeBoundingSphere();