Skip to content
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

FIX: Fixed bug which prevented to skip healing on nastran import #5433

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

maxcapodi78
Copy link
Collaborator

No description provided.

@ansys-reviewer-bot
Copy link
Contributor

Thanks for opening a Pull Request. If you want to perform a review write a comment saying:

@ansys-reviewer-bot review

Copy link

codecov bot commented Nov 14, 2024

Codecov Report

Attention: Patch coverage is 85.71429% with 2 lines in your changes missing coverage. Please review.

Project coverage is 41.26%. Comparing base (c592dac) to head (c42e5d8).
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #5433       +/-   ##
===========================================
- Coverage   84.39%   41.26%   -43.13%     
===========================================
  Files         140      140               
  Lines       58669    58671        +2     
===========================================
- Hits        49513    24211    -25302     
- Misses       9156    34460    +25304     

Copy link
Collaborator

@SMoraisAnsys SMoraisAnsys left a comment

Choose a reason for hiding this comment

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

LGTM I left some questions and minor comments.

Comment on lines +579 to +580
except Exception:
pass
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
except Exception:
pass
except Exception: # pragma: no cover
logger.debug("Failed to normalize vector.")

Comment on lines +566 to +567
cv1 = GeometryOperators.v_points(fc, v2)
cv2 = GeometryOperators.v_points(fc, v1)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
cv1 = GeometryOperators.v_points(fc, v2)
cv2 = GeometryOperators.v_points(fc, v1)
cv1 = GeometryOperators.v_points(fc, v1)
cv2 = GeometryOperators.v_points(fc, v2)

Any reason to changes the name values ? I expected cv1 to be the distance between v1 and the center (same for cv2)

@@ -557,32 +557,27 @@ def _write_stl(nas_to_dict, decimation, working_directory, enable_planar_merge=T
def _write_solid_stl(triangle, pp):
try:
# points = [nas_to_dict["Points"][id] for id in triangle]
points = [pp[i] for i in triangle]
points = [pp[i] for i in triangle[::-1]]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any reason for using [::-1] ?

@@ -341,14 +341,15 @@ def __init__(

self._is_closed = close_surface
self._is_covered = cover_surface

self._solve_inside = False
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are those changes required ?

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.

2 participants