-
Notifications
You must be signed in to change notification settings - Fork 25
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/plot mesh as linear #915
Conversation
…=False" This reverts commit dc29a27.
…hods. as_linear=False is not production-ready as internal edges of quadratic elements cannot be hidden
Codecov Report
@@ Coverage Diff @@
## master #915 +/- ##
==========================================
- Coverage 88.51% 86.64% -1.87%
==========================================
Files 73 73
Lines 8296 8327 +31
==========================================
- Hits 7343 7215 -128
- Misses 953 1112 +159 |
This reverts commit 8d3b230.
# insert_ind_quad8 += np.arange(insert_ind_quad8.size) | ||
mask[insert_ind_quad8 + 5] = False | ||
mask[insert_ind_quad8 + 6] = False | ||
mask[insert_ind_quad8 + 7] = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PProfizi as part of the development in TFS for the mesh_to_pyvista
, I handled all quadrratic eltypes, not only quads and shells. Thus, a hex20
will be plotted as a hex8
, a wedge15
as a wedge6
and so on and so forth. This indeed makes the cells structure very light for solid meshes. Do you consider handling it in Python as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rafacanton you are right, I should add those. I did limit myself to fixing what was already dealt with.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PProfizi We can cover it in a different PR, if you think that's better
np.nan
when semi-parabolic elements are present, even whenas_linear=True
as_linear=True
The combination of these changes should make it possible to resolve #892
Should also solve #766