Changed from raising error to returning an empty array when zero number of points is requested.