assembly_hull_numpy

compas_assembly.algorithms.assembly_hull_numpy(assembly, keys=None, unify=True)

Construct the convex hull of an assembly.

Parameters:
assemblyAssembly

The assembly data structure.

keys: list, optional

The identifiers of the blocks to include in the hull calculation. Defaults to all blocks.

unifybool, optional

Unify the face cycles of the hull. Default is True.

Returns:
tuple

The vertices and faces of the hull.

Warning

This function requires Numpy and cannot be used directly inside Rhino.

Examples

>>>