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

Fixing Molecular orbital rendering with Flying Edges #1853

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

perminder-17
Copy link
Contributor

@perminder-17 perminder-17 commented Dec 8, 2024

For the second mesh, we were still using old triangles array from the first mesh.

When we switch to the second mesh, we also fetch its triangles by calling triangles2 = mesh->triangles();. This ensures that the second mesh is rendered with its own vertices, normals, and triangle indices, not the first mesh's data.

Here's the result:
Screenshot from 2024-12-09 04-54-06

Signed-off-by: Perminder <[email protected]>
@ghutchis
Copy link
Member

ghutchis commented Dec 9, 2024

I can confirm this fixes the bug on anything I've tried. I'll do some more testing tomorrow to be sure.

@perminder-17
Copy link
Contributor Author

I can confirm this fixes the bug on anything I've tried. I'll do some more testing tomorrow to be sure.

Sure.. Do let me know if anything still breaks.

Copy link
Contributor

github-actions bot commented Dec 9, 2024

Here are the build results
Ubuntu-Latest.tar.gz
Avogadro2.AppImage
macOS.dmg
Win64.exe
Artifacts will only be retained for 90 days.

@avo-bot
Copy link

avo-bot commented Dec 9, 2024

This pull request has been mentioned on Avogadro Discussion. There might be relevant details there:

https://discuss.avogadro.cc/t/december-2024-live-updates/6609/1

@ghutchis
Copy link
Member

ghutchis commented Dec 9, 2024

Looks good in further testing.

@ghutchis ghutchis merged commit 9df1cb9 into OpenChemistry:master Dec 9, 2024
22 of 23 checks passed
@perminder-17 perminder-17 deleted the flying-edges-bug branch December 9, 2024 15:56
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.

Molecular orbital rendering with Flying Edges is incorrect (negative mesh)
3 participants