make_map_from_rectangle_groups(exclude_random, pm->include_OK_points,
n, dim, x, width, grouping, graph, pm->bbox_margin, &nrandom, &nart, pm->nedgep,
pm->shore_depth_tol, edge_bridge_tol, &xcombined, &nverts, &x_poly, &npolys, &poly_lines,
- &polys, &polys_groups, &poly_point_map, &country_graph, pm->highlight_cluster, &flag);
+ &polys, &polys_groups, &poly_point_map, &country_graph, pm->highlight_cluster);
if (Verbose) fprintf(stderr,"nart = %d\n",nart);
/* compute a good color permutation */
make_map_from_rectangle_groups(exclude_random, pm->include_OK_points,
n, dim, x, width, grouping, graph, pm->bbox_margin, &nrandom, &nart, pm->nedgep,
pm->shore_depth_tol, edge_bridge_tol, &xcombined, &nverts, &x_poly, &npolys, &poly_lines,
- &polys, &polys_groups, &poly_point_map, &country_graph, pm->highlight_cluster, &flag);
+ &polys, &polys_groups, &poly_point_map, &country_graph, pm->highlight_cluster);
}
- assert(!flag);
{
SparseMatrix D;
D = SparseMatrix_get_real_adjacency_matrix_symmetrized(graph);
make_map_from_rectangle_groups(exclude_random, pm->include_OK_points,
n, dim, x, width, grouping, graph, pm->bbox_margin, &nrandom, &nart, pm->nedgep,
pm->shore_depth_tol, edge_bridge_tol, &xcombined, &nverts, &x_poly, &npolys, &poly_lines,
- &polys, &polys_groups, &poly_point_map, &country_graph, pm->highlight_cluster, &flag);
+ &polys, &polys_groups, &poly_point_map, &country_graph, pm->highlight_cluster);
}
- assert(!flag);
}
double shore_depth_tol, double edge_bridge_tol,
double **xcombined, int *nverts, double **x_poly,
int *npolys, SparseMatrix *poly_lines, SparseMatrix *polys, int **polys_groups, SparseMatrix *poly_point_map,
- SparseMatrix *country_graph, int highlight_cluster, int *flag){
+ SparseMatrix *country_graph, int highlight_cluster){
/* create a list of polygons from a list of rectangles in 2D. rectangles belong to groups. rectangles in the same group that are also close
geometrically will be in the same polygon describing the outline of the group. The main difference for this function and
int *grouping, SparseMatrix graph, double bounding_box_margin[], int *nrandom,int *nart, int nedgep,
double shore_depth_tol, double edge_bridge_tol, double **xcombined, int *nverts, double **x_poly,
int *npolys, SparseMatrix *poly_lines, SparseMatrix *polys, int **polys_groups, SparseMatrix *poly_point_map,
- SparseMatrix *country_graph, int highlight_cluster, int *flag);
+ SparseMatrix *country_graph, int highlight_cluster);
void improve_contiguity(int n, int dim, int *grouping, SparseMatrix poly_point_map, double *x, SparseMatrix graph);