Przeglądaj źródła

Examples: Remove TypedGeometryExporter.

Mugen87 4 lat temu
rodzic
commit
5a8e51ba36

+ 0 - 53
examples/js/exporters/TypedGeometryExporter.js

@@ -1,53 +0,0 @@
-console.warn( "THREE.TypedGeometryExporter: As part of the transition to ES6 Modules, the files in 'examples/js' were deprecated in May 2020 (r117) and will be deleted in December 2020 (r124). You can find more information about developing using ES6 Modules in https://threejs.org/docs/#manual/en/introduction/Installation." );
-
-THREE.TypedGeometryExporter = function () {};
-
-THREE.TypedGeometryExporter.prototype = {
-
-	constructor: THREE.TypedGeometryExporter,
-
-	parse: function ( geometry ) {
-
-		var output = {
-			metadata: {
-				version: 4.0,
-				type: 'TypedGeometry',
-				generator: 'TypedGeometryExporter'
-			}
-		};
-
-		var attributes = [ 'vertices', 'normals', 'uvs' ];
-
-		for ( var key in attributes ) {
-
-			var attribute = attributes[ key ];
-
-			var typedArray = geometry[ attribute ];
-			var array = [];
-
-			for ( var i = 0, l = typedArray.length; i < l; i ++ ) {
-
-				array[ i ] = typedArray[ i ];
-
-			}
-
-			output[ attribute ] = array;
-
-		}
-
-		var boundingSphere = geometry.boundingSphere;
-
-		if ( boundingSphere !== null ) {
-
-			output.boundingSphere = {
-				center: boundingSphere.center.toArray(),
-				radius: boundingSphere.radius
-			};
-
-		}
-
-		return output;
-
-	}
-
-};

+ 0 - 9
examples/jsm/exporters/TypedGeometryExporter.d.ts

@@ -1,9 +0,0 @@
-import { Object3D } from '../../../src/Three';
-
-export class TypedGeometryExporter {
-
-	constructor();
-
-	parse( scene: Object3D, options: {} ): DataView | string;
-
-}

+ 0 - 55
examples/jsm/exporters/TypedGeometryExporter.js

@@ -1,55 +0,0 @@
-
-
-var TypedGeometryExporter = function () {};
-
-TypedGeometryExporter.prototype = {
-
-	constructor: TypedGeometryExporter,
-
-	parse: function ( geometry ) {
-
-		var output = {
-			metadata: {
-				version: 4.0,
-				type: 'TypedGeometry',
-				generator: 'TypedGeometryExporter'
-			}
-		};
-
-		var attributes = [ 'vertices', 'normals', 'uvs' ];
-
-		for ( var key in attributes ) {
-
-			var attribute = attributes[ key ];
-
-			var typedArray = geometry[ attribute ];
-			var array = [];
-
-			for ( var i = 0, l = typedArray.length; i < l; i ++ ) {
-
-				array[ i ] = typedArray[ i ];
-
-			}
-
-			output[ attribute ] = array;
-
-		}
-
-		var boundingSphere = geometry.boundingSphere;
-
-		if ( boundingSphere !== null ) {
-
-			output.boundingSphere = {
-				center: boundingSphere.center.toArray(),
-				radius: boundingSphere.radius
-			};
-
-		}
-
-		return output;
-
-	}
-
-};
-
-export { TypedGeometryExporter };

+ 0 - 1
utils/modularize.js

@@ -40,7 +40,6 @@ var files = [
 	{ path: 'exporters/OBJExporter.js', dependencies: [], ignoreList: [] },
 	{ path: 'exporters/PLYExporter.js', dependencies: [], ignoreList: [] },
 	{ path: 'exporters/STLExporter.js', dependencies: [], ignoreList: [] },
-	{ path: 'exporters/TypedGeometryExporter.js', dependencies: [], ignoreList: [] },
 
 	{ path: 'geometries/BoxLineGeometry.js', dependencies: [], ignoreList: [] },
 	{ path: 'geometries/ConvexGeometry.js', dependencies: [ { name: 'ConvexHull', path: 'math/ConvexHull.js' } ], ignoreList: [] },