|
@@ -30,13 +30,6 @@ THREE.BufferGeometry.prototype = {
|
|
|
|
|
|
constructor: THREE.BufferGeometry,
|
|
constructor: THREE.BufferGeometry,
|
|
|
|
|
|
- addIndex: function ( index ) {
|
|
|
|
-
|
|
|
|
- console.warn( 'THREE.BufferGeometry: .addIndex() has been renamed to .setIndex().' );
|
|
|
|
- this.setIndex( index );
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
getIndex: function () {
|
|
getIndex: function () {
|
|
|
|
|
|
return this.index;
|
|
return this.index;
|
|
@@ -86,40 +79,6 @@ THREE.BufferGeometry.prototype = {
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
- get drawcalls() {
|
|
|
|
-
|
|
|
|
- console.error( 'THREE.BufferGeometry: .drawcalls has been renamed to .groups.' );
|
|
|
|
- return this.groups;
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- get offsets() {
|
|
|
|
-
|
|
|
|
- console.warn( 'THREE.BufferGeometry: .offsets has been renamed to .groups.' );
|
|
|
|
- return this.groups;
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- addDrawCall: function ( start, count, indexOffset ) {
|
|
|
|
-
|
|
|
|
- if ( indexOffset !== undefined ) {
|
|
|
|
-
|
|
|
|
- console.warn( 'THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset.' );
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- console.warn( 'THREE.BufferGeometry: .addDrawCall() is now .addGroup().' );
|
|
|
|
- this.addGroup( start, count );
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- clearDrawCalls: function () {
|
|
|
|
-
|
|
|
|
- console.warn( 'THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups().' );
|
|
|
|
- this.clearGroups();
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
addGroup: function ( start, count, materialIndex ) {
|
|
addGroup: function ( start, count, materialIndex ) {
|
|
|
|
|
|
this.groups.push( {
|
|
this.groups.push( {
|
|
@@ -818,18 +777,6 @@ THREE.BufferGeometry.prototype = {
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
- computeTangents: function () {
|
|
|
|
-
|
|
|
|
- console.warn( 'THREE.BufferGeometry: .computeTangents() has been removed.' );
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- computeOffsets: function ( size ) {
|
|
|
|
-
|
|
|
|
- console.warn( 'THREE.BufferGeometry: .computeOffsets() has been removed.' );
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
merge: function ( geometry, offset ) {
|
|
merge: function ( geometry, offset ) {
|
|
|
|
|
|
if ( geometry instanceof THREE.BufferGeometry === false ) {
|
|
if ( geometry instanceof THREE.BufferGeometry === false ) {
|