BVHParams
Parameters for configuring the BVH (Bounding Volume Hierarchy).
Properties
accurateCulling?
optional
accurateCulling:boolean
Enables accurate frustum culling by checking intersections without applying margin to the bounding box.
Default
Defined in
getBBoxFromBSphere?
optional
getBBoxFromBSphere:boolean
Uses the geometry bounding sphere to compute instance bounding boxes. Otherwise it’s calculated by applying the object’s matrix to all 8 bounding box points. This is faster but less precise. Useful for moving objects. Only works if the geometry’s bounding sphere is centered at the origin.
Default
Defined in
margin?
optional
margin:number
Margin applied to accommodate animated or moving objects. Improves BVH update performance but slows down frustum culling and raycasting. For static objects, set to 0 to optimize culling and raycasting efficiency.