Skip to content

convhulln

geometry · scripts/geometry/convhulln.m

: H = convhulln (pts)
: [H, V] = convhulln (pts)

Compute the convex hull of the set of points pts.

pts is a matrix with one point per row. Currently 2-D and 3-D point sets are supported.

The returned matrix H contains, per row, the indices of points forming a facet of the hull. The optional output V is the total hull volume (area, for 2-D input).