DirectGeometry.d.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 { MorphTarget } from './Geometry';
  9. /**
  10. * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/core/DirectGeometry.js">src/core/DirectGeometry.js</a>
  11. */
  12. export class DirectGeometry {
  13. constructor();
  14. id: number;
  15. uuid: string;
  16. name: string;
  17. type: string;
  18. indices: number[];
  19. vertices: Vector3[];
  20. normals: Vector3[];
  21. colors: Color[];
  22. uvs: Vector2[];
  23. uvs2: Vector2[];
  24. groups: { start: number; materialIndex: number }[];
  25. morphTargets: MorphTarget[];
  26. skinWeights: Vector4[];
  27. skinIndices: Vector4[];
  28. boundingBox: Box3;
  29. boundingSphere: Sphere;
  30. verticesNeedUpdate: boolean;
  31. normalsNeedUpdate: boolean;
  32. colorsNeedUpdate: boolean;
  33. uvsNeedUpdate: boolean;
  34. groupsNeedUpdate: boolean;
  35. computeBoundingBox(): void;
  36. computeBoundingSphere(): void;
  37. computeGroups( geometry: Geometry ): void;
  38. fromGeometry( geometry: Geometry ): DirectGeometry;
  39. dispose(): void;
  40. }