Calculate a convex hull This sample shows how to calculate a convex hull from an array of shapes. A convex hull is a shape that represents that minimum convex geometry that encloses all shapes in the specified data set.