assembly_hull_numpy

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

Construct the convex hull of an assembly.

Parameters
  • assembly (Assembly) – The assembly data structure.

  • keys (list, optional) – The identifiers of the blocks to include in the hull calculation. Defaults to all blocks.

  • unify (bool, 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

>>>