From ed60772e25027bc02e322f3a417532a4f6aab707 Mon Sep 17 00:00:00 2001 From: Roelof Date: Wed, 15 Nov 2017 12:06:31 +0200 Subject: [PATCH] Added the BufferGeometry.setFromPoints method with the return type of BufferGeometry. Also added the return type of BufferGeometry to the existing BufferGeometry.setFromObject method. --- types/three/index.d.ts | 2 +- types/three/three-core.d.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/types/three/index.d.ts b/types/three/index.d.ts index f9dcc7a762..5819d326de 100644 --- a/types/three/index.d.ts +++ b/types/three/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for three.js 0.84 // Project: http://mrdoob.github.com/three.js/ -// Definitions by: Kon , Satoru Kimura , Florent Poujol , SereznoKot , HouChunlei , Ivo , David Asmuth , Brandon Roberge, Qinsi ZHU , Toshiya Nakakura , Poul Kjeldager Sørensen , Stefan Profanter , Edmund Fokschaner +// Definitions by: Kon , Satoru Kimura , Florent Poujol , SereznoKot , HouChunlei , Ivo , David Asmuth , Brandon Roberge, Qinsi ZHU , Toshiya Nakakura , Poul Kjeldager Sørensen , Stefan Profanter , Edmund Fokschaner , Roelof Jooste // Definitions: https://github.com//DefinitelyTyped export * from "./three-core"; diff --git a/types/three/three-core.d.ts b/types/three/three-core.d.ts index 3252661b75..88babf5ed2 100644 --- a/types/three/three-core.d.ts +++ b/types/three/three-core.d.ts @@ -862,7 +862,8 @@ export class BufferGeometry extends EventDispatcher { center(): Vector3; - setFromObject(object: Object3D): void; + setFromObject(object: Object3D): BufferGeometry; + setFromPoints(points: Vector3[]): BufferGeometry; updateFromObject(object: Object3D): void; fromGeometry(geometry: Geometry, settings?: any): BufferGeometry;