diff --git a/GrpcInterface/Python/rips/PythonExamples/case_and_grid_operations/polygon_region_from_project.py b/GrpcInterface/Python/rips/PythonExamples/case_and_grid_operations/polygon_region_from_project.py index 80dbf5128f..7a336aae90 100644 --- a/GrpcInterface/Python/rips/PythonExamples/case_and_grid_operations/polygon_region_from_project.py +++ b/GrpcInterface/Python/rips/PythonExamples/case_and_grid_operations/polygon_region_from_project.py @@ -27,9 +27,7 @@ def point_in_polygon_2d(px, py, polygon_xy): for i in range(n): xi, yi = polygon_xy[i][0], polygon_xy[i][1] xj, yj = polygon_xy[j][0], polygon_xy[j][1] - if ((yi > py) != (yj > py)) and ( - px < (xj - xi) * (py - yi) / (yj - yi) + xi - ): + if ((yi > py) != (yj > py)) and (px < (xj - xi) * (py - yi) / (yj - yi) + xi): inside = not inside j = i return inside