DirectGeometry.d.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import { Vector3 } from './../math/Vector3';
  2. import { Color } from './../math/Color';
  3. import { Vector2 } from './../math/Vector2';
  4. import { Vector4 } from './../math/Vector4';
  5. import { Box3 } from './../math/Box3';
  6. import { Sphere } from './../math/Sphere';
  7. import { Geometry } from './Geometry';
  8. import { Event } from './Face3';
  9. import { EventDispatcher } from './EventDispatcher';
  10. import { MorphTarget } from './Geometry';
  11. /**
  12. * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/core/DirectGeometry.js">src/core/DirectGeometry.js</a>
  13. */
  14. export class DirectGeometry extends EventDispatcher {
  15. constructor();
  16. id: number;
  17. uuid: string;
  18. name: string;
  19. type: string;
  20. indices: number[];
  21. vertices: Vector3[];
  22. normals: Vector3[];
  23. colors: Color[];
  24. uvs: Vector2[];
  25. uvs2: Vector2[];
  26. groups: { start: number; materialIndex: number }[];
  27. morphTargets: MorphTarget[];
  28. skinWeights: Vector4[];
  29. skinIndices: Vector4[];
  30. boundingBox: Box3;
  31. boundingSphere: Sphere;
  32. verticesNeedUpdate: boolean;
  33. normalsNeedUpdate: boolean;
  34. colorsNeedUpdate: boolean;
  35. uvsNeedUpdate: boolean;
  36. groupsNeedUpdate: boolean;
  37. computeBoundingBox(): void;
  38. computeBoundingSphere(): void;
  39. computeGroups(geometry: Geometry): void;
  40. fromGeometry(geometry: Geometry): DirectGeometry;
  41. dispose(): void;
  42. // EventDispatcher mixins
  43. addEventListener(type: string, listener: (event: Event) => void): void;
  44. hasEventListener(type: string, listener: (event: Event) => void): boolean;
  45. removeEventListener(type: string, listener: (event: Event) => void): void;
  46. dispatchEvent(event: { type: string; [attachment: string]: any }): void;
  47. }
粤ICP备19079148号