Following @micycle’s suggestion, you can also use the Hemesh library for computing the concave hull of a polygon. See this post for examples.