-
Notifications
You must be signed in to change notification settings - Fork 5
fix: example rendering #281
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
Conversation
|
This PR will need a few adjustments after ansys/pymapdl#3702 will be merged. |
|
Okay several things:
|
|
Thanks for raising this issue @RobPasMue. This was initially the case with #252. However, the workflow was failing due to the example 28 that has been fixed by @AlejandroFernandezLuces;I needed both changes in order to have the documentation builds correctly. As the issue related to the example 28 has been fixed and merged, I can now split both PRs. We will merge the PRs as follow:
|
|
This PR is ready to be reviewed @RobPasMue, @germa89, @AlejandroFernandezLuces! |
AlejandroFernandezLuces
left a comment
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.
Other than that, LGTM!
RobPasMue
left a comment
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.
Apart from my comment - LGTM
PyMAPDL plots the colours on the surfaces on "top" of the previous (grey) colour, I guess that two coincident surfaces plotted with different colours raise this issue, specially visible when draggin the model. I could have a look at it but it will be on my backlog for a while. @clatapie you should open an issue on PyMAPDL repo then. |
|
If that's the case let's merge and raise the issue in PyMAPDL |
|
I was probably not really clear with the "PyMAPDL" mention. I don't think it's an actual PyMAPDL bug. I did some investigations on it and here is the status. The plotter is plotting the two following elements on a unique plot:
mapdl.allsel("all")
mapdl.esel('s', 'mat', '', 2)
mapdl.nsle('s')
pl = mapdl.eplot(plot_bc=True,
bc_glyph_size=0.002,
return_plotter=True,
show_axes=False,
theme=mytheme)
for elem, color in zip((170, 174), ('red', 'blue')):
mapdl.esel('s', 'mat', '', 2)
mapdl.esel("r", "ename", "", elem)
esurf = mapdl.mesh._grid.linear_copy().extract_surface().clean()
if mapdl.mesh.n_elem != 1:
pl.add_mesh(
meshes=esurf,
show_edges=True,
show_scalar_bar=False,
style='surface',
color=color
)As visible, there is an overlapping on the modeling as the top of the cylinder needs to be plotted twice at the exact same position. Feel free to share your views on those points. |
|
Agreed - we should remove the duplicate from the plotting (unless strictly necessary) |
|
After a few attempts, I have not been able to remove the duplicate plot of the face. I opened an issue (#289) to keep a track of it and merge this PR. |
|
Let's move forward - thanks @clatapie |



CICD is failing due to an error with example 28.