|
@@ -11043,14 +11043,14 @@ const _uvC = new Vector2();
|
|
|
const _intersectionPoint = new Vector3();
|
|
|
const _intersectionPointWorld = new Vector3();
|
|
|
|
|
|
-function Mesh( geometry, material ) {
|
|
|
+function Mesh( geometry = new BufferGeometry(), material = new MeshBasicMaterial() ) {
|
|
|
|
|
|
Object3D.call( this );
|
|
|
|
|
|
this.type = 'Mesh';
|
|
|
|
|
|
- this.geometry = geometry !== undefined ? geometry : new BufferGeometry();
|
|
|
- this.material = material !== undefined ? material : new MeshBasicMaterial();
|
|
|
+ this.geometry = geometry;
|
|
|
+ this.material = material;
|
|
|
|
|
|
this.updateMorphTargets();
|
|
|
|
|
@@ -26827,20 +26827,14 @@ const _inverseMatrix$1 = new Matrix4();
|
|
|
const _ray$1 = new Ray();
|
|
|
const _sphere$2 = new Sphere();
|
|
|
|
|
|
-function Line( geometry, material, mode ) {
|
|
|
-
|
|
|
- if ( mode === 1 ) {
|
|
|
-
|
|
|
- console.error( 'THREE.Line: parameter THREE.LinePieces no longer supported. Use THREE.LineSegments instead.' );
|
|
|
-
|
|
|
- }
|
|
|
+function Line( geometry = new BufferGeometry(), material = new LineBasicMaterial() ) {
|
|
|
|
|
|
Object3D.call( this );
|
|
|
|
|
|
this.type = 'Line';
|
|
|
|
|
|
- this.geometry = geometry !== undefined ? geometry : new BufferGeometry();
|
|
|
- this.material = material !== undefined ? material : new LineBasicMaterial();
|
|
|
+ this.geometry = geometry;
|
|
|
+ this.material = material;
|
|
|
|
|
|
this.updateMorphTargets();
|
|
|
|
|
@@ -27255,14 +27249,14 @@ const _ray$2 = new Ray();
|
|
|
const _sphere$3 = new Sphere();
|
|
|
const _position$1 = new Vector3();
|
|
|
|
|
|
-function Points( geometry, material ) {
|
|
|
+function Points( geometry = new BufferGeometry(), material = new PointsMaterial() ) {
|
|
|
|
|
|
Object3D.call( this );
|
|
|
|
|
|
this.type = 'Points';
|
|
|
|
|
|
- this.geometry = geometry !== undefined ? geometry : new BufferGeometry();
|
|
|
- this.material = material !== undefined ? material : new PointsMaterial();
|
|
|
+ this.geometry = geometry;
|
|
|
+ this.material = material;
|
|
|
|
|
|
this.updateMorphTargets();
|
|
|
|
|
@@ -35858,12 +35852,12 @@ VectorKeyframeTrack.prototype = Object.assign( Object.create( KeyframeTrack.prot
|
|
|
|
|
|
} );
|
|
|
|
|
|
-function AnimationClip( name, duration, tracks, blendMode ) {
|
|
|
+function AnimationClip( name, duration = - 1, tracks, blendMode = NormalAnimationBlendMode ) {
|
|
|
|
|
|
this.name = name;
|
|
|
this.tracks = tracks;
|
|
|
- this.duration = ( duration !== undefined ) ? duration : - 1;
|
|
|
- this.blendMode = ( blendMode !== undefined ) ? blendMode : NormalAnimationBlendMode;
|
|
|
+ this.duration = duration;
|
|
|
+ this.blendMode = blendMode;
|
|
|
|
|
|
this.uuid = MathUtils.generateUUID();
|
|
|
|
|
@@ -39746,7 +39740,7 @@ PointLight.prototype = Object.assign( Object.create( Light.prototype ), {
|
|
|
|
|
|
} );
|
|
|
|
|
|
-function OrthographicCamera( left, right, top, bottom, near, far ) {
|
|
|
+function OrthographicCamera( left = - 1, right = 1, top = 1, bottom = - 1, near = 0.1, far = 2000 ) {
|
|
|
|
|
|
Camera.call( this );
|
|
|
|
|
@@ -39755,13 +39749,13 @@ function OrthographicCamera( left, right, top, bottom, near, far ) {
|
|
|
this.zoom = 1;
|
|
|
this.view = null;
|
|
|
|
|
|
- this.left = ( left !== undefined ) ? left : - 1;
|
|
|
- this.right = ( right !== undefined ) ? right : 1;
|
|
|
- this.top = ( top !== undefined ) ? top : 1;
|
|
|
- this.bottom = ( bottom !== undefined ) ? bottom : - 1;
|
|
|
+ this.left = left;
|
|
|
+ this.right = right;
|
|
|
+ this.top = top;
|
|
|
+ this.bottom = bottom;
|
|
|
|
|
|
- this.near = ( near !== undefined ) ? near : 0.1;
|
|
|
- this.far = ( far !== undefined ) ? far : 2000;
|
|
|
+ this.near = near;
|
|
|
+ this.far = far;
|
|
|
|
|
|
this.updateProjectionMatrix();
|
|
|
|
|
@@ -46659,7 +46653,7 @@ Object.assign( Raycaster.prototype, {
|
|
|
|
|
|
} else {
|
|
|
|
|
|
- console.error( 'THREE.Raycaster: Unsupported camera type.' );
|
|
|
+ console.error( 'THREE.Raycaster: Unsupported camera type: ' + camera.type );
|
|
|
|
|
|
}
|
|
|
|