OptionalmeshOrBvh: Object3D<Object3DEventMap> | BvhHelperTree | nullOptionalbvhOrDepth: number | BvhHelperTree | nullReadonlyedgeReadonlymeshedgeMaterial.color, shared with meshMaterial.
Both materials' opacity.
Returns a clone of this object and optionally all descendants.
Copies the given object into this object.
Optionalrecursive: boolean
If set to true, descendants of the object are copied next to the existing ones. If set to
false, descendants are left unchanged. Default is true.
Disposes of the materials and the box geometry.
Rebuilds the boxes from the tree as it is now, with the current depth, displayParents and displayEdges.
Follows the mesh: its world matrix relative to this helper's parent (and the instance's matrix).
Optionalforce: boolean
three-mesh-bvh's
BVHHelper: drawsbvh(ormesh.geometry.boundsTree) as boxes down todepth, placed onmesh(its world matrix, and an instance's withinstanceIdfor anInstancedMeshorBatchedMesh). Call update after changing the tree,depth,displayParentsordisplayEdges. Our trees have one root, so there is one child.Constructor:
(mesh),(mesh, depth),(bvh, depth)or(mesh, bvh, depth);depthdefaults to 10.