UNPKG

three

Version:

JavaScript 3D library

50 lines (43 loc) 1.32 kB
import { BufferGeometry } from './BufferGeometry'; import { BufferAttribute } from './BufferAttribute'; /** * @see {@link https://github.com/mrdoob/three.js/blob/master/examples/jsm/utils/BufferGeometryUtils.js|examples/jsm/utils/BufferGeometryUtils.js} */ export namespace BufferGeometryUtils { export function mergeBufferGeometries( geometries: BufferGeometry[] ): BufferGeometry; export function computeTangents( geometry: BufferGeometry ): null; export function mergeBufferAttributes( attributes: BufferAttribute[] ): BufferAttribute; } /** * @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; } /** * @see {@link https://github.com/mrdoob/three.js/blob/master/src/core/InstancedBufferAttribute.js|src/core/InstancedBufferAttribute.js} */ export class InstancedBufferAttribute extends BufferAttribute { constructor( array: ArrayLike<number>, itemSize: number, normalized?: boolean, meshPerAttribute?: number ); meshPerAttribute: number; }