8000 Refactor remesh.py and bug fixes by ricardo0115 · Pull Request #11 · 3MAH/microgen · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Refactor remesh.py and bug fixes #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 25, 2023
Merged

Conversation

ricardo0115
Copy link
Collaborator

Refactor of _is_triangle_on_boundary method of remesh.py module.

Code duplication has been removed using comprehension generators and boundary triangle check has been optimized in best case complexity scenario using lazy evaluation.

Bug fixes

  • .sol" and ".mesh" temporary files generated by mmg were not deleted after remeshing
  • Bug fix related to a potential side effect in test_remesh.py leading to a false positive test.

chemiskyy and others added 5 commits April 24, 2023 23:10
In order to replace code duplication, a double for loop iterating
over rve boundaries and has been implemented using lazy evaluation to check
if a triangle given as parameter is on boundary of a rve passed in parameter.

Further improvement can be potentially done using numpy.is_close over
node coordinates.
Bug related to useless list comprehension instead of generator comprehension
could conduct to unexpected behaviors
@ricardo0115 ricardo0115 merged commit f2a9169 into main Apr 25, 2023
@ricardo0115 ricardo0115 deleted the refactor_is_on_boundary branch April 25, 2023 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0