added method sample_radial_coord to automatically choose r sampling based on the void parameters