FUNCTION REFERENCE
convhulln
Convex hull of points given as rows.
Convex hull of points given as rows.
Syntax
K = convhulln(X)Syntax
[K, V] = convhulln(X, options)For two-column X each row of K is one hull edge, counter-clockwise from the smallest index; points on hull edges are left out. V is the enclosed area. For three-column X each row of K is one triangle of the hull surface, counter-clockwise seen from outside, and V is the enclosed volume, as for convhull. Qhull options are accepted and ignored.
Example
convhulln([0 0; 1 0; 1 1; 0 1]) % [1 2; 2 3; 3 4; 4 1]Example
[K, V] = convhulln([0 0 0; 1 0 0; 0 1 0; 0 0 1]) % K = [1 2 4; 1 3 2; 1 4 3; 2 3 4], V = 0.1667Differences from MATLAB: Points in four or more dimensions are not supported. Every triangle of a three-dimensional hull is oriented outward and the rows are ordered by their vertex indices; MATLAB lists Qhull's facets in Qhull's order and orientation. A flat face can be split along other diagonals.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.