n代码如下
%源点数据
P = (fbpoint);
% P = rand(20,3);
%三角分解
DT = delaunayTriangulation(P)
%convex hull
[K,v] = convexHull(DT)
faceColor = [0.1875 0.8750 0.0984];
figure
%plot figure
trisurf(K,DT.Points(:,1),DT.Points(:,2),DT.Points(:,3),...
'FaceColor','cyan')
more details, please refer to:
http://cn.mathworks.com/help/matlab/ref/delaunaytriangulation.convexhull.html
an example: