| 265 | } |
| 266 | |
| 267 | double ScoreTriangulatedGeometries(std::vector<m2::PointD> const & lhs, std::vector<m2::PointD> const & rhs) |
| 268 | { |
| 269 | auto const score = geometry::GetIntersectionScoreForTriangulated(lhs, rhs); |
| 270 | |
| 271 | // If area of the intersection is a half of the object area, penalty score will be returned. |
| 272 | if (score <= 0.5) |
| 273 | return geometry::kPenaltyScore; |
| 274 | |
| 275 | return score; |
| 276 | } |
| 277 | |
| 278 | double ScoreTriangulatedGeometriesByPoints(std::vector<m2::PointD> const & lhs, std::vector<m2::PointD> const & rhs) |
| 279 | { |