convexHull Convex hull
K = convexHull(DT) returns the indices of the vertices on the convex hull.
The vertex indices correspond to the row numbers of DT.Points.
For 2-D triangulations, K is a column vector of length numf, otherwise
K is a matrix of size numf-by-3, numf being the number of facets on
the convex hull.
[K AV] = convexHull(DT) returns in addition, the area/volume bounded
K = convexHull(DT) returns the indices of the vertices on the convex hull.
The vertex indices correspond to the row numbers of DT.Points.
For 2-D triangulations, K is a column vector of length numf, otherwise
K is a matrix of size numf-by-3, numf being the number of facets on
the convex hull.
[K AV] = convexHull(DT) returns in addition, the area/volume bounded
by the convex hull.
包含所有点的凸包函数,输入DT表示点集形成的三角剖分三角形的顶点的地址,
K表示形成凸包的点的地址。
x = rand(10,1)
y = rand(10,1)
dt = delaunayTriangulation(x,y)
k = convexHull(dt)
plot