convex_hull_xy_numpy

compas.geometry.convex_hull_xy_numpy(points)[source]

Compute the convex hull of a set of points in the XY plane.

Parameters

points (array_like[point]) – XY(Z) coordinates of the points.

Returns

  • ndarray[int](N, ) – Indices of the points on the hull.

  • ndarray[int](M, 2) – Lines of the hull.

Raises

AssertionError – If the input data is not at least 2D.

Examples

>>>