Renamed resample() to set_number_of_points()