minor refactor

This commit is contained in:
denizdiktas 2023-07-28 12:06:37 +03:00
parent 5a08d9a9c0
commit ddaa233443
2 changed files with 5 additions and 5 deletions

View File

@ -1090,8 +1090,8 @@ void Aos::save_arr(Kml::Placemarks& placemarks, const std::string& file_name)
}
std::cout << "total num half-edges = " << total_num_half_edges << std::endl;
std::ofstream ofile("C:/work/gsoc2023/deneme.txt");
ofile << js;
// save the arrangment
std::ofstream ofile(file_name);
ofile << js.dump(2);
ofile.close();
}
}

View File

@ -218,7 +218,7 @@ void Main_widget::initializeGL()
}
{
Aos::save_arr(m_countries, "");
Aos::save_arr(m_countries, "C:/work/gsoc2023/deneme.json");
}
// initialize rendering of DUPLICATE VERTICES