BVH.from_mesh
- classmethod BVH.from_mesh(mesh, nodetype=<class 'compas_model.datastructures.bvh.AABBNode'>, max_depth=None, leafsize=1)
Construct a BVH from a mesh.
- Parameters:
- mesh
compas.datastructures.Mesh
A mesh data structure.
- nodetypeType[
AABBNode
] | Type[OBBNode
], optional The type of node to use during construction.
- max_depthint, optional
The maximum depth of the tree.
- leafsizeint, optional
The maximum number of mesh faces contained in a leaf node.
- mesh
- Returns: