Creating convex and concave hulls