docsby gkjohnson
Visualizing a mesh's BVH
On this page

Properties

color: Color

readonly

opacity: number

depth: number

mesh: Object3D | null

displayEdges: boolean

instanceId: number

Methods

new BVHHelper(
	// The mesh whose `geometry.boundsTree` should be displayed, or a `GeometryBVH` to display directly.
	mesh: Object3D | GeometryBVH | null = null,

	// The BVH to visualize. When the first argument is a `GeometryBVH`, this argument is interpreted as `depth`.
	bvh: GeometryBVH | number | null = null,

	// Maximum tree depth to display.
	depth: number = 10
)
update(): void
dispose(): void