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

Weird black lines when using plot_nodal_solution or animate_nodal_solution #57

Closed
CesarRodriguezPereira opened this issue Jul 5, 2021 · 3 comments · Fixed by #105
Closed

Comments

@CesarRodriguezPereira
Copy link

Hi,

I've just updated my pyansys installation from 0.58.9 to 0.59.3 and with the update, it seems like both of these reader functions are not functioning as well as they did before. When plotting results, now some black lines appear, worsening the view of solids and surfaces, and even completely obscuring the view of the result along line bodies.
A couple of images of this behaviour for reference:
Surface body -
image
Line body -
image

@akaszynski
Copy link
Collaborator

Appears to be due to the normals calculated when enabling smooth shading. Try smooth_shading=False.

@CesarRodriguezPereira
Copy link
Author

CesarRodriguezPereira commented Jul 5, 2021

Appears to be due to the normals calculated when enabling smooth shading. Try smooth_shading=False.

Thanks, it works perfectly! Maybe that could be thrown in as a default value (if this is widespread at all), but throwing that option in the function call is a really quick an easy fix!

@akaszynski
Copy link
Collaborator

I think changing that to default is a good idea since there's some funky behavior that happens in other plots as well.

jgd10 added a commit that referenced this issue Jan 26, 2022
Fixes #57. Made smooth_shading=False by default. This is the most we can
do in pymapdl-reader without changing pyvista.
akaszynski pushed a commit that referenced this issue Jan 28, 2022
Fixes #57. Made smooth_shading=False by default. This is the most we can
do in pymapdl-reader without changing pyvista.
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 a pull request may close this issue.

2 participants