A fully data-driven method for estimating the shape of a point cloud