babylon.octreeBlock.d.ts 1.0 KB

1234567891011121314151617181920212223
  1. declare module BABYLON {
  2. class OctreeBlock<T> {
  3. public entries: T[];
  4. public blocks: OctreeBlock<T>[];
  5. private _depth;
  6. private _maxDepth;
  7. private _capacity;
  8. private _minPoint;
  9. private _maxPoint;
  10. private _boundingVectors;
  11. private _creationFunc;
  12. constructor(minPoint: Vector3, maxPoint: Vector3, capacity: number, depth: number, maxDepth: number, creationFunc: (entry: T, block: OctreeBlock<T>) => void);
  13. public capacity : number;
  14. public minPoint : Vector3;
  15. public maxPoint : Vector3;
  16. public addEntry(entry: T): void;
  17. public addEntries(entries: T[]): void;
  18. public select(frustumPlanes: Plane[], selection: SmartArray<T>, allowDuplicate?: boolean): void;
  19. public intersects(sphereCenter: Vector3, sphereRadius: number, selection: SmartArray<T>, allowDuplicate?: boolean): void;
  20. public intersectsRay(ray: Ray, selection: SmartArray<T>): void;
  21. public createInnerBlocks(): void;
  22. }
  23. }