simpeg / discretize

Discretization tools for finite volume and inverse problems.
http://discretize.simpeg.xyz/
MIT License
163 stars 33 forks source link

Expose TreeMesh geometric intersections used for refine functions. #356

Open jcapriot opened 3 months ago

jcapriot commented 3 months ago

This PR unifies (and exposes) the geometric intersection tests used by the refine functionalities. The goal is to allow the user to see which cells actually intersected those geometric objects and use them to search for things.

This will expose operations to find cells that intersect with a

It makes use of C++ templates and classes to reduce the repeated code for each of the different geometric objects.

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 93.39623% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 84.86%. Comparing base (300b64a) to head (9e3c19e).

Files Patch % Lines
discretize/mixins/mesh_io.py 88.00% 3 Missing :warning:
discretize/tests.py 95.08% 3 Missing :warning:
discretize/tree_mesh.py 50.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #356 +/- ## ========================================== - Coverage 85.12% 84.86% -0.26% ========================================== Files 36 36 Lines 8408 8472 +64 ========================================== + Hits 7157 7190 +33 - Misses 1251 1282 +31 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.