|
@@ -1,21 +1,10 @@
|
|
|
-import { Geometry } from './Geometry';
|
|
|
-import { EventDispatcher } from './EventDispatcher';
|
|
|
-import { Vector2 } from '../math/Vector2';
|
|
|
-import { _Math } from '../math/Math';
|
|
|
-import { GeometryIdCount } from './Geometry';
|
|
|
-
|
|
|
/**
|
|
|
* @author mrdoob / http://mrdoob.com/
|
|
|
*/
|
|
|
|
|
|
-function DirectGeometry() {
|
|
|
-
|
|
|
- Object.defineProperty( this, 'id', { value: GeometryIdCount() } );
|
|
|
-
|
|
|
- this.uuid = _Math.generateUUID();
|
|
|
+import { Vector2 } from '../math/Vector2';
|
|
|
|
|
|
- this.name = '';
|
|
|
- this.type = 'DirectGeometry';
|
|
|
+function DirectGeometry() {
|
|
|
|
|
|
this.indices = [];
|
|
|
this.vertices = [];
|
|
@@ -46,22 +35,7 @@ function DirectGeometry() {
|
|
|
|
|
|
}
|
|
|
|
|
|
-Object.assign( DirectGeometry.prototype, EventDispatcher.prototype, {
|
|
|
-
|
|
|
- computeBoundingBox: Geometry.prototype.computeBoundingBox,
|
|
|
- computeBoundingSphere: Geometry.prototype.computeBoundingSphere,
|
|
|
-
|
|
|
- computeFaceNormals: function () {
|
|
|
-
|
|
|
- console.warn( 'THREE.DirectGeometry: computeFaceNormals() is not a method of this type of geometry.' );
|
|
|
-
|
|
|
- },
|
|
|
-
|
|
|
- computeVertexNormals: function () {
|
|
|
-
|
|
|
- console.warn( 'THREE.DirectGeometry: computeVertexNormals() is not a method of this type of geometry.' );
|
|
|
-
|
|
|
- },
|
|
|
+Object.assign( DirectGeometry.prototype, {
|
|
|
|
|
|
computeGroups: function ( geometry ) {
|
|
|
|
|
@@ -281,12 +255,6 @@ Object.assign( DirectGeometry.prototype, EventDispatcher.prototype, {
|
|
|
|
|
|
return this;
|
|
|
|
|
|
- },
|
|
|
-
|
|
|
- dispose: function () {
|
|
|
-
|
|
|
- this.dispatchEvent( { type: 'dispose' } );
|
|
|
-
|
|
|
}
|
|
|
|
|
|
} );
|