babylon.instancedMesh.d.ts 1.0 KB

12345678910111213141516171819202122232425
  1. declare module BABYLON {
  2. class InstancedMesh extends AbstractMesh {
  3. private _sourceMesh;
  4. private _currentLOD;
  5. constructor(name: string, source: Mesh);
  6. public receiveShadows : boolean;
  7. public material : Material;
  8. public visibility : number;
  9. public skeleton : Skeleton;
  10. public getTotalVertices(): number;
  11. public sourceMesh : Mesh;
  12. public getVerticesData(kind: string): number[];
  13. public isVerticesDataPresent(kind: string): boolean;
  14. public getIndices(): number[];
  15. public _positions : Vector3[];
  16. public refreshBoundingInfo(): void;
  17. public _preActivate(): void;
  18. public _activate(renderId: number): void;
  19. public getLOD(camera: Camera): AbstractMesh;
  20. public _syncSubMeshes(): void;
  21. public _generatePointsArray(): boolean;
  22. public clone(name: string, newParent: Node, doNotCloneChildren?: boolean): InstancedMesh;
  23. public dispose(doNotRecurse?: boolean): void;
  24. }
  25. }