InstancedBufferAttribute.d.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import { BufferGeometry } from './BufferGeometry';
  2. import { BufferAttribute } from './BufferAttribute';
  3. /**
  4. * @see <a href="https://github.com/mrdoob/three.js/blob/master/examples/js/BufferGeometryUtils.js">examples/js/BufferGeometryUtils.js</a>
  5. */
  6. export namespace BufferGeometryUtils {
  7. export function mergeBufferGeometries(
  8. geometries: BufferGeometry[]
  9. ): BufferGeometry;
  10. export function computeTangents( geometry: BufferGeometry ): null;
  11. export function mergeBufferAttributes(
  12. attributes: BufferAttribute[]
  13. ): BufferAttribute;
  14. }
  15. /**
  16. * @deprecated
  17. */
  18. export namespace GeometryUtils {
  19. /**
  20. * @deprecated Use {@link Geometry#merge geometry.merge( geometry2, matrix, materialIndexOffset )} instead.
  21. */
  22. export function merge(
  23. geometry1: any,
  24. geometry2: any,
  25. materialIndexOffset?: any
  26. ): any;
  27. /**
  28. * @deprecated Use {@link Geometry#center geometry.center()} instead.
  29. */
  30. export function center( geometry: any ): any;
  31. }
  32. /**
  33. * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/core/InstancedBufferAttribute.js">src/core/InstancedBufferAttribute.js</a>
  34. */
  35. export class InstancedBufferAttribute extends BufferAttribute {
  36. constructor(
  37. array: ArrayLike<number>,
  38. itemSize: number,
  39. normalized?: boolean,
  40. meshPerAttribute?: number
  41. );
  42. meshPerAttribute: number;
  43. }
粤ICP备19079148号