|
@@ -8645,10 +8645,18 @@
|
|
var _intersectionPointWorld = new Vector3();
|
|
var _intersectionPointWorld = new Vector3();
|
|
|
|
|
|
function Mesh(geometry, material) {
|
|
function Mesh(geometry, material) {
|
|
|
|
+ if (geometry === void 0) {
|
|
|
|
+ geometry = new BufferGeometry();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (material === void 0) {
|
|
|
|
+ material = new MeshBasicMaterial();
|
|
|
|
+ }
|
|
|
|
+
|
|
Object3D.call(this);
|
|
Object3D.call(this);
|
|
this.type = 'Mesh';
|
|
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();
|
|
this.updateMorphTargets();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -19973,15 +19981,19 @@
|
|
|
|
|
|
var _sphere$2 = new Sphere();
|
|
var _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, material) {
|
|
|
|
+ if (geometry === void 0) {
|
|
|
|
+ geometry = new BufferGeometry();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (material === void 0) {
|
|
|
|
+ material = new LineBasicMaterial();
|
|
}
|
|
}
|
|
|
|
|
|
Object3D.call(this);
|
|
Object3D.call(this);
|
|
this.type = 'Line';
|
|
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();
|
|
this.updateMorphTargets();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -20281,10 +20293,18 @@
|
|
var _position$1 = new Vector3();
|
|
var _position$1 = new Vector3();
|
|
|
|
|
|
function Points(geometry, material) {
|
|
function Points(geometry, material) {
|
|
|
|
+ if (geometry === void 0) {
|
|
|
|
+ geometry = new BufferGeometry();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (material === void 0) {
|
|
|
|
+ material = new PointsMaterial();
|
|
|
|
+ }
|
|
|
|
+
|
|
Object3D.call(this);
|
|
Object3D.call(this);
|
|
this.type = 'Points';
|
|
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();
|
|
this.updateMorphTargets();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -26850,10 +26870,18 @@
|
|
});
|
|
});
|
|
|
|
|
|
function AnimationClip(name, duration, tracks, blendMode) {
|
|
function AnimationClip(name, duration, tracks, blendMode) {
|
|
|
|
+ if (duration === void 0) {
|
|
|
|
+ duration = -1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (blendMode === void 0) {
|
|
|
|
+ blendMode = NormalAnimationBlendMode;
|
|
|
|
+ }
|
|
|
|
+
|
|
this.name = name;
|
|
this.name = name;
|
|
this.tracks = tracks;
|
|
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(); // this means it should figure out its duration by scanning the tracks
|
|
this.uuid = MathUtils.generateUUID(); // this means it should figure out its duration by scanning the tracks
|
|
|
|
|
|
if (this.duration < 0) {
|
|
if (this.duration < 0) {
|
|
@@ -29545,16 +29573,40 @@
|
|
});
|
|
});
|
|
|
|
|
|
function OrthographicCamera(left, right, top, bottom, near, far) {
|
|
function OrthographicCamera(left, right, top, bottom, near, far) {
|
|
|
|
+ if (left === void 0) {
|
|
|
|
+ left = -1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (right === void 0) {
|
|
|
|
+ right = 1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (top === void 0) {
|
|
|
|
+ top = 1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (bottom === void 0) {
|
|
|
|
+ bottom = -1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (near === void 0) {
|
|
|
|
+ near = 0.1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (far === void 0) {
|
|
|
|
+ far = 2000;
|
|
|
|
+ }
|
|
|
|
+
|
|
Camera.call(this);
|
|
Camera.call(this);
|
|
this.type = 'OrthographicCamera';
|
|
this.type = 'OrthographicCamera';
|
|
this.zoom = 1;
|
|
this.zoom = 1;
|
|
this.view = null;
|
|
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.near = near !== undefined ? near : 0.1;
|
|
|
|
- this.far = far !== undefined ? far : 2000;
|
|
|
|
|
|
+ this.left = left;
|
|
|
|
+ this.right = right;
|
|
|
|
+ this.top = top;
|
|
|
|
+ this.bottom = bottom;
|
|
|
|
+ this.near = near;
|
|
|
|
+ this.far = far;
|
|
this.updateProjectionMatrix();
|
|
this.updateProjectionMatrix();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -34291,7 +34343,7 @@
|
|
this.ray.direction.set(0, 0, -1).transformDirection(camera.matrixWorld);
|
|
this.ray.direction.set(0, 0, -1).transformDirection(camera.matrixWorld);
|
|
this.camera = camera;
|
|
this.camera = camera;
|
|
} else {
|
|
} else {
|
|
- console.error('THREE.Raycaster: Unsupported camera type.');
|
|
|
|
|
|
+ console.error('THREE.Raycaster: Unsupported camera type: ' + camera.type);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
intersectObject: function intersectObject(object, recursive, optionalTarget) {
|
|
intersectObject: function intersectObject(object, recursive, optionalTarget) {
|