rename function

This commit is contained in:
Jane Tournois 2016-02-02 10:19:10 +01:00
parent bb65a245cc
commit ad7dfc230b
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ std::istream& read_soup(
return stream;
}
void sufffle_off(const char* fname_in, const char* fname_out)
void shuffle_off(const char* fname_in, const char* fname_out)
{
std::ifstream input(fname_in);
if ( !input ){
@ -97,7 +97,7 @@ int main(int,char** ) {
std::vector<Point_3> points;
std::vector< std::vector<std::size_t> > polygons;
sufffle_off("data/elephant.off", "elephant-shuffled.off");
shuffle_off("data/elephant.off", "elephant-shuffled.off");
std::ifstream input("elephant-shuffled.off");
if ( !input || !read_soup(input, points, polygons)){
std::cerr << "Error: can not shuffled file.\n";