Skip to content

Adds physicsnemo.mesh, Part 2/2#1333

Merged
peterdsharpe merged 183 commits intoNVIDIA:mainfrom
peterdsharpe:psharpe/add-physicsnemo-mesh
Feb 10, 2026
Merged

Adds physicsnemo.mesh, Part 2/2#1333
peterdsharpe merged 183 commits intoNVIDIA:mainfrom
peterdsharpe:psharpe/add-physicsnemo-mesh

Conversation

@peterdsharpe
Copy link
Collaborator

PhysicsNeMo Pull Request

Description

Checklist

Dependencies

Review Process

All PRs are reviewed by the PhysicsNeMo team before merging.

Depending on which files are changed, GitHub may automatically assign a maintainer for review.

We are also testing AI-based code review tools (e.g., Greptile), which may add automated comments with a confidence score.
This score reflects the AI’s assessment of merge readiness and is not a qualitative judgment of your work, nor is
it an indication that the PR will be accepted / rejected.

AI-generated feedback should be reviewed critically for usefulness.
You are not required to respond to every AI comment, but they are intended to help both authors and reviewers.
Please react to Greptile comments with 👍 or 👎 to provide feedback on their accuracy.

- Added version requirement for matplotlib to ensure compatibility.
- Improved docstrings for clarity, including return types for `_text_to_path`.
- Updated imports to use `require_version_spec` for matplotlib.
- Fixed import paths in `_group_letters` and `_winding_number` functions.
- Added new procedural and surface primitives: `lumpy_sphere` and `sphere_icosahedral`.
- Updated test files to skip tests if matplotlib or PyVista are not available.
- Introduced a new module `sphere_icosahedral.py` for creating a sphere by subdividing an icosahedron and projecting vertices onto the sphere surface.
- Enhanced documentation with detailed descriptions, parameters, and examples for the `load` function.
- Implemented error handling for invalid radius and subdivision inputs.
- Ensured compatibility with existing mesh structures in the physicsnemo library.
- Replaced instances of `from_pyvista` with procedural mesh generation for consistency and improved test coverage.
- Updated test cases to utilize `lumpy_sphere` and `cube_volume` for various gradient and divergence tests.
- Removed unused mesh fixtures to streamline the test setup.
@peterdsharpe peterdsharpe marked this pull request as ready for review January 28, 2026 19:44
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Jan 28, 2026

Too many files changed for review. (103 files found, 100 file limit)

Copy link
Collaborator

@coreyjadams coreyjadams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I have skimmed the remaining sections. I have so little recent expertise on this math that my review can't really provide benefit there. I think I have left sufficient comments to what I would have picked at (for loops, etc) but really my remaining comments will be at the following:

  • making sure the public facing documentation is all incorporated into the docs. And, for some of the math heavy sections, making sure it renders properly.
  • Avoiding for loops and brute-force algs wherever possible.
  • Getting good test coverage. If you haven't measured, might be worth running and looking for any significant gaps?

I know I've left a huge pile of comments everywhere, and the PR is 40k LOC. This really could stand on it's own as it's own product, but here we are. Overall I think you've done good work and this will be a really powerful tool in our toolbox moving forward.

@peterdsharpe
Copy link
Collaborator Author

Depends on #1389

@peterdsharpe peterdsharpe added the 5 - Merge After Dependencies Depends on another PR: do not merge out of order label Feb 10, 2026
@peterdsharpe peterdsharpe self-assigned this Feb 10, 2026
@peterdsharpe
Copy link
Collaborator Author

/blossom-ci

@peterdsharpe peterdsharpe added this pull request to the merge queue Feb 10, 2026
@peterdsharpe peterdsharpe removed the 5 - Merge After Dependencies Depends on another PR: do not merge out of order label Feb 10, 2026
Merged via the queue into NVIDIA:main with commit 35e6a9b Feb 10, 2026
4 checks passed
@peterdsharpe peterdsharpe deleted the psharpe/add-physicsnemo-mesh branch February 10, 2026 18:55
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.

3 participants