You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ENH] Refactor mesh extraction and add scalar field at interface to structural elements | | GEN-12031 (#1019)
# Description
Refactored the mesh extraction process using marching cubes algorithm to improve accuracy and efficiency. The main changes include:
1. Renamed `scalar_field` to `scalar_field_at_interface` in the `StructuralElement` class for better clarity
2. Added proper assignment of scalar field values to structural elements
3. Simplified the mesh extraction logic by using the output group's scalar field matrix and mask directly
4. Improved the marching cubes implementation with proper parameters (allow_degenerate=False, method="lewiner")
5. Added comprehensive tests to verify the mesh extraction results
Relates to #mesh-extraction-improvements
# Checklist
- [x] My code uses type hinting for function and method arguments and return values.
- [x] I have created tests which cover my code.
- [x] The test code either 1. demonstrates at least one valuable use case (e.g. integration tests)
or 2. verifies that outputs are as expected for given inputs (e.g. unit tests).
- [x] New tests pass locally with my changes.
0 commit comments