Convex Hull VI

Owning Palette: Computational Geometry VIs

Requires: Full Development System

Computes the vertices of a convex polygon, which are the set of points that make up the polygon that contains all the points.

Details  

 Add to the block diagram  Find on the palette
X specifies the x-coordinates of the points in the plane. The length of X must be greater than or equal to 3.
Y specifies the y-coordinates of the points in the plane. The length of Y must equal the length of X.
Convex Hull returns the indexes of the points that compose the convex hull. The first element in Convex Hull is the same as the last element so that the first and last elements form a closed convex hull.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Convex Hull Details

The convex hull of a finite set of points is the smallest convex set that contains all points. In the following illustration, the convex hull is the line that connects the points.