forked from mrdoob/three.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mrdoob#15989 from Methuselah96/typescript-utils
Add TypeScript definitions for some utils
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { BufferAttribute, BufferGeometry } from '../../../src/Three'; | ||
|
||
export namespace BufferGeometryUtils { | ||
export function mergeBufferGeometries(geometries: BufferGeometry[]): BufferGeometry; | ||
export function computeTangents(geometry: BufferGeometry): null; | ||
export function mergeBufferAttributes(attributes: BufferAttribute[]): BufferAttribute; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* @deprecated | ||
*/ | ||
export namespace GeometryUtils { | ||
/** | ||
* @deprecated Use {@link Geometry#merge geometry.merge( geometry2, matrix, materialIndexOffset )} instead. | ||
*/ | ||
export function merge(geometry1: any, geometry2: any, materialIndexOffset?: any): any; | ||
/** | ||
* @deprecated Use {@link Geometry#center geometry.center()} instead. | ||
*/ | ||
export function center(geometry: any): any; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Geometry, Material, Object3D, Scene } from '../../../src/Three'; | ||
|
||
export namespace SceneUtils { | ||
export function createMultiMaterialObject(geometry: Geometry, materials: Material[]): Object3D; | ||
export function detach(child: Object3D, parent: Object3D, scene: Scene): void; | ||
export function attach(child: Object3D, scene: Scene, parent: Object3D): void; | ||
} |