BVH.from_meshes

classmethod BVH.from_meshes(meshes, nodetype=<class 'compas_model.datastructures.bvh.AABBNode'>, max_depth=None, leafsize=1)

Construct a BVH from a collection of meshes.

Parameters:
mesheslist[compas.datastructure.Mesh]

A list of mesh objects.

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 meshes contained in a leaf node.

Returns:
BVH