matlab - Understanding the output of of convhull -
can please explain me values stored in kk
for
a=[2 0 0; 0 2 0; 0 0 2; 1 1 sqrt(2)]; kk= convhull(a);
values in kk
:
1 2 4 1 3 2 1 4 3 2 3 4
have read documentation of convhull
?
it explains (for 3d case):
k = convhull(x,y,z
) returns 3-d convex hull of points (x,y,z), x, y, , z column vectors.
k triangulation representing boundary of convex hull. k of size mtri-by-3, mtri number of triangular facets. is, each row of k triangle defined in terms of point indices.
in example convex hull of the 4 points in a
defined 4 triangular facets
[1 2 4] --> [ (2,0,0), (0,2,0), (1,1,sqrt(2)) ] %// first triangle [1 3 2] --> [ (2,0,0), (0,0,2), (0,2,0) ] %// second triangle ...
Comments
Post a Comment