convex_hull_numpy

compas.geometry.convex_hull_numpy(points)[source]

Compute the convex hull of a set of points.

Parameters

points (list) – XYZ coordinates of the points.

Returns

tuple – Indices of the points on the hull. Faces of the hull.

Notes

The faces of the hull returned by this function do not necessarily have consistent cycle directions. To obtain a mesh with consistent cycle directions, construct a mesh from the returned vertices, this function should be used in combination with compas.topology.unify_cycles().

Examples

>>>