Skip to content

Conversation

@PProfizi
Copy link
Contributor

Removing tests in test_geometry.py on create_plane_from_lines as this helper is wrong anyway and this is blocking pyvista updates where a check has been added.
Hesitating with pure deprecation of the helper as defining a plane from two lines (four points) is undefined behavior anyway.

@PProfizi PProfizi added the bug Something isn't working label Apr 30, 2025
@PProfizi PProfizi added this to the 0.13.7 milestone Apr 30, 2025
@PProfizi PProfizi self-assigned this Apr 30, 2025
@PProfizi PProfizi merged commit e1839c9 into master Apr 30, 2025
39 of 40 checks passed
@PProfizi PProfizi deleted the fix/geometry_factor_create_plane_from_lines branch April 30, 2025 14:24
@rafacanton
Copy link
Contributor

rafacanton commented Apr 30, 2025

@PProfizi 2 lines define a plane in 3D space only:

  • If they intersect.
  • If they are parallel.

Otherwise (if they cross in 3D space), no plane can be defined... The API still makes sense, but it should give a meaningful error if not in the cases above

@codecov
Copy link

codecov bot commented Apr 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.84%. Comparing base (c5a7f03) to head (40a55ba).
Report is 1 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2252      +/-   ##
==========================================
- Coverage   83.94%   83.84%   -0.10%     
==========================================
  Files          90       90              
  Lines       10309    10309              
==========================================
- Hits         8654     8644      -10     
- Misses       1655     1665      +10     

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants