Skip to content

Conversation

@fhindenlang
Copy link

@fhindenlang fhindenlang commented Jun 21, 2024

The method _test_inside_point in global smooth boundary is unreliable, it fails for many points inside the boundary.

  • A test is written in an ipython notebook that can demonstrate this, see tests/test_global_smooth_boundary.ipynb.
  • The updated _test_inside_point method is now using the same algorithm as in find_inside_points, viacontains_points method in the path object of matplotlib. Therefore, the boundary curve in GSB is also saved as a path (self.poly) during the initialization.

The pictures were generated with the tests/test_global_smooth_boundary.ipynb.
The red crosses are wrongly assigned points (marked "outside" even if they are inside) and blue crosses are correctly assigned points.
previous_result_test_GSB
The updated method works reliably:
new_result_test_GSB

…s unreliable, it fails for many points inside the boundary.

* A test is written in an ipython notebook that can demonstrate this, see `tests/test_global_smooth_boundary.ipynb`.
* The updated `_test_inside_point` method is now using the same algorithm as in `find_inside_points`, via`contains_points` method in the path object of matplotlib.
  Therefore, the boundary curve in GSB is also saved as a path (`self.poly`) during the initialization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant