Mesh.d.ts 918 B

123456789101112131415161718192021222324252627
  1. import { Geometry } from './../core/Geometry';
  2. import { Material } from './../materials/Material';
  3. import { Raycaster } from './../core/Raycaster';
  4. import { Object3D } from './../core/Object3D';
  5. import { BufferGeometry } from '../core/BufferGeometry';
  6. import { Intersection } from '../core/Raycaster';
  7. import { TrianglesDrawModes } from '../constants';
  8. export class Mesh extends Object3D {
  9. constructor(
  10. geometry?: Geometry | BufferGeometry,
  11. material?: Material | Material[]
  12. );
  13. geometry: Geometry | BufferGeometry;
  14. material: Material | Material[];
  15. drawMode: TrianglesDrawModes;
  16. morphTargetInfluences?: number[];
  17. morphTargetDictionary?: { [key: string]: number };
  18. isMesh: true;
  19. type: string;
  20. setDrawMode(drawMode: TrianglesDrawModes): void;
  21. updateMorphTargets(): void;
  22. raycast(raycaster: Raycaster, intersects: Intersection[]): void;
  23. copy(source: this, recursive?: boolean): this;
  24. }
粤ICP备19079148号