BVH.from_triangles
- classmethod BVH.from_triangles(triangles, nodetype=<class 'compas_model.datastructures.bvh.AABBNode'>, max_depth=None, leafsize=1)
Construct a BVH from a collection of triangles.
- Parameters:
- triangleslist[list[
compas.geometry.Point
]] A list of triangles, with each triangle represented by three points.
- 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 triangles contained in a leaf node.
- triangleslist[list[
- Returns: