22 const ::cluster::ClusterParamsAlg& cluster2)
25 if ((cluster1.GetParams().N_Hits <
_min_hits) || (cluster2.GetParams().N_Hits <
_min_hits))
29 if ((cluster1.GetParams().PolyObject.Size() < 2) or
30 (cluster2.GetParams().PolyObject.Size() < 2)) {
33 if (
_debug and cluster1.GetParams().N_Hits > 10 and cluster2.GetParams().N_Hits > 10) {
34 std::cout <<
"Cluster 1:" << std::endl;
35 std::cout <<
"\tN_Hits: " << cluster1.GetParams().N_Hits << std::endl;
36 std::cout <<
"\tN Sides:" << cluster1.GetParams().PolyObject.Size() << std::endl;
37 for (
unsigned int n = 0;
n < cluster1.GetParams().PolyObject.Size();
n++)
38 std::cout <<
"\t\t\t(" << cluster1.GetParams().PolyObject.Point(
n).first <<
", " 39 << cluster1.GetParams().PolyObject.Point(
n).second <<
")" << std::endl;
40 std::cout <<
"Cluster 2:" << std::endl;
41 std::cout <<
"\tN_Hits: " << cluster2.GetParams().N_Hits << std::endl;
42 std::cout <<
"\tN Sides:" << cluster2.GetParams().PolyObject.Size() << std::endl;
43 for (
unsigned int n = 0;
n < cluster2.GetParams().PolyObject.Size();
n++)
44 std::cout <<
"\t\t\t(" << cluster2.GetParams().PolyObject.Point(
n).first <<
", " 45 << cluster2.GetParams().PolyObject.Point(
n).second <<
")" << std::endl;
50 if (cluster1.GetParams().PolyObject.PolyOverlapSegments(cluster2.GetParams().PolyObject)) {
51 if (
_verbose) { std::cout <<
"Overlap...merging!" << std::endl; }
Class def header for a class CBAlgoPolyOverlap.