Replace Vector3 with Vector2 for lathe geometry type, edit tests (#22895)

This commit is contained in:
John Marinelli
2018-01-17 18:42:48 +01:00
committed by Wesley Wigham
parent d4fac01ad6
commit c1ebcacdb9
2 changed files with 7 additions and 7 deletions

View File

@@ -76,11 +76,11 @@
//
var points: THREE.Vector3[] = [];
var points: THREE.Vector2[] = [];
for (var i = 0; i < 50; i++) {
points.push(new THREE.Vector3(Math.sin(i * 0.2) * Math.sin(i * 0.1) * 15 + 50, 0, (i - 5) * 2));
points.push(new THREE.Vector2(Math.sin(i * 0.2) * Math.sin(i * 0.1) * 15 + 50, 0));
}
@@ -165,4 +165,4 @@
}
}
}

View File

@@ -6644,10 +6644,10 @@ export class IcosahedronGeometry extends PolyhedronGeometry {
}
export class LatheBufferGeometry extends BufferGeometry {
constructor(points: Vector3[], segments?: number, phiStart?: number, phiLength?: number);
constructor(points: Vector2[], segments?: number, phiStart?: number, phiLength?: number);
parameters: {
points: Vector3[];
points: Vector2[];
segments: number;
phiStart: number;
phiLength: number;
@@ -6655,10 +6655,10 @@ export class LatheBufferGeometry extends BufferGeometry {
}
export class LatheGeometry extends Geometry {
constructor(points: Vector3[], segments?: number, phiStart?: number, phiLength?: number);
constructor(points: Vector2[], segments?: number, phiStart?: number, phiLength?: number);
parameters: {
points: Vector3[];
points: Vector2[];
segments: number;
phiStart: number;
phiLength: number;