This commit is contained in:
Jan Möbius
2016-10-28 08:08:09 +02:00
parent b05912ae04
commit 7a1cad003d

View File

@@ -152,7 +152,7 @@ void usage_and_exit(const std::string& _fname, int xcode);
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
size_t n_iter = 0; // n iteration size_t n_iter = 0; // n iteration
size_t max_nv = std::limits<size_t>::max(); // max. number of vertices in the end size_t max_nv = std::numeric_limits<size_t>::max(); // max. number of vertices in the end
std::string ifname; // input mesh std::string ifname; // input mesh
std::string ofname; // output mesh std::string ofname; // output mesh
std::string rule_sequence = "Tvv3 VF FF FVc"; // sqrt3 default std::string rule_sequence = "Tvv3 VF FF FVc"; // sqrt3 default
@@ -208,11 +208,11 @@ int main(int argc, char **argv)
if ( n_iter > 0 ) if ( n_iter > 0 )
std::cout << "Desired #iterations: " << n_iter << std::endl; std::cout << "Desired #iterations: " << n_iter << std::endl;
if ( max_nv < std::limits<size_t>::max() ) if ( max_nv < std::numeric_limits<size_t>::max() )
{ {
std::cout << "Desired max. #V : " << max_nv << std::endl; std::cout << "Desired max. #V : " << max_nv << std::endl;
if (!n_iter ) if (!n_iter )
n_iter = std::limits<size_t>::max(); n_iter = std::numeric_limits<size_t>::max();
} }