From eb594099352ddf5e8ba34a7765dfe4d4773c40a7 Mon Sep 17 00:00:00 2001 From: Ford Hurley Date: Sun, 20 May 2018 09:50:27 -0400 Subject: [PATCH] THREE.BufferGeometry.setFromPoints accepts Vector2s as well The documentation shows examples of this, e.g.: https://threejs.org/docs/#api/extras/curves/EllipseCurve The source code shows how it handles an array of either type: https://github.com/mrdoob/three.js/blob/2f2e5f731/src/core/BufferGeometry.js#L352 --- types/three/three-core.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/three/three-core.d.ts b/types/three/three-core.d.ts index a7f7950a48..216ceb18a7 100644 --- a/types/three/three-core.d.ts +++ b/types/three/three-core.d.ts @@ -873,7 +873,7 @@ export class BufferGeometry extends EventDispatcher { center(): BufferGeometry; setFromObject(object: Object3D): BufferGeometry; - setFromPoints(points: Vector3[]): BufferGeometry; + setFromPoints(points: Vector3[]|Vector2[]): BufferGeometry; updateFromObject(object: Object3D): void; fromGeometry(geometry: Geometry, settings?: any): BufferGeometry;