HPX General-purpose contouring algorithm