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

Initialize Ball and Sticks #7

Merged
merged 8 commits into from
Oct 27, 2024
Merged

Initialize Ball and Sticks #7

merged 8 commits into from
Oct 27, 2024

Conversation

zachcp
Copy link
Owner

@zachcp zachcp commented Oct 27, 2024

To get ball and stick working I needed to:

Implement bond detection.

pdbtbx parses atom info but does not calculate bonds. I created the connect_via_residue_names function which will iterate through residues and add bonds based on the CCD table. This is taken directly from biotite. Note Biotite also has a more rigorous methods that relies on distances.

Update Bevy Code

  • iterate through spheres and create circles
  • iterate through bonds and create cylinders for lines.

Screenshot 2024-10-27 at 1 56 57 PM

@zachcp zachcp merged commit 7130e68 into main Oct 27, 2024
2 checks passed
@zachcp zachcp deleted the 20241025-bevy branch October 27, 2024 18:14
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.

1 participant