Model.compute_bvh
- Model.compute_bvh(nodetype=<class 'compas_model.models.bvh.ElementOBBNode'>, max_depth=None, leafsize=1)
Compute the Bounding Volume Hierarchy (BVH) of the elements for fast collision checks.
- Parameters:
- nodetype
ElementOBBNode
The type of bounding volume node used in the tree.
- max_depthint, optional
The maximum depth used for constructing the BVH.
- leafsizeint, optional
The number of elements contained in a BVH leaf node.
- nodetype
- Returns:
ElementBVH