docsby gkjohnson
Building a BVH for half a million triangles off the main thread
On this page

Properties

running: boolean

Methods

generate(
	geometry: BufferGeometry,

	// Same options accepted by the `MeshBVH` constructor.
	options?: {
		// Callback invoked with a `[0, 1]` progress value as the BVH is built.
		onProgress?: function
	}
): Promise<MeshBVH>
dispose(): void