From c8920df7a36267e68b36edbb59c4c7d8020a35f3 Mon Sep 17 00:00:00 2001 From: adisidev <64905594+adisidev@users.noreply.github.com> Date: Mon, 23 Dec 2024 10:46:19 +0530 Subject: [PATCH] long_grid_side_length --> max_n_grid_rows_or_cols --- include/parse_arguments.hpp | 2 +- src/main.cpp | 6 +++--- src/misc/parse_arguments.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/parse_arguments.hpp b/include/parse_arguments.hpp index 932cc1b6..a40dfc04 100644 --- a/include/parse_arguments.hpp +++ b/include/parse_arguments.hpp @@ -23,7 +23,7 @@ argparse::ArgumentParser parsed_arguments( bool &plot_intersections, bool &plot_polygons, bool &remove_tiny_polygons, - double &minimum_polygon_area, + double &min_polygon_area, bool &plot_quadtree, bool &rays, bool &output_preprocessed); diff --git a/src/main.cpp b/src/main.cpp index 471bee75..ee656145 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -14,7 +14,7 @@ int main(const int argc, const char *argv[]) std::string geo_file_name, visual_file_name; // Default number of grid cells along longer Cartesian coordinate axis - unsigned int long_grid_side_length; + unsigned int max_n_grid_rows_or_cols; // Target number of points to retain after simplification unsigned int target_points_per_inset; @@ -46,7 +46,7 @@ int main(const int argc, const char *argv[]) argv, geo_file_name, visual_file_name, - long_grid_side_length, + max_n_grid_rows_or_cols, target_points_per_inset, world, triangulation, @@ -173,7 +173,7 @@ int main(const int argc, const char *argv[]) inset_state.set_inset_name(inset_name); // Rescale map to fit into a rectangular box [0, lx] * [0, ly] - inset_state.rescale_map(long_grid_side_length, cart_info.is_world_map()); + inset_state.rescale_map(max_n_grid_rows_or_cols, cart_info.is_world_map()); if (output_to_stdout) { diff --git a/src/misc/parse_arguments.cpp b/src/misc/parse_arguments.cpp index 9fd0a301..81851659 100644 --- a/src/misc/parse_arguments.cpp +++ b/src/misc/parse_arguments.cpp @@ -20,7 +20,7 @@ argparse::ArgumentParser parsed_arguments( bool &plot_intersections, bool &plot_polygons, bool &remove_tiny_polygons, - double &minimum_polygon_area, + double &min_polygon_area, bool &plot_quadtree, bool &rays, bool &output_preprocessed) @@ -164,7 +164,7 @@ argparse::ArgumentParser parsed_arguments( qtdt_method = arguments.get("-Q"); simplify = arguments.get("-S"); remove_tiny_polygons = arguments.get("-R"); - minimum_polygon_area = arguments.get("-m"); + min_polygon_area = arguments.get("-m"); rays = arguments.get("-r"); if (!triangulation && simplify) {