|
@@ -28159,16 +28159,6 @@ function ParametricGeometry( func, slices, stacks ) {
|
|
|
ParametricGeometry.prototype = Object.create( Geometry.prototype );
|
|
|
ParametricGeometry.prototype.constructor = ParametricGeometry;
|
|
|
|
|
|
-ParametricGeometry.prototype.toJSON = function () {
|
|
|
-
|
|
|
- var data = Geometry.prototype.toJSON.call( this );
|
|
|
-
|
|
|
- data.func = this.parameters.func.toString();
|
|
|
-
|
|
|
- return data;
|
|
|
-
|
|
|
-};
|
|
|
-
|
|
|
// ParametricBufferGeometry
|
|
|
|
|
|
function ParametricBufferGeometry( func, slices, stacks ) {
|
|
@@ -28295,16 +28285,6 @@ function ParametricBufferGeometry( func, slices, stacks ) {
|
|
|
ParametricBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
|
|
|
ParametricBufferGeometry.prototype.constructor = ParametricBufferGeometry;
|
|
|
|
|
|
-ParametricBufferGeometry.prototype.toJSON = function () {
|
|
|
-
|
|
|
- var data = BufferGeometry.prototype.toJSON.call( this );
|
|
|
-
|
|
|
- data.func = this.parameters.func.toString();
|
|
|
-
|
|
|
- return data;
|
|
|
-
|
|
|
-};
|
|
|
-
|
|
|
/**
|
|
|
* @author clockworkgeek / https://github.com/clockworkgeek
|
|
|
* @author timothypratley / https://github.com/timothypratley
|
|
@@ -39884,19 +39864,6 @@ ObjectLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
|
|
|
|
|
|
break;
|
|
|
|
|
|
- case 'ParametricGeometry':
|
|
|
- case 'ParametricBufferGeometry':
|
|
|
-
|
|
|
- var func = new Function( 'return ' + data.func )();
|
|
|
-
|
|
|
- geometry = new Geometries[ data.type ](
|
|
|
- func,
|
|
|
- data.slices,
|
|
|
- data.stacks
|
|
|
- );
|
|
|
-
|
|
|
- break;
|
|
|
-
|
|
|
case 'BufferGeometry':
|
|
|
case 'InstancedBufferGeometry':
|
|
|
|