@realsee/five
Version:
Realsee Renderer SDK
11 lines (10 loc) • 756 B
TypeScript
import * as THREE from 'three';
import { BVHMesh } from './bvhMesh';
import { BVHPoints } from './bvhPoints';
export declare function getBvhTreeForMesh(mesh: THREE.Mesh): BVHMesh | null;
export declare function bindBvhTreeForMesh(mesh: THREE.Mesh, bvh: BVHMesh): void;
export declare function unbindBvhTreeForMesh(mesh: THREE.Mesh, bvh: BVHMesh): void;
export declare function getBvhTreeForPoints(mesh: THREE.Points): BVHPoints | null;
export declare function bindBvhTreeForPoints(points: THREE.Points, bvh: BVHPoints): void;
export declare function unbindBvhTreeForPoints(mesh: THREE.Points): void;
export declare function generateBvhTree<T extends THREE.Object3D>(obj: T, useWorker?: boolean, maxItemPerNode?: number, maxTreeDepth?: number): Promise<T>;