BVH.from_polyhedrons

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

Construct a BVH from a mesh.

Parameters:
polyhedronslist[compas.geometry.Polyhedron]

A list of polyhedron 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 polyhedrons contained in a leaf node.

Returns:
BVH